SA-MP Forums Archive
Skip class selection when player is registered - 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: Skip class selection when player is registered (/showthread.php?tid=356023)



Skip class selection when player is registered - andrew2695 - 02.07.2012

Hi I would like to make it so when a player is registered it kinda freeze the "Next and "Previous" button on the class selection and does not show a skin and when he click "Spawn" it set his last skin and class. I'm already saving skin and class but for some reason it's not working.

OnPlayerConnect I have my Register and Login dialogs and some textdraws.

OnPlayerRequestClass I have the class selection and my team skins.

OnPlayerSpawn I have my team settings(Weapons, Spawns, etc..)

I tried to force the player spawn when he's done login but it didnt work. I would like to know how to make the Next and Previous buttons not working and then when he spawns I'll be able to apply the saved data like Skin and Team.


AW: Skip class selection when player is registered - LeOsk - 02.07.2012

If(DiniExist) // or how you check it
{
SpawnPlayer(playerid);
}


Re : Skip class selection when player is registered - andrew2695 - 02.07.2012

I tought bout this but it doesnt work


Re: Skip class selection when player is registered - newbienoob - 02.07.2012

pawn Код:
OnPlayerSpawn
SetPlayerSkin(playerid,playerinfo[playerid][pSkin]);



Re: Skip class selection when player is registered - SweedenKing - 16.08.2016

I'm bumping this...I have the same problem


Re: Skip class selection when player is registered - StrikerZ - 16.08.2016

I had that problem too try using SpawnPlayer(playerid); at the place where your player logins