06.07.2015, 19:42
How to make when player goes to deathmach he cant type any other command but when leaves deathmatch he can ?
CMD:kill(playerid, params[]) {
new Float:hp;
GetPlayerHealth(playerid, hp);
if(GetPVarInt(playerid, #DM_Arena) == 1) return SCM(playerid, -1, # >> Commands are unusable at this time.);
if(hp >= 50)
{
DeletePVar(playerid, #HackOn);
SetPlayerHealthEx(playerid, 0);
}
else return SCM(playerid, C_WHITE, #ERROR: You can not kill yourself with 50 health or less.);
return true;
}
if(hp >= 50)
{
DeletePVar(playerid, #HackOn);
SetPlayerHealthEx(playerid, 0);
}
??