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); } 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] = (! gUser[playerid][U_GOD]); return 1; } |
CMD:w(playerid) { if(gUser[playerid][U_MODE] != MODE_FREEROAM) return GameTextForPlayer(playerid, "~g~You Are Not In Freeroam", 5000, 3); if(! IsPlayerSpawned(playerid)) return GameTextForPlayer(playerid, "~g~You must be spawned", 5000, 3); ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons configurations/spawner", "Weapons list\nSpawn Weapons\nTools", "Select", "Close"); return 1; } |
CMD:w(playerid)
{
if(gUser[playerid][U_MODE] != MODE_FREEROAM) return GameTextForPlayer(playerid, "~g~You Are Not In Freeroam", 5000, 3);
if(gUser[playerid][U_GOD]) return GameTextForPlayer(playerid, "~g~You Are In God mode", 5000, 3);
if(! IsPlayerSpawned(playerid)) return GameTextForPlayer(playerid, "~g~You must be spawned", 5000, 3);
ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons configurations/spawner", "Weapons list\nSpawn Weapons\nTools", "Select", "Close");
return 1;
}
Here it is you posted it on that thread i replied :3 ah what ever im posting it again
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;
}
}
try to edit your god command may be that made it not working
PHP Code:
|
CMD:w(playerid)
{
if(gUser[playerid][U_MODE] != MODE_FREEROAM) return GameTextForPlayer(playerid, "~g~You Are Not In Freeroam", 5000, 3);
if(gUser[playerid][U_GOD] == true) return GameTextForPlayer(playerid, "~g~You Are In God mode", 5000, 3);
if(! IsPlayerSpawned(playerid)) return GameTextForPlayer(playerid, "~g~You must be spawned", 5000, 3);
ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons configurations/spawner", "Weapons list\nSpawn Weapons\nTools", "Select", "Close");
return 1;
}