SA-MP Forums Archive
Working on my script need help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Working on my script need help (/showthread.php?tid=300465)



Working on my script need help - KingyKings - 30.11.2011

Hello.
I have decided i want to make a derby server but the problem is i dont know how to start :P
it may sound stupid but i know how to script the rest i just dont know how to put the players in vehicles at the start.

As you would of guessed. i need it random spawn. all i have at the moment is
[QUOTE]public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,0);
SetPlayerPos(playerid, 1899.1285,-1773.3877,25.7911);
PutPlayerInVehicle(playerid, 401, 1);

return 1;
}/QUOTE]

1. It doesnt work
2. Its not random spawn.

If you could help me i would really appritiate it. Thanks!


Re: Working on my script need help - Kostas' - 30.11.2011

[Tutorial] Random spawns


Re: Working on my script need help - KingyKings - 30.11.2011

Now i have the spawn. How do i get the player to spawn in a car?


Re: Working on my script need help - Kostas' - 30.11.2011

Create a variable and create the vehicles. Then put player in the vehicle by a command.