- Joined
- Jun 19, 2009
- Messages
- 1,852
- Reaction score
- 5
Hello!
I got stuck in this script... well, I made a function (doPlayerAddPoints(cid,points). Now, I want a talkaction like this;
/addpoints <name>, <amount>...
i got this far:
help me?
thanks!
I got stuck in this script... well, I made a function (doPlayerAddPoints(cid,points). Now, I want a talkaction like this;
/addpoints <name>, <amount>...
i got this far:
Code:
function onSay(cid, words, param, channel)
if(param == '') then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
end
local target = getPlayerByNameWildcard(param)
if(not target)then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.")
end
...
help me?
thanks!