#1

como hago para que un piloto pulse F de piloto y no le deje salir del auto.ї
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerStateChange
https://sampwiki.blast.hk/wiki/GetPlayerVehicleID
https://sampwiki.blast.hk/wiki/GetVehicleModel
https://sampwiki.blast.hk/wiki/PutPlayerInVehicle
https://sampwiki.blast.hk/wiki/GetPlayerVehicleSeat
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate){

    new vehicleid = GetPlayerVehicleID(playerid);
    if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT){
        if(GetVehicleModel(vehicleid) == MODELO_VEHICULO){
            PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid);
        }
    }
   
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)