03.06.2012, 21:36
I have this login code and I want to add something to check if the player has done his tutorial but don't know how.
Something like this
pawn Код:
stock Login(playerid,key[])
{
new file]64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(file,sizeof(file),"/users/%s.txt",name);
if(!strcmp(key,dini_Get(file,"password"),true))
{
// login player
else
{
//password wrong,repeat it...
}
}
pawn Код:
If(PlayerInfo[playerid][Tut]=0)
{
//show tutorial here
}