1 Scripting thing where i need help for.
#8

Create variable:
pawn Code:
new pCars[MAX_PLAYERS];
Put this under the car spawning command:
pawn Code:
if (pCars[playerid] > 0) DestroyVehicle(pCars[playerid]);
PutPlayerInVehicle(playerid, CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay), 0);
pCars[playerid] = GetPlayerVehicleID(playerid);
You have to put in the parameters for CreateVehicle function.
Haven't tested, but it should work.
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: 3 Guest(s)