Posts: 1,426
Threads: 56
Joined: Dec 2010
Reputation:
0
What kind of things you want in your stats?
Posts: 144
Threads: 48
Joined: Nov 2010
Reputation:
0
Name, money, age, (havent figured out the age system, yet.) Admin level, etc.
Posts: 1,426
Threads: 56
Joined: Dec 2010
Reputation:
0
They are saved in DINI or INI?
Posts: 815
Threads: 65
Joined: May 2010
dini_Get them into vars, and then format() it and place the vars accordingly, like:
pawn Code:
GetPlayerName(playerid, name, 24);
format(string, sizeof string, "Stats: [%s] Level: %d | Score: %d | Cash: %d |",name,Level[playerid],GetPlayerScore(playerid), GetPlayerMoney(playerid));
SendClientMessage(playerid, -1, string);
Posts: 144
Threads: 48
Joined: Nov 2010
Reputation:
0
Im sorry, but i dont know how to place any vars or something. Can you do the all command? It uses zcmd.
Posts: 815
Threads: 65
Joined: May 2010
Make a new var like:
Then,
pawn Code:
variable = dini_Get(formattedfilehere,"Level");
EDIT: Oh, erm.
pawn Code:
CMD:stats(playerid, params[])
{
new file[36], Level, name[24], string[42];
GetPlayerName(playerid, name, 24);
format(file, sizeof file, "/Users/%s.ini",name);
Level = dini_Get(file, "Level");
format(string, sizeof string, "[%s] Admin Level: %d",name,level);
SendClientMessage(playerid, blue, string);
return 1;
}
Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
Place it in your stats command ?
Posts: 144
Threads: 48
Joined: Nov 2010
Reputation:
0
Nevermind, can you guys help me to make the /ajail (playerid/name) (time) (reason) command?
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
That's not really helping you with it, but creating it for you. If you want the script made for you, reply in the Script Requests thread. Otherwise, show us what you have made so far in the command.
There are also multiple administration scripts in the Filterscripts section of this forum that contain that command. Not to mention, countless threads asking the same question as yours as well. Try doing some searching either via the search engine on this forum (which to be honest, isn't that great) or ******.