Little help pls - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Little help pls (
/showthread.php?tid=348023)
Little help pls -
MarinacMrcina - 03.06.2012
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
}
Re: Little help pls -
MarinacMrcina - 04.06.2012
Does anybody know how to do it?
Re: Little help pls -
ProdrifterX - 04.06.2012
Why u dont use some Admin script?
Re: Little help pls -
MarinacMrcina - 04.06.2012
I didnt' get to that yet.