1 Scripting thing where i need help for.
#7

Well, as Misiur said, make a global variable. Call it whatever you want
Car[MAX_PLAYERS];
Then when a player spawns, set the vehicleid of the car you spawn to Car[playerid].
So, when the command to spawn the car is called, it needs to run the check of seeing if they Car[playerid] > 0, and if it is, then DestroyVehicle(Car[playerid]);
But then have it spawn the car and set the new vehicle id to Car[playerid, like Car[playerid] = vehicleid.

Probably missed a few things and this probably wont help you much, i'm tired and im going.
Reply


Messages In This Thread
1 Scripting thing where i need help for. - by UnlimitedFreeroam - 26.07.2012, 15:02
Re: 1 Scripting thing where i need help for. - by Misiur - 26.07.2012, 15:11
Re: 1 Scripting thing where i need help for. - by UnlimitedFreeroam - 26.07.2012, 15:16
Re: 1 Scripting thing where i need help for. - by cosbraa - 26.07.2012, 15:19
Re: 1 Scripting thing where i need help for. - by UnlimitedFreeroam - 26.07.2012, 15:24
Re: 1 Scripting thing where i need help for. - by DaRealShazz - 26.07.2012, 15:36
Re: 1 Scripting thing where i need help for. - by cosbraa - 26.07.2012, 15:45
Re: 1 Scripting thing where i need help for. - by DaRealShazz - 26.07.2012, 15:58
Re: 1 Scripting thing where i need help for. - by UnlimitedFreeroam - 26.07.2012, 16:48
Re: 1 Scripting thing where i need help for. - by maramizo - 26.07.2012, 16:52
Re: 1 Scripting thing where i need help for. - by Misiur - 26.07.2012, 16:54
Re: 1 Scripting thing where i need help for. - by maramizo - 26.07.2012, 16:56
Re: 1 Scripting thing where i need help for. - by UnlimitedFreeroam - 26.07.2012, 17:09
Re: 1 Scripting thing where i need help for. - by Misiur - 26.07.2012, 17:12
Re: 1 Scripting thing where i need help for. - by maramizo - 26.07.2012, 17:12
Re: 1 Scripting thing where i need help for. - by maramizo - 26.07.2012, 17:18
Re: 1 Scripting thing where i need help for. - by UnlimitedFreeroam - 26.07.2012, 17:24
Re: 1 Scripting thing where i need help for. - by maramizo - 26.07.2012, 17:32
Re: 1 Scripting thing where i need help for. - by UnlimitedFreeroam - 26.07.2012, 17:37
Re: 1 Scripting thing where i need help for. - by DaRealShazz - 26.07.2012, 23:35

Forum Jump:


Users browsing this thread: 1 Guest(s)