SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 03/06/2012, 09:36 PM   #1
MarinacMrcina
Big Clucker
 
MarinacMrcina's Avatar
 
Join Date: May 2012
Location: Croatia
Posts: 119
Reputation: 11
Default Little help pls

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 Code:
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 Code:
If(PlayerInfo[playerid][Tut]=0)
{
   //show tutorial here
}
MarinacMrcina is offline   Reply With Quote
Old 04/06/2012, 04:34 PM   #2
MarinacMrcina
Big Clucker
 
MarinacMrcina's Avatar
 
Join Date: May 2012
Location: Croatia
Posts: 119
Reputation: 11
Default Re: Little help pls

Does anybody know how to do it?
MarinacMrcina is offline   Reply With Quote
Old 04/06/2012, 07:47 PM   #3
ProdrifterX
Huge Clucker
 
ProdrifterX's Avatar
 
Join Date: Aug 2011
Location: drift-generation.co.cc
Posts: 211
Reputation: 4
Default Re: Little help pls

Why u dont use some Admin script?
__________________
ZoneX-Gaming.tk
_____________________

www.uD-server.tk
ProdrifterX is offline   Reply With Quote
Old 04/06/2012, 07:58 PM   #4
MarinacMrcina
Big Clucker
 
MarinacMrcina's Avatar
 
Join Date: May 2012
Location: Croatia
Posts: 119
Reputation: 11
Default Re: Little help pls

I didnt' get to that yet.
MarinacMrcina is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 03:07 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.