Making my admin system (Day 2) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Making my admin system (Day 2) (
/showthread.php?tid=426289)
Making my admin system (Day 2) -
CBCandyBoy - 28.03.2013
hello everyone i have made all the commands the the previous error is fixed now im in problem how can i make the /setlevel command
i have enumed
this all
pawn Код:
enum ServerData
{
MaxAdminLevel, //it is in config file in a folder which is by default 5
};
new ServerInfo[ServerData];
enum pInfo {
PLAYER_NAME[MAX_PLAYER_NAME],
PLAYER_IP[16],
PLAYER_REGGED,
PLAYER_PASS,
pcash,
Jailed,
LoggedIn,
Level,
Muted,
Caps,
CJailTime,
Frozen,
FreezeTime,
Kills,
Deaths,
hours,
mins,
secs,
TotalTime,
ConnectTime,
MuteWarnings,
Warnings,
Spawned,
TimesSpawned,
God,
OnDuty,
blip,
blipS,
pColour,
SpecID,
SpecType,
}
and i also have a file which stores players data
pawn Код:
#define PlayerFile "***/Users/%s.ini"
pawn Код:
dini_Create(file);
dini_Set(file, "Name", name);
dini_Set(file, "Ip", ip);
dini_IntSet(file, "Registered", 1);
format(strdate, sizeof(strdate), "%d/%d/%d",day,month,year);
dini_Set(file, "Registered On:", strdate);
dini_IntSet(file, "Password", num_hash(inputtext));
dini_IntSet(file, "Level", 0);
dini_IntSet(file, "Money", 50);
Re: Making my admin system (Day 2) -
CBCandyBoy - 29.03.2013
Bump!!!
Re: Making my admin system (Day 2) -
Pottus - 29.03.2013
Don't use dini use yini it's the same syntax but a lot faster.
Re: Making my admin system (Day 2) -
CBCandyBoy - 29.03.2013
ok but i want a setlevel cmd
Re: Making my admin system (Day 2) -
Gangster-rocks - 29.03.2013
Do it your self.
Try a tutorial.
IT will make you more experienced scripter