[HELP] fsdebug fs vehicle spawn bug , +rep
#4

Create a variable for each player

Код:
new LastCreatedVeh[MAX_PLAYERS];
Set it everytime they spawn a car as the car they create!

for example

Код:
LastCreatedVeh[playerid] = CreateVehicle(...)
that will set the id of vehicle to the varible.

then create an if statement above that saying if they already have a vehicle destroy it..

Код:
if(LastCreatedVeh[playerid] != 0) {
DestroyVehicle(LastCreatedVeh[playerid]);
LastCreatedVeh[playerid]=0;
}
if(LastCreatedVeh[playerid] == 0) {
LastCreatedVeh[playerid] = CreateVehicle(...)
}
}
Reply


Messages In This Thread
-Moved- - by ItzRbj - 06.11.2014, 21:08
Re: [HELP] fsdebug fs vehicle spawn bug , +rep - by UltraScripter - 06.11.2014, 21:14
Re: [HELP] fsdebug fs vehicle spawn bug , +rep - by UltraScripter - 06.11.2014, 21:16
Re: [HELP] fsdebug fs vehicle spawn bug , +rep - by CNMike - 06.11.2014, 21:16
Re: [HELP] fsdebug fs vehicle spawn bug , +rep - by ItzRbj - 06.11.2014, 21:37

Forum Jump:


Users browsing this thread: 1 Guest(s)