03.11.2009, 15:54
Yes it is.
Make new variables to save vehicleids.
Where you create these cars with AddStaticVehicle or CreateVehicle (usually under OnGameModeInit), save the ids.
Make the command under OnPlayerCommandText.
Make new variables to save vehicleids.
pawn Код:
new Car1;
new Car2;
new Car3;
pawn Код:
Car1 = AddStaticVehicle(....
Car2 = AddStaticVehicle(....
Car3 = AddStaticVehicle(....
pawn Код:
if(strcmp(cmdtext, "/respawn", true) == 0)
{
SetVehicleToRespawn(Car1);
SetVehicleToRespawn(Car2);
SetVehicleToRespawn(Car3);
return 1;
}