mardi 19 juillet 2016

Help with simple cmd

Code:

CMD:kill(playerid,params[]) 
{   
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, C_RED, "You have killed yourself");
return 1;
}
Changes:
- Changed "return 0;" to "return 1;" so it will know that the command is successfully executed and the servfer will not detect it as unknown command because in you "OnPlayerCommandPrompt" the "!success" is called when the command is not successfully executed and the message "Unknown command" is shown.

Let's block ads! (Why?)



Help with simple cmd

Aucun commentaire:

Enregistrer un commentaire