09.02.2014, 10:31
Hello im trying to destroy player car when he/she dead and when he/she disconnect from server iv this terms
SetVehicleToRespawn(vehid);
DestroyVehicle(vehid);
But strange that its working even when you be passenger , so if im passenger and dead my car destroy , and its should not , its should only destroy if you was driver lead isnt true? , iv tried like make
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
But nothing worked please give me an ideas!
NOTE: when i type /kill or dead , its take 2 seconds to do the anim and die like just report that iv dead :S !
SetVehicleToRespawn(vehid);
DestroyVehicle(vehid);
But strange that its working even when you be passenger , so if im passenger and dead my car destroy , and its should not , its should only destroy if you was driver lead isnt true? , iv tried like make
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
But nothing worked please give me an ideas!
NOTE: when i type /kill or dead , its take 2 seconds to do the anim and die like just report that iv dead :S !