Question regarding 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question regarding class selection (
/showthread.php?tid=98177)
Question regarding class selection -
ded - 19.09.2009
Hello, i'll get straight to the point.
I would like to know in clear terms how this can be done, I don't want anyone telling me about searchinjg or anything like that in this topic, no off topic or nothing. I have searched before and have not found an answer to this particular question.
I am wanting to disable class selection for registered players .. because registered players have a saved skin. So what I want to be able to happen is .. when a player connects if he/she has an account it skips the class selection and I can place them somewhere (a login room kinda thing) ... but still has the ability to push F4 and select a new skin whenever they want.
If a player doesn't have an account they should go straight to class selection.
Re: Question regarding class selection - [03]Garsino - 19.09.2009
Quote:
Originally Posted by » Pawnst★r «
Hello, i'll get straight to the point.
I would like to know in clear terms how this can be done, I don't want anyone telling me about searchinjg or anything like that in this topic, no off topic or nothing. I have searched before and have not found an answer to this particular question.
I am wanting to disable class selection for registered players .. because registered players have a saved skin. So what I want to be able to happen is .. when a player connects if he/she has an account it skips the class selection and I can place them somewhere (a login room kinda thing) ... but still has the ability to push F4 and select a new skin whenever they want.
If a player doesn't have an account they should go straight to class selection.
|
Well,if an player is registred. His/her skin should be the only one aviable at class selection screen.
Re: Question regarding class selection -
ded - 19.09.2009
Quote:
Originally Posted by Garsino
Quote:
Originally Posted by » Pawnst★r «
Hello, i'll get straight to the point.
I would like to know in clear terms how this can be done, I don't want anyone telling me about searchinjg or anything like that in this topic, no off topic or nothing. I have searched before and have not found an answer to this particular question.
I am wanting to disable class selection for registered players .. because registered players have a saved skin. So what I want to be able to happen is .. when a player connects if he/she has an account it skips the class selection and I can place them somewhere (a login room kinda thing) ... but still has the ability to push F4 and select a new skin whenever they want.
If a player doesn't have an account they should go straight to class selection.
|
Well,if an player is registred. His/her skin should be the only one aviable at class selection screen.
|
No .. because if they are registered the don't go to class selection they go to the login room with the camera behind the player.
Re: Question regarding class selection -
Mikep. - 19.09.2009
pawn Код:
new pCheck[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
pCheck[playerid] = 0;
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(Registered(playerid) && !pCheck[playerid]) SpawnPlayer(playerid);
pCheck = 1;
return 1;
}
That's how I would do it.
Re: Question regarding class selection -
ded - 19.09.2009
Quote:
Originally Posted by Mikep.
pawn Код:
new pCheck[MAX_PLAYERS];
public OnPlayerConnect(playerid) { pCheck[playerid] = 0; return 1; }
public OnPlayerRequestClass(playerid, classid) { if(Registered(playerid) && !pCheck[playerid]) SpawnPlayer(playerid); pCheck = 1; return 1; }
That's how I would do it.
|
But then what would happen to new players, players that aren't registered?
Re: Question regarding class selection -
ded - 21.09.2009
Bump.