Me again, DINI problem
#9

On the top of your script add something like:

pawn Код:
enum pInfo
{
  Banned
}
and
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
Under OnPlayerConnect, add this on top:
pawn Код:
PlayerInfo[playerid][Banned] = dini_Int(file, "Banned");
Then, under onplayerconnect do:
pawn Код:
if(PlayerInfo[playerid][Banned] == 1)
{
 //Enter what to do if player is banned here
}
You should also use this method for getting other things from DINI, just add the pVar's you'll use to the enum and remember to set their value to the value in their userfile under onplayerconnect, or after they've logged in, etc, depending on your script.
Reply


Messages In This Thread
Me again, DINI problem - by Mean - 07.01.2011, 18:15
Re: Me again, DINI problem - by Ash. - 07.01.2011, 18:17
Re: Me again, DINI problem - by Toreno - 07.01.2011, 18:17
Re: Me again, DINI problem - by Ash. - 07.01.2011, 18:20
Re: Me again, DINI problem - by Mean - 07.01.2011, 18:22
Re: Me again, DINI problem - by Toreno - 07.01.2011, 18:23
Re: Me again, DINI problem - by Mean - 07.01.2011, 18:24
Re: Me again, DINI problem - by Ash. - 07.01.2011, 18:34
Re: Me again, DINI problem - by John_F - 07.01.2011, 22:34

Forum Jump:


Users browsing this thread: 2 Guest(s)