SA-MP Forums Archive
[Ajuda] Car_Spawn Flood. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Car_Spawn Flood. (/showthread.php?tid=360129)



Car_Spawn Flood. - Mercurio - 16.07.2012

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...


Re: Car_Spawn Flood. - WaGnerLiima - 16.07.2012

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?


Re: Car_Spawn Flood. - Mercurio - 16.07.2012

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 '-'


Re: Car_Spawn Flood. - DrTHE - 16.07.2012

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



Re: Car_Spawn Flood. - Mercurio - 16.07.2012

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