How can i create a skin selection when a player registers? - 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 can i create a skin selection when a player registers? (
/showthread.php?tid=604219)
How can i create a skin selection when a player registers? -
iCurse - 02.04.2016
Title says it all.
Re: How can i create a skin selection when a player registers? -
itsCody - 02.04.2016
https://sampwiki.blast.hk/wiki/AddPlayerClass
https://sampwiki.blast.hk/wiki/OnPlayerRequestClass
Those are the two key things to do so.
Unless you wanted something else, be more specific.
Re: How can i create a skin selection when a player registers? -
iCurse - 02.04.2016
Quote:
Originally Posted by itsCody
|
I need a skin selection, where you can select the skin you want after registering. Skin selection must only be for new comers, after selecting a skin then spawned, left the server then logging in back, you will not be able to select a skin. Just like that.
Re: How can i create a skin selection when a player registers? -
itsCody - 02.04.2016
PHP код:
new bool:SelectedSkin[MAX_PLAYERS];
// Registering...
SelectedSkin[playerid] = false;
public OnPlayerRequestClass(playerid, classid)
{
if(SelectedSkin[playerid])
{
//SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
}
else
{
// have them select it
}
return 1;
}
Set the variable to true when they spawn or something
Could try something like that.
You'd have to save the var obviously
Re: How can i create a skin selection when a player registers? -
zT KiNgKoNg - 02.04.2016
Here:
https://sampforum.blast.hk/showthread.php?tid=570213 (Good include for a visual skin selector / Dialog esc design)....
For everything else required to detect select that'll be upto you, the Wiki has everything you need... Along with the tutorials section can also help with this.