FANDOM


Postavlja igrača u spec mod (gledanje na drugog igrača).


Parametri: (playerid, targetplayerid, mode = SPECTATE_MODE_NORMAL)

playerid - ID Igrača kojeg želimo ubaciti u spec modu.

targetplayerid - ID Igrača na kojeg će playerid se "specati".

mode - Spec mod (neobavezno)


Returns: Ova funkcija ne vraća određenu vrijednost.


NAPOMENA: TogglePlayerSpectating mora biti uključen prije PlayerSpectatePlayer.


PrimjerEdit

public OnPlayerDeath(playerid, killerid, reason)
{
    TogglePlayerSpectating(playerid, 1); //Ubacuje igrača u spec mod kada umre
    PlayerSpectatePlayer(playerid, killerid); //Specuje se na "killerid" parametar
    return 1;
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.