zcmd invalid command
#1

hey guys there is a lil question. how to edit these 2 callbacks to send the message i want instead of default invalid command message?
Код:
OnPlayerCommandReceived(playerid, cmdtext[])
{
   return 1;
}

OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
   return 1;
}
Reply
#2

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(success == 0)
    {
        SendClientmessage(playerid,-1,"Message");
        return 1;
    }
    return 1;
}
Reply
#3

thx ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)