Anti g abuse problem +REP
#2

This is my anti-g abuse from:

On top:
PHP код:
new cardriver[MAX_VEHICLES]; 
On OnPlayerStateChange:
PHP код:
if(oldstate==PLAYER_STATE_ONFOOT && newstate==PLAYER_STATE_PASSENGER)
    {
        new 
vehicleid=GetPlayerVehicleID(playerid);
        if(
cardriver[vehicleid]==0)
        {
             
RemovePlayerFromVehicle(playerid);
             
SendClientMessage(playeridCOLOR_ORANGE"ERROR: There must be a driver to enter this vehicle as passenger.");
        }
    }
    if(
newstate==PLAYER_STATE_DRIVER)
    {
        
cardriver[GetPlayerVehicleID(playerid)]=1;
    } 
A personal question: Did you play in Relentless gaming roleplay?
Reply


Messages In This Thread
Anti g abuse problem +REP - by Youssef221 - 13.01.2015, 10:33
Re: Anti g abuse problem +REP - by ATGOggy - 13.01.2015, 10:42
Re: Anti g abuse problem +REP - by Youssef221 - 13.01.2015, 11:48
Re: Anti g abuse problem +REP - by JonathanFeitosa - 13.01.2015, 12:03

Forum Jump:


Users browsing this thread: 2 Guest(s)