Help with simple cmd
#2

Код:
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.
Reply


Messages In This Thread
Help with simple cmd - by FrAnKiN1 - 19.07.2016, 15:47
Re: Help with simple cmd - by K0P - 19.07.2016, 15:48
Re: Help with simple cmd - by FrAnKiN1 - 19.07.2016, 15:54

Forum Jump:


Users browsing this thread: 1 Guest(s)