02.08.2014, 19:20
(
Последний раз редактировалось SHoCK44; 22.10.2014 в 21:36.
)
its ok
TogglePlayerSpectating(playerid, 1);
Yes it does.
Код:
TogglePlayerSpectating(playerid, 1); |
Under OnPlayerConnect, use TogglePlayerSpectating. Then use SetSpawnInfo to allow automatic spawning under OnPlayerRequestClass. When you want them to spawn, simply set their spectating to false.
https://sampwiki.blast.hk/wiki/SetSpawnInfo |
if(PlayerInfo[playerid][NewReg] == 0) // Checking if the player is a new registrator.
{
//SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]); // Sets the player skin.
SetPlayerPos(playerid, PlayerInfo[playerid][Xpos], PlayerInfo[playerid][Ypos], PlayerInfo[playerid][Zpos]+0.3);
}