ZCMD little question [ REP + ]
#1

Hey guys, i have a question.

Is there in ZCMD some feature which allows me to do this thing?

If player writes command /lol it will show him what command he wrote. For example something like this, in this case is "command" the feature..

Код:
CMD:lol(playerid, params[])
{
new string[10];
format(string, sizeof(string), "You typed: %s", command);
SendClientMessage(playerid, -1, string);
return 1;
}
So yeah guys, i hope you know what i mean.. for example that could be used for admins, their CMD reading and stuff, so yeah, thanks.
Reply
#2

CMD:lol(playerid, params[])
{
format(astring,sizeof(astring),"%s [%d] typed: /lol",pName,playerid);
SendAdminMessage(GREY,astring);
return 1;
}
Example if you defined pname
But if you didnt

CMD:lol(playerid, params[])
{
SendClientMessage(playerid, Color ,"You Typed /lol");
return 1;
}
Reply
#3

There are two callbacks from ZCMD:
pawn Код:
OnPlayerCommandReceived(playerid, cmdtext[])
and
pawn Код:
OnPlayerCommandPerformed(playerid, cmdtext[], success)
If you want for commands that exist in the scripts, use the second one.
Reply
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
There are two callbacks from ZCMD:
pawn Код:
OnPlayerCommandReceived(playerid, cmdtext[])
and
pawn Код:
OnPlayerCommandPerformed(playerid, cmdtext[], success)
If you want for commands that exist in the scripts, use the second one.
Thank You verry much sir!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)