02.08.2014, 20:26
Quote:
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 |
PHP код:
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);
}