22.05.2016, 09:34
Hello all, I have the command /w and /God, so when they activate /God, they can not use the command /w
And get a Message like this: you can't use Weapon, please turn off the Godmode
My /god Command:
My Weapon Command:
Thanks For Help!
And get a Message like this: you can't use Weapon, please turn off the Godmode
My /god Command:
Quote:
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; } |
Quote:
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; } |