18.03.2018, 17:09
Solved!
I changed it like this:
I changed it like this:
PHP код:
CMD:kill(playerid)
{
if(team[playerid] == TEAM_HUMAN)
{
SetPlayerHealth(playerid,0.0);
SendClientMessage(playerid,-1,""chat" You've killed yourself");
SetPlayerTeam(playerid,TEAM_ZOMBIE);
team[playerid] = TEAM_ZOMBIE;
}
else return SendClientMessage(playerid,-1,""chat" You cannot kill yourself if you are an 'Zombie'");
return 1;
}