OnPlayerCommandText
#1

What to use when you want to call a cmd with zcmd?

pawn Код:
OnPlayerCommandText(playerid, "/cmd");
that one to zcmd?
Reply
#2

ZCMD is like:
pawn Код:
COMMAND:cmd(playerid,params[]) {
     return 1;
}
EDIT:
pawn Код:
cmd_cmd(playerid,"troll");
Reply
#3

if you want to call a command you use CallLocalFunction("command_name", ....) , just analyze zcmd and you'll see.
Reply
#4

If your command name is mycmd, then

pawn Код:
cmd_mycmd(playerid, params);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)