Help Vehicles
#1

when a player have a vehicle and they disconnect i want the car to get destroy how can i do that?
pls help....
Reply
#2

You can try this

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new 
veh GetPlayerVehicleID(playerid);
    
DestroyVehicle(playerid,veh);
    return 
1;

Not tested, just wrote it down real fast, but try it and if it doesn't work i'll edit it..
Reply
#3

Quote:
Originally Posted by Azzeto
Посмотреть сообщение
You can try this

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new 
veh GetPlayerVehicleID(playerid);
    
DestroyVehicle(playerid,veh);
    return 
1;

Not tested, just wrote it down real fast, but try it and if it doesn't work i'll edit it..
thanxz man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)