SA-MP Forums Archive
How to bypass class selection - 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: How to bypass class selection (/showthread.php?tid=291250)



How to bypass class selection - SourceCode - 19.10.2011

How to bypass class selection for only certain variables a player, I tried spawnplayer but didnt work, where are what function can i use?


Re: How to bypass class selection - X3nZ - 19.10.2011

You could use a dialog to bypass it.

For your register system, then use the spawnplayer. I think that would work.


Re: How to bypass class selection - blazee14 - 19.10.2011

Just remove the class selection and your good to go.


Re: How to bypass class selection - SourceCode - 19.10.2011

I used SpawnPlayer after player login dialog, and for testing also used under onplayerconnect both didnt work, So..? @blazee i need class selection


Re: How to bypass class selection - blazee14 - 19.10.2011

Try to put it at OnPlayerSpawn and see.

Also explain deeper what you mean please.


Re: How to bypass class selection - SourceCode - 19.10.2011

I meant for some defined player , i need to skip class selection, so they auto spawn with skin they chose before (which i store in file and get the variable), I just need how to skip the class selection, and lol Onplayerspawn would make no sense


Re: How to bypass class selection - Joe Staff - 19.10.2011

pawn Код:
forward SkipClassSelection(playerid);
public OnPlayerRequestClass(playerid,classid)
{
    SetTimerEx("SkipClassSelection",1,0,"d",playerid);
}
public SkipClassSelection(playerid)
{
   SpawnPlayer(playerid);
}