10.08.2014, 16:44
This god system is for player i'd like to change it for all players like my server players can use it,
If /God is enable he must can't get weapons
If /God is enable he must can't get weapons
Код:
CMD:god(playerid,params[]) { if(AccInfo[playerid][Level] >= 6 || IsPlayerAdmin(playerid)) { if(AccInfo[playerid][God] == 0) { AccInfo[playerid][God] = 1; SetPlayerHealth(playerid,100000); SendClientMessage(playerid,green," GodMode ON "); SendCommandToAdmins(playerid,"God"); ResetPlayerWeapons(playerid); } else { AccInfo[playerid][God] = 0; SendClientMessage(playerid,red," GodMode OFF "); SetPlayerHealth(playerid, 100); } return 1; } else return ErrorMessages(playerid, 6); }