A few Requests
#7

Quote:
Originally Posted by Azzeto
Посмотреть сообщение
Yes, the Respawn Delay, I know of that, Thats spawns the vehicle back from where the players spawned it from the dialog.
Then make a variable for the car they spawn for example
pawn Код:
new Car;
Car = CreateVehicle(blahahahah);
DestroyVehicle(car); // this destroys the car they spawned but delete it after the exit the car but set a timer for the amount of seconds you want to return in the car before it deletes the car.
EDIT: you asked where to put this

pawn Код:
SetTimerEx("RepairNao",500,true,"i",playerid);
forward RepairNao ( playerid ) ;
public RepairNao ( playerid) {
    RepairVehicle ( GetPlayerVehicleID ( playerid ) );
    SetVehicleHealth ( GetPlayerVehicleID ( playerid ), 9999.0 );
    return 1;
}
easy
pawn Код:
SetTimerEx("RepairNao",500,true,"i",playerid); // OnGameModeInit
forward RepairNao ( playerid ) ; // On Top of script
public RepairNao ( playerid) { // Any where in script not in a callback. like bottom of your script works.
    RepairVehicle ( GetPlayerVehicleID ( playerid ) );
    SetVehicleHealth ( GetPlayerVehicleID ( playerid ), 9999.0 );
    return 1;
}
Reply


Messages In This Thread
A few Requests - by Azzeto - 23.07.2011, 06:04
Re: A few Requests - by Kitten - 23.07.2011, 06:07
Re: A few Requests - by Azzeto - 23.07.2011, 06:08
Re: A few Requests - by Kitten - 23.07.2011, 06:12
Re: A few Requests - by Shockey HD - 23.07.2011, 06:12
Re: A few Requests - by Azzeto - 23.07.2011, 06:14
Re: A few Requests - by Kitten - 23.07.2011, 06:16
Re: A few Requests - by Azzeto - 23.07.2011, 06:26

Forum Jump:


Users browsing this thread: 2 Guest(s)