Qual o erro disso?
#3

Use assim, troque a variбvel de admin...

PHP код:
public VerificarHacks()
{
    new 
Float:health;
    new 
Float:colete;
    new 
Float:vidacarro;
    new 
veh;
//_________________________________________
    
for(new 0MAX_PLAYERSi++)
    {
        
GetPlayerArmour(i,colete);
        
GetPlayerHealth(i,health);
        
veh GetPlayerVehicleID(i);
        
GetVehicleHealth(vehvidacarro);
        if (
PlayerInfo[i][pAdmin] == && gPlayerLogged[i] != 0)
        {
            if(
TemAdmin >= 1)
            {
                if ((
health 101.0 || PlayerInfo[playerid][pAdmin] == 0))// Troque a variбvel PlayerInfo... pela sua de admin!
                
{
                    
format(gstring128"Atenзгo: %s estб com Hack de Vida",PlayerName(i));
                    
ABroadCast(COLOR_YELLOW,gstring,1);
                }
                if (
colete 101.0)
                {
                    
format(gstring128"Atenзгo: %s estб com Hack de Colete",PlayerName(i));
                    
ABroadCast(COLOR_YELLOW,gstring,1);
                }
                if (
vidacarro 1001.0)
                {
                    
format(gstring128"Atenзгo: %s estб com GodCar",PlayerName(i));
                    
ABroadCast(COLOR_YELLOW,gstring,1);
                }
            }
            else if(
TemAdmin == 0)
            {
                if ((
health 101.0 || PlayerInfo[playerid][pAdmin] == 0))// Troque a variбvel PlayerInfo... pela sua de admin!
                
{
                    
format(gstring128"Atenзгo todos: %s estб com Hack de Vida e foi kickado",PlayerName(i));
                    
SendClientMessageToAllEx(COLOR_YELLOWgstring);
                    
Kick(i);
                }
                if (
colete 101.0)
                {
                    
format(gstring128"Atenзгo todos: %s estб com Hack de Colete e foi kickado",PlayerName(i));
                    
SendClientMessageToAllEx(COLOR_YELLOWgstring);
                    
Kick(i);
                }
                if (
vidacarro 1001.0)
                {
                    
format(gstring128"Atenзгo todos: %s estб com GodCar e foi kickado",PlayerName(i));
                    
SendClientMessageToAllEx(COLOR_YELLOWgstring);
                    
Kick(i);
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Qual o erro disso? - by Hiuship - 17.09.2011, 23:37
Re: Qual o erro disso? - by lukas_loky - 17.09.2011, 23:44
Re: Qual o erro disso? - by Bruno Pereira - 17.09.2011, 23:47
Re: Qual o erro disso? - by lukas_loky - 17.09.2011, 23:52
Re: Qual o erro disso? - by Bruno Pereira - 17.09.2011, 23:54
Re: Qual o erro disso? - by lukas_loky - 18.09.2011, 00:00

Forum Jump:


Users browsing this thread: 2 Guest(s)