/respawn
#4

Yes it is.

Make new variables to save vehicleids.

pawn Код:
new Car1;
new Car2;
new Car3;
Where you create these cars with AddStaticVehicle or CreateVehicle (usually under OnGameModeInit), save the ids.

pawn Код:
Car1 = AddStaticVehicle(....
Car2 = AddStaticVehicle(....
Car3 = AddStaticVehicle(....
Make the command under OnPlayerCommandText.

pawn Код:
if(strcmp(cmdtext, "/respawn", true) == 0)
{
    SetVehicleToRespawn(Car1);
    SetVehicleToRespawn(Car2);
    SetVehicleToRespawn(Car3);
    return 1;
}
Reply


Messages In This Thread
/respawn - by PANNA - 03.11.2009, 13:22
Re: /respawn - by Jeffry - 03.11.2009, 14:16
Re: /respawn - by PANNA - 03.11.2009, 15:41
Re: /respawn - by MadeMan - 03.11.2009, 15:54
Re: /respawn - by PANNA - 03.11.2009, 16:12
Re: /respawn - by MadeMan - 03.11.2009, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)