Loading skins.
#1

Hey guys, i was wondering how i could go about loading skins if the player is registered. if they are not registered it sends them to the class menu.

Heres some info about my code.

The skins save perfectly fine in the file, but i'm not sure how to load them.
pawn Код:
if(!dini_Exists(playerfile)) register(playerid);
else if(dini_Exists(playerfile)) login(playerid);
then the dialog is

pawn Код:
if(dialogid == LOGIN)
{
        loadskin blah
}
if(dialogid == REGISTER)
{
       ForceClassSelection(playerid); or something.
}
I'v tryed using a timer to skip the selection but when you use SpawnPlayer(playerid); it picks the first skin then i can't load the one in the file because it saves over it.

Cheers for any help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)