02.03.2018, 08:04
This command works, It kills but along the way it sends a messsage "unknown command"
Код:
CMD:kill(playerid)
{
printf ("starting the cmd");
if(connected[playerid] == true) return GameTextForPlayer(playerid, "~r~Spawn First", 5000, 5);
SetPlayerHealth(playerid, 0);
printf ("setting hp health to 0");
SendClientMessage(playerid, -1, "{c3c3c3}(INFO) You have killed yourself! (-8 points, -50 respect lost!)");
printf ("adding some loses to player config file");
pInfo[playerid][Deaths] += 1;
pInfo[playerid][Points] -= 8;
pInfo[playerid][Respect] -= 50;
return 1;
}

