[RequstClass] Attach camera to random player
#1

So yeah, I want to make sytem ( if possible ) for GM I am working on what should, attack camera on random player on server OnPlayerRequstClass. And if there is no players it will move with interpolatecamerapos but that will be other case. So one more time, if someone can help me make, to attach camera to other player when other player is requsting class.
Thanks!
Reply
#2

pawn Код:
for(new i = 0; i < MAX_PLAYERS; ++i)
        {
            if(IsPlayerConnected(i))
            {
                new lol = random(i);
                TogglePlayerSpectating(playerid, true);
                PlayerSpectatePlayer(playerid, lol);
            }
            else
            {
                InterCams(playerid);
            }
        }

    stock InterCams(playerid)
    {
        // interpolation here
        return 1;
    }
That what you're looking for?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)