Everyone is an Admin Level 5 when they connect.
#1

Im using Y_INI to save the player stats (Info).
OnPlayerConnect
pawn Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
// The rest is dialogs , the other stats load normally , only the admin level is 5
dialog response
pawn Код:
for register:
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Username",MAX_PLAYER_NAME);
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Cash",0);
                INI_WriteString(File, "Ip", IP);
                INI_WriteInt(File,"Score",0);
                INI_WriteInt(File,"Admin",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_WriteInt(File,"Banned",0);
                INI_WriteInt(File,"BannedBy",0);
                INI_WriteInt(File,"BannedName",0);
                INI_WriteInt(File,"BannedFor",0);
                INI_Close(File);
Whats the problem?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)