G abuse
#2

pawn Code:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new
            driver = INVALID_PLAYER_ID,
            vehid = GetPlayerVehicleID(playerid);
        for(new i; i < GetMaxPlayers(); i++)
        {
            if(GetPlayerVehicleID(i) == vehid && GetPlayerState(i) == PLAYER_STATE_DRIVER)
            {
                driver = i;
                break;
            }
        }
        if(driver == INVALID_PLAYER_ID && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return 0;
    }
    return 1;
}
Reply


Messages In This Thread
G abuse - by Cerealguy - 12.01.2015, 14:10
Re: G abuse - by rickisme - 12.01.2015, 14:28
Re: G abuse - by M4D - 12.01.2015, 14:29
Respuesta: G abuse - by Cerealguy - 12.01.2015, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)