Little help pls
#1

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.

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...
    }
}
Something like this

pawn Код:
If(PlayerInfo[playerid][Tut]=0)
{
   //show tutorial here
}
Reply
#2

Does anybody know how to do it?
Reply
#3

Why u dont use some Admin script?
Reply
#4

I didnt' get to that yet.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)