SA-MP Forums Archive
Vehicles PROBLEM - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicles PROBLEM (/showthread.php?tid=491577)



Vehicles PROBLEM - MahdiGames - 31.01.2014

Guys i need function which remove the vehicles when player leave or die or exit vehicle iv already one but its not working as well here pic:


and here my codes:
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    SetTimerEx("DesVeh", 60000, 0, "i", vehicleid);
    return 1;
}

forward DesVeh(vehid);
public DesVeh(vehid)
{
    SetVehicleToRespawn(vehid);
}
public OnPlayerDisconnect(playerid, reason)
{

    SetVehicleToRespawn(GetPlayerVehicleID(playerid));
    return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
    SetVehicleToRespawn(GetPlayerVehicleID(playerid));
    return 1;
}
Please help....


Re: Vehicles PROBLEM - Hoborific - 31.01.2014

Do you want to destroy or respawn the vehicles?


Re: Vehicles PROBLEM - MahdiGames - 31.01.2014

Respawn vehicle i want on player exit vehicle .


Re: Vehicles PROBLEM - MahdiGames - 31.01.2014

Bump


Re: Vehicles PROBLEM - Excelize - 31.01.2014

Here.:

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    SetVehicleToRespawn(vehicleid);
    return 1;
}



Re: Vehicles PROBLEM - MahdiGames - 31.01.2014

Quote:
Originally Posted by Excelize
Посмотреть сообщение
Here.:

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    SetVehicleToRespawn(vehicleid);
    return 1;
}
iv already it but its destroy the wrong vehicles so if i exited from the vehicle and back again its will be destroyed , i think we must ask if player in vehicle return 0 or something like that


Re: Vehicles PROBLEM - MahdiGames - 31.01.2014

Bump