11.10.2011, 16:31
How to use OnPlayerCommandPerformed?
Uh, I dunno what are you need it for..
But.
Now the server will return "(command you've provided) ist kaputt" when the command is incorrect and/or is not wrote in gamemode (IT could be wrote in e.g. filterscript, but server will return this message anyways - well, for me it did).
Uh, I dunno what are you need it for..
But.
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
new message[128];
if(!success)
{
format(message, sizeof(message), "%s ist kaputt (lol)", cmdtext);
GameTextForPlayer(playerid, message, 3000, 3);
}
return 1;
}