31.10.2015, 17:58
Quote:
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.
|
Код:
GetPlayerPos(playerid, x, y, z); TogglePlayerSpectating(playerid, true); PlayerSpectatePlayer(playerid, giveplayerid); SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid)); SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid)); spec[playerid] = giveplayerid;