28.02.2018, 16:06
i got that simple command
But somehow, the command works, but when i write it and suddenly run it, it shows "Unknown Command" etc, like its unknown but actually not.??
PHP код:
CMD:kill(playerid, params[])
{
if(connected[playerid] == true) return GameTextForPlayer(playerid, "~r~Spawn First", 5000, 5);
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, -1, "{c3c3c3}(INFO) You have killed yourself! (-8 points, -50 respect lost!)");
pInfo[playerid][Deaths] += 1;
pInfo[playerid][Points] -= 8;
pInfo[playerid][Respect] -= 50;
return 1;
}