Godmode problem +REP
#1

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


Код:
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);
}
Reply
#2

PHP код:
CMD:god(playerid,params[])
{
    if(
AccInfo[playerid][Level] >= || IsPlayerAdmin(playerid))
    {
        if(
AccInfo[playerid][God] == 0)
        {
               
AccInfo[playerid][God] = 1;
            
SetPlayerHealth(playerid,100000);
               
SendClientMessage(playerid,green," GodMode ON ");
            
SendCommandToAdmins(playerid,"God");
            
        }
        else
        {
               
AccInfo[playerid][God] = 0;
               
SendClientMessage(playerid,red," GodMode OFF ");
            
SetPlayerHealth(playerid100);
                
RemovePlayerWeapon(playerid);
        }
        return 
1;
    }
    else return 
ErrorMessages(playerid6);

Reply
#3

Player can use this?
Reply
#4

Impossible that the player uses it unless its level admin is 6 or is he /rcon
Reply
#5

alright +REP
Reply
#6

Thank You
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)