31.10.2015, 18:26
Quote:
Thats what this is xD
Код:
GetPlayerPos(playerid, x, y, z); TogglePlayerSpectating(playerid, true); PlayerSpectatePlayer(playerid, giveplayerid); SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid)); SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid)); spec[playerid] = giveplayerid; |
Код:
CMD:spec(playerid, params[]) { new giveplayerid, Float:x, Float:y, Float:z;
Код:
new Float:specPos[MAX_PLAYERS][3], specInt[MAX_PLAYERS], specVW[MAX_PLAYERS]; //Old position, int and vw of the admin. GetPlayerPos(playerid, SpecPos[playerid][0], SpecPos[playerid][1], SpecPos[playerid][2]); specInt[playerid] = GetPlayerInterior(playerid); specVW[playerid] = GetPlayerVirtualWorld(playerid);