How can i create a skin selection when a player registers?
#1

Title says it all.
Reply
#2

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.
Reply
#3

Quote:
Originally Posted by itsCody
Посмотреть сообщение
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.
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.
Reply
#4

PHP код:
new bool:SelectedSkin[MAX_PLAYERS];
// Registering...
SelectedSkin[playerid] = false;
public 
OnPlayerRequestClass(playeridclassid)
{
    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
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)