Most of my commands come back with SERVER:Unknown command
#10

How to use OnPlayerCommandPerformed?
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;
}
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).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)