[Ajuda] Car_Spawn Flood.
#1

Boa tarde.
Olб povo, estou aqui pуs o anti car_sapawn flood que possuo por algum motivo nгo funciona.




Cуder;
pawn Код:
if( newstate == PLAYER_STATE_DRIVER)
    {
        if( GetPlayerVehicleID( playerid ) != p_CarWarpVehicleID[ playerid ] )
        {
            if( p_CarWarpTime[ playerid ] > gettime( ) )
            {
                new string[128], Nome[24], IP[128];
                GetPlayerIp(playerid, IP, sizeof(IP));
                GameTextForPlayer(playerid, "~p~Sistema anti FDP ativado com sucesso !", 5000, 0);
                GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
                SendClientMessageToAll(0x1E90FFAA, string);
                new banido[MAX_PLAYER_NAME];
                dini_IntSet("Banidos.ini", banido, 1);
                BanEx( playerid, "Car Warp" );
                return 1;
            }
            p_CarWarpTime[ playerid ] = gettime( ) + 1;
            p_CarWarpVehicleID[ playerid ] = GetPlayerVehicleID( playerid );
        }
    }
Alguйm da um Help? Esse cуdigo nгo funfa...
Reply
#2

pawn Код:
if( newstate == PLAYER_STATE_DRIVER)
    {
        if( GetPlayerVehicleID( playerid ) != p_CarWarpVehicleID[ playerid ] )
        {
            if( p_CarWarpTime[ playerid ] > gettime( ) )
            {
                new string[128], Nome[24], IP[128];
                GetPlayerIp(playerid, IP, sizeof(IP));
                GameTextForPlayer(playerid, "~p~Sistema anti FDP ativado com sucesso !", 5000, 0);
                GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
                SendClientMessageToAll(0x1E90FFAA, string);
                new banido[MAX_PLAYER_NAME];
                dini_IntSet("Banidos.ini", banido, 1);
                BanEx( playerid, "Car Warp" );
                p_CarWarpTime[ playerid ] = gettime( ) + 1;
                p_CarWarpVehicleID[ playerid ] = GetPlayerVehicleID( playerid );
                return 1;
            }
        }
    }
tenta assim

Ele nao funfa? Nao executa?
Reply
#3

Quote:
Originally Posted by wagner_costa
Посмотреть сообщение
pawn Код:
if( newstate == PLAYER_STATE_DRIVER)
    {
        if( GetPlayerVehicleID( playerid ) != p_CarWarpVehicleID[ playerid ] )
        {
            if( p_CarWarpTime[ playerid ] > gettime( ) )
            {
                new string[128], Nome[24], IP[128];
                GetPlayerIp(playerid, IP, sizeof(IP));
                GameTextForPlayer(playerid, "~p~Sistema anti FDP ativado com sucesso !", 5000, 0);
                GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
                SendClientMessageToAll(0x1E90FFAA, string);
                new banido[MAX_PLAYER_NAME];
                dini_IntSet("Banidos.ini", banido, 1);
                BanEx( playerid, "Car Warp" );
                p_CarWarpTime[ playerid ] = gettime( ) + 1;
                p_CarWarpVehicleID[ playerid ] = GetPlayerVehicleID( playerid );
                return 1;
            }
        }
    }
tenta assim

Ele nao funfa? Nao executa?
Isso ele nгo й executado '-'
Reply
#4

http://forum.sa-mp.com/showthread.ph...r+seu+servidor
Reply
#5

Quote:
Originally Posted by THE_FALLEN
Посмотреть сообщение
Jб testei isso ai tambйm e.e
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)