22.05.2016, 09:45
try to edit your god command may be that made it not working
PHP Code:
CMD:god(playerid)
{
if(gUser[playerid][U_MODE] != MODE_FREEROAM) return GameTextForPlayer(playerid, "~r~You must be in freeroam", 5000, 3);
if(gUser[playerid][U_GOD])
{
SetPlayerHealth(playerid, 100.0);
GameTextForPlayer(playerid, "~b~~h~~h~~h~Godmode ~w~~h~OFF", 5000, 3);
ResetPlayerWeapons(playerid);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
gUser[playerid][U_GOD] = false;
return 1;
}
else
{
SetPlayerHealth(playerid, FLOAT_INFINITY);
GameTextForPlayer(playerid, "~b~~h~~h~~h~Godmode ~w~~h~ON", 5000, 3);
ResetPlayerWeapons(playerid);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
gUser[playerid][U_GOD] = true;
return 1;
}
}

