26.01.2013, 16:57
(
Последний раз редактировалось xDaidal0S; 26.01.2013 в 17:26.
Причина: Solved
)
-SOLVED-.
public OnPlayerCommandText(playerid, cmdtext[])
{
//commands here
return SendClientMessage(playerid, color, "Invalid command");
}
pawn Код:
|
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, -1, "The command you typed is invalid use/cmds");
return 1;
}
This won't work if he's using a command processor try this
pawn Код:
|