Spectating a random player
#1

Lol i don't know it this works ... but i don't know much about random()

pawn Код:
for(new i; i<MAX_PLAYERS; i++)
            {
                new randomplayer = random(30);
                TogglePlayerSpectating(playerid, 1);
                PlayerSpectateVehicle(playerid,randomplayer);
            }
I don't think this is working ... i can't test it right now xd

plz help me

UPDATE:
pawn Код:
new randomplayer = Iter_Random(Player);
        TogglePlayerSpectating(playerid, 1);
        PlayerSpectateVehicle(playerid,GetPlayerVehicleID(randomplayer));
THIS SHOULD WORK ?!
Reply


Messages In This Thread
Spectating a random player - by Michael@Belgium - 11.04.2011, 08:38
Re: Spectating a random player - by iggy1 - 11.04.2011, 08:44
Re: Spectating a random player - by Michael@Belgium - 11.04.2011, 08:47
Re: Spectating a random player - by iggy1 - 11.04.2011, 08:50
Re: Spectating a random player - by Mean - 11.04.2011, 08:51
Re: Spectating a random player - by iggy1 - 11.04.2011, 08:53
Re: Spectating a random player - by Michael@Belgium - 11.04.2011, 08:54
Re: Spectating a random player - by Mean - 11.04.2011, 08:54
Re: Spectating a random player - by iggy1 - 11.04.2011, 08:57
Re: Spectating a random player - by Michael@Belgium - 11.04.2011, 08:58

Forum Jump:


Users browsing this thread: 2 Guest(s)