Vehicles PROBLEM
#1

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....
Reply
#2

Do you want to destroy or respawn the vehicles?
Reply
#3

Respawn vehicle i want on player exit vehicle .
Reply
#4

Bump
Reply
#5

Here.:

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

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
Reply
#7

Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)