traindriver.pwn edited
This commit is contained in:
parent
051f5cf6af
commit
357e059631
@ -74,7 +74,7 @@ hook OnPlayerUpdateEx( playerid )
|
||||
{
|
||||
new player_vehicle = GetPlayerVehicleID( playerid );
|
||||
|
||||
if ( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER && player_vehicle && p_hasTrainJob{ playerid } && !IsVehicleTrain( player_vehicle ) && p_PilotCancelTimer[ playerid ] == 0xFFFF ) {
|
||||
if ( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER && player_vehicle && p_hasTrainJob{ playerid } && !IsVehicleTrain( player_vehicle ) && p_TrainCancelTimer[ playerid ] == 0xFFFF ) {
|
||||
cancelPlayerTrainWork( playerid, player_vehicle, .ticks = 60 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user