21.01.2011, 10:22
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.
then the dialog is
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.
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);
pawn Код:
if(dialogid == LOGIN)
{
loadskin blah
}
if(dialogid == REGISTER)
{
ForceClassSelection(playerid); or something.
}
Cheers for any help.