SA-MP Forums Archive
how does i save with dini when i disconnect - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how does i save with dini when i disconnect (/showthread.php?tid=148813)



how does i save with dini when i disconnect - d3adpain - 19.05.2010

subject i want save the name,tag,kills and death,rank and admin level
and 1 more thing when some connect 2 the game
that will check if he register
and if he not 2 tell em 2 register for spawn



Re: how does i save with dini when i disconnect - Calgon - 19.05.2010

Search.


Re: how does i save with dini when i disconnect - d3adpain - 19.05.2010

i new here how does i serach
and i are you sure that i can find what i ask ?


Re: how does i save with dini when i disconnect - d3adpain - 19.05.2010

i dont find any thing -.-
can some 1 pliz help ?


Re: how does i save with dini when i disconnect - park4bmx - 19.05.2010

what do you want to save


Re: how does i save with dini when i disconnect - d3adpain - 19.05.2010

name,tag,kills and death,rank and admin level



Re: how does i save with dini when i disconnect - Assyria - 19.05.2010

Look in some other scripts how they have done it, people are too lazy to explain it. Maybe we should become human 0.2 and we would have the power to explain.


Re: how does i save with dini when i disconnect - d3adpain - 19.05.2010

CAN U GIVE ME NAME OF SCRIPT OR ADMIN MODE
THAT THERE IS IT INSIDE THAT ?


Re: how does i save with dini when i disconnect - park4bmx - 19.05.2010

Quote:
Originally Posted by d3adpain
CAN U GIVE ME NAME OF SCRIPT OR ADMIN MODE
THAT THERE IS IT INSIDE THAT ?
Have you searched for any if not i got some
You could have a look at mine one
Ore search for some registration scripts like ERROR'S one ore you could search for ADMIN scripts like
Vadmin , Ladmin MANY MOERE+++

AND FOR THE
Quote:
Originally Posted by d3adpain
when some connect 2 the game
that will check if he register
and if he not 2 tell em 2 register for spawn
You could use something like this

First on top of u'r scrits
pawn Код:
new file[128], string[128];
  new name[MAX_PLAYER_NAME];
Then you put in your script
Under public OnPlayerSpawn(playerid) ore whetever you like
pawn Код:
GetPlayerName(playerid, name, sizeof(name));
    format(file,sizeof(file),"/FOLDER/%s.ini",name);
    if(!fexist(file))
    {
    SendClientMessage(playerid, COLOR_RED, "Please use/register [password] before you spawn");
IsLogged[playerid] = 0;
    }
    if(fexist(file))
    {
    SendClientMessage(playerid, COLOR_GREEN, "You have an account Please use /login [password]");
    }
WHERE IT SAS [/FOLDER/%s.ini] FOLDER is the name of the folder that goes in your scriptfiles and then it creat's/read's from a .ini FILE in that folder. So you could change the name of the FOLDER

I HAVENT TESTED THE SCRIPT BECOUSE I AM NOT AT HOME


Re: how does i save with dini when i disconnect - d3adpain - 19.05.2010

ok
and about saveing thing ?