Class Selection
#1

My server currently has a Class Selection when you connect. I want to remove that and just have you login/register. Any ideas?
Reply
#2

I don't have class selection

Well, i do but its just like a normal new.pwn selection, when u click shift or spawn it automatically sets your job..

Try SpawnPlayer
Reply
#3

What I want to do is bypass the skin selection in the beggining, where if you are first registering it will auto-set your skin.
Reply
#4

Check if a player account exists, if it exists: Spawn the player with their correct attributes
If the account doesn't exist: Don't spawn the player and force them in to the character selection menu.

It's pretty simple really.
Reply
#5

Well I want them to spawn either way, and they need to go to binco to buy clothes later on.
Reply
#6

Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
Well I want them to spawn either way, and they need to go to binco to buy clothes later on.
Oh, my apologies, misread.

Simply remove anything that sends a player to the class selection, send a dialog OnPlayerConnect, once they'd entered the text in and it's all correct, spawn them, remove all of your code from the OnPlayerRequestClass or OnPlayerRequestClass and all instances of ForceClassSelection.
Reply
#7

hey, if ever that help ...
I use an evil timer to spawn the player a short time after they request any class...
usually the client(on fist class request after a connection) is not ready to be spawned...

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    //SpawnPlayer(playerid) // This will probably not work, usualy the client is not ready
    SetTimerEx("SpawnMe", 500, false, "i", playerid);// what i do is to spawn them 500 MS after they request a class...
    return 1;
}

// small public function...
forward SpawnMe(playerid);
public SpawnMe(playerid)
{
    SpawnPlayer(playerid);
    return 1;
}
This is a very simple example...
there is a lot of room for improvement

Good Luck
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)