12.12.2009, 00:50
I'm using Dudb and have no clue.
That's the PlayerInfo Section.
On playerdisconnect.
When the user has logged in.
Thanks, much appreciated if helped.
Код:
enum PlayerInfo { AdminLevel, Logged, Muted, Kicks, Bans } new PlayerData[MAX_PLAYERS][PlayerInfo];
Код:
dUserSetINT(PlayerName(playerid)).("PlayerBans", PlayerData[playerid][Bans]);
Код:
if(udb_CheckLogin(PlayerName(playerid),params)) { PlayerData[playerid][Logged] = 1; PlayerData[playerid][Kicks] = (dUserINT(PlayerName(playerid)).("PlayerKicks")); PlayerData[playerid][Bans] = (dUserINT(PlayerName(playerid)).("PlayerBans")); PlayerData[playerid][AdminLevel] = (dUserINT(PlayerName(playerid)).("AdminLevel")); SendClientMessage(playerid,COLOR_WHITE,"Successfully logged in!"); return true; }
Thanks, much appreciated if helped.