SA-MP Forums Archive
After connect - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: After connect (/showthread.php?tid=517161)



After connect - Stgnature - 03.06.2014

When u join the server and login box come after it , it dont show the skin menu where we Chose the Skin to be cop or els

if works before but now it dont works
and now if i try to keep rejoin again and again then it works after reconnection 5 times
how i can fix that am loosing player with that


Re: After connect - Threshold - 04.06.2014

pawn Код:
public OnPlayerConnect(playerid)
{
    OnPlayerRequestClass(playerid, 0);
    //Rest of code..
This will call OnPlayerRequestClass, so 'playerid' is automatically sent to class selection with the classid '0' (the starting skin).

EDIT: This really only depends whether you use SetPlayerCameraPos and SetPlayerPos in OnPlayerRequestClass.