Will this anti-car jack work?.. Cant test it
#5

Won't work if there is more than one car and driver.

Try this:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if (!ispassenger)
    {
        new Float:X, Float:Y, Float:Z;
        for(new i = 0; i < MAX_PLAYERS; ++i)
        {
            if(GetPlayerState(i) == PLAYER_STATE_DRIVER && i != playerid)
            {
                GetPlayerPos(playerid,X,Y,Z);
                if(IsPlayerInRangeOfPoint(playerid, 3, X, Y, Z))
                    SetPlayerPos(playerid,X,Y,Z+0.1);
            }
        }
    }
    return true;
}
Reply


Messages In This Thread
Will this anti-car jack work?.. Cant test it - by admantis - 05.01.2011, 02:28
Respuesta: Will this anti-car jack work?.. Cant test it - by ipsBruno - 05.01.2011, 02:34
Re: Respuesta: Will this anti-car jack work?.. Cant test it - by admantis - 05.01.2011, 02:35
Respuesta: Will this anti-car jack work?.. Cant test it - by ipsBruno - 05.01.2011, 02:42
Re: Will this anti-car jack work?.. Cant test it - by Krx17 - 05.01.2011, 02:47
Re: Will this anti-car jack work?.. Cant test it - by John_F - 05.01.2011, 02:50

Forum Jump:


Users browsing this thread: 1 Guest(s)