how does i save with dini when i disconnect
#1

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
Reply
#2

Search.
Reply
#3

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

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

what do you want to save
Reply
#6

name,tag,kills and death,rank and admin level
Reply
#7

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.
Reply
#8

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

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
Reply
#10

ok
and about saveing thing ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)