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



class selection..! - BoU3A - 22.09.2013

is this possible when enter my password and click on register



the player automatically spawn to this position without class selection ?


Re: class selection..! - AnonScripter - 22.09.2013

i don't know if it's possible or not, but why do you want this ?
the class selections is so important to players, unless if you want all skins would be CJ in the game !!


Re: class selection..! - CesarLT - 23.09.2013

Quote:
Originally Posted by AnonScripter
Посмотреть сообщение
i don't know if it's possible or not, but why do you want this ?
the class selections is so important to players, unless if you want all skins would be CJ in the game !!
He can easily make a cmd which will change the skins to w/e he would like to.


P.S. - To your question, yes it is possible, like that:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetTimerEx("SpawnThePlayer", 1, 0, "i", playerid);
    return 1;
}
Add that to your script first, than use OnPlayerSpawn to edit the information with X,Y,Z.

Under OnPlayerSpawn, add that:

pawn Код:
forward SpawnThePlayer(playerid);
public SpawnThePlayer(playerid)
{
    SpawnPlayer(playerid);
    return 1;
}
Hope this helped, good luck.


Re: class selection..! - BoU3A - 23.09.2013

Quote:
Originally Posted by CesarLT
Посмотреть сообщение
He can easily make a cmd which will change the skins to w/e he would like to.


P.S. - To your question, yes it is possible, like that:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetTimerEx("SpawnThePlayer", 1, 0, "i", playerid);
    return 1;
}
Add that to your script first, than use OnPlayerSpawn to edit the information with X,Y,Z.

Under OnPlayerSpawn, add that:

pawn Код:
forward SpawnThePlayer(playerid);
public SpawnThePlayer(playerid)
{
    SpawnPlayer(playerid);
    return 1;
}
Hope this helped, good luck.
its worked.. thank you


Re: class selection..! - CesarLT - 23.09.2013

Quote:
Originally Posted by BoU3A
Посмотреть сообщение
its worked.. thank you
Good to hear, always welcome.