05.02.2016, 16:00
When i use /kill inside a vehicle, my character can still exit the vehicle even it has no health, how can i make if i use /kill or killed inside a vehicle the characters behavior is just like single player? Thanks!
if (IsPlayerInAnyVehicles(playerid) { new Float:player_pos[3]; GetPlayerPos(playerid, player_pos[0], player_pos[1], player_pos[2]); SetPlayerPos(playerid, player_pos[0], player_pos[1], player_pos[2]); } SetPlayerHealth(playerid, -1);