Register issue - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Register issue (
/showthread.php?tid=658869)
Register issue -
TheAftermath - 14.09.2018
Hey, so im currently having an issue with my script, new players arent able to spawn after registering, it's like they're still in the air spectating. thankful for any help in the right direction. My code
}
SetPlayerToSpawn(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
{
SetSpawnInfo(playerid, NO_TEAM, PlayerInfo[playerid][pSkin], 820.5590, -1342.6283, 13.5216, 90.0000, 0, 0, 0, 0, 0, 0);
TogglePlayerSpectating(playerid, false);
Re: Register issue -
Undef1ned - 14.09.2018
PHP код:
TogglePlayerSpectating(playerid, false);
SetSpawnInfo(playerid, NO_TEAM, PlayerInfo[playerid][pSkin], 820.5590, -1342.6283, 13.5216, 90.0000, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);