[COMMAND] /spec
#3

Quote:
Originally Posted by MartinSwag
Посмотреть сообщение
Yeah, you have to save the old position of playerid in a global variable. If you type '/spec off', it'll re-create giveplayerid, x, y, z. So x, y, and z will be 0 and that's why you spawn in Blueberry.
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;
Reply


Messages In This Thread
[COMMAND] /spec - by BarFix - 31.10.2015, 17:36
Re: [COMMAND] /spec - by MartinSwag - 31.10.2015, 17:55
Re: [COMMAND] /spec - by BarFix - 31.10.2015, 17:58
Re: [COMMAND] /spec - by MartinSwag - 31.10.2015, 18:26

Forum Jump:


Users browsing this thread: 1 Guest(s)