[HELP] Remove Vehicle when i spawn it 2 times
#4

pawn Код:
// Top of script
new LastSpawnedVehicle[MAX_PLAYERS];

// OnPlayerConnect
LastSpawnedVehicle[playerid] = 999;

// In you vehicle spawn command
if(LastSpawnedVehicle[playerid] != 999)
{
DestroyVehicle(LastSpawnedVehicle[playerid]);
}
LastSpawnedVehicle[playerid] = AddStaticVehicle/CreateVehicle(bla,bla,bla);
Not tested it but it should work
Reply


Messages In This Thread
[HELP] Remove Vehicle when i spawn it 2 times - by RyDeR` - 04.03.2009, 11:58
Re: [HELP] Remove Vehicle when i spawn it 2 times - by Wiejeben - 04.03.2009, 14:12
Re: [HELP] Remove Vehicle when i spawn it 2 times - by Mikep - 04.03.2009, 14:13
Re: [HELP] Remove Vehicle when i spawn it 2 times - by ICECOLDKILLAK8 - 04.03.2009, 14:46
Re: [HELP] Remove Vehicle when i spawn it 2 times - by RyDeR` - 04.03.2009, 15:16
Re: [HELP] Remove Vehicle when i spawn it 2 times - by RyDeR` - 04.03.2009, 15:17

Forum Jump:


Users browsing this thread: 1 Guest(s)