14.09.2018, 16:37
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);
}
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);