how does i save with dini when i disconnect
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)