random spawns
#1

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.
Reply
#2

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

if I'm right..
Reply
#3

not working...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)