SA-MP Forums Archive
random spawns - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: random spawns (/showthread.php?tid=211541)



random spawns - jaksimaksi - 15.01.2011

i'm making a hydra dm, and i want to do the random spawns... when player types /hydradm he gots teleported and putted to hydra... I dont know how to make a random spawns with vehicle, so please help me here is my try:

pawn Код:
new Float:hydraspot[][7] =
{
    {426.6281,2501.0186,17.2076,85.2130},
    {366.0188,2537.9849,17.3690,175.7328},
    {198.2865,2536.9287,17.3276,185.3425},
    {166.3318,2469.0935,17.2020,346.1217}, // ferma
    {-47.8182,2506.8430,17.2020,270.8406},
    {4.9044,2467.0688,17.1553,13.9616}
};


new Spawn = random(sizeof(hydraspot));
hydra[playerid] = CreateVehicle(520,hydraspot[Spawn][0],hydraspot[Spawn][1],hydraspot[Spawn][2]);
i get some warning, and random spawn not working.


Re: random spawns - *IsBack - 15.01.2011

it should be
new Float:hydraspot[7][3] =
{
....

if I'm right..


Re: random spawns - jaksimaksi - 15.01.2011

not working...