SA-MP Forums Archive
Player spawns twice - 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: Player spawns twice (/showthread.php?tid=597768)



Player spawns twice - bugi - 04.01.2016

On onplayerspawn i have some text like welcome blahblah so it is shown twice when player spawns ? what could it be? Maybe this ? :

Код:
public OnPlayerRequestClass(playerid, classid)
{
    if( PlayerLogged[ playerid ] == true )
	{
    SetSpawnInfo( playerid, 0, PlayerInfo[ playerid ][ pSkin ], 1732.4479, -1912.1218, 13.5623, 360.00, 0, 0, 0, 0, 0, 0  );
    SpawnPlayer( playerid  );
	}
    else return false;
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    if( PlayerLogged[ playerid ] == true ){
    SetSpawnInfo( playerid, 0, PlayerInfo[ playerid ][ pSkin ], 1732.4479, -1912.1218, 13.5623, 360.00, 0, 0, 0, 0, 0, 0  );
   	SpawnPlayer( playerid  );
	}
    else return false;
    return 1;
}