Small problem regarding RemovePlayerFromVehicle
#6

If that doesn't work,
Try either
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == pilotjobvehicle)
    {
        if(pilotjob[playerid] == 0)
        {
            new Float:x, Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            SetPlayerPos(playerid,x,y,z);
            return 1;
        }
    }
    return 1;
}
OR
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        new vehicle = GetPlayerVehicleID(playerid);
        if(vehicle == 511)
        {
            new Float:x, Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            SetPlayerPos(playerid,x,y,z);
            return 1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
Small problem regarding RemovePlayerFromVehicle - by rangerxxll - 25.05.2013, 01:43
Re: Small problem regarding RemovePlayerFromVehicle - by BpVanshVk - 25.05.2013, 01:54
Re: Small problem regarding RemovePlayerFromVehicle - by BpVanshVk - 25.05.2013, 01:58
Re: Small problem regarding RemovePlayerFromVehicle - by rangerxxll - 25.05.2013, 02:07
Re: Small problem regarding RemovePlayerFromVehicle - by BpVanshVk - 25.05.2013, 02:14
Re: Small problem regarding RemovePlayerFromVehicle - by BpVanshVk - 25.05.2013, 02:20

Forum Jump:


Users browsing this thread: 2 Guest(s)