/stats
#1

Hi how can I make a simple /stats?

[kills] [deaths] [ratio] [money] [time played] [minutes]

I will rep +. Or a FS.
Reply
#2

We need to know more.

What is your account system?It's coded from scratch or you're editing some gamemode?

Also,what file saving it uses? Y_INY,DINI or MYSQL?
Reply
#3

Код:
CMD:stats(playerid,params[])
{
    new password = PlayerInfo[playerid][pPass];
    new money = PlayerInfo[playerid][pCash];
    new deaths = PlayerInfo[playerid][pDeaths];
    new kills = PlayerInfo[playerid][pKills];
    new score = PlayerInfo[playerid][pScore];
    new admin = PlayerInfo[playerid][pAdmin];
    new vip = PlayerInfo[playerid][pVIP];
    new killpoints = PlayerInfo[playerid][pKillPoints];
    new string[500];
    format(string,sizeof(string),"Password: %s | Money: %d | Deaths: %d | Kills: %d | Score: %d | Admin: %d | VIP: %d | Killpoints: %d",password,money,deaths,kills,score,admin,vip,killpoints);
    SendClientMessage(playerid,COLOR_WHITE,string);
    return 1;
}
try this
Reply
#4

Quote:
Originally Posted by [EuG]ZeRoGoD
Посмотреть сообщение
try this
Small tip,for the Money part,use %i instead of %d.
Reply
#5

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Small tip,for the Money part,use %i instead of %d.
yeh my bad lol thanks but it wont work anyway because hes not useing zcmd =\
+he is useing lux admin so not exactly sure what he would need 2 do
Reply
#6

Quote:
Originally Posted by [EuG]ZeRoGoD
Посмотреть сообщение
yeh my bad lol thanks but it wont work anyway because hes not useing zcmd =\
+he is useing lux admin so not exactly sure what he would need 2 do
Yeah that's why i've asked more info to help him.
Reply
#7

Someone got a good FS?
Reply
#8

Ladmin has /stats and is quite advanced with that stuff.

I recomend you use Ladmin (LethalAdmin) FS

Reply
#9

Or create your own admin system,much better than this buggies admin systems.
Reply
#10

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Small tip,for the Money part,use %i instead of %d.
Ehhhm, what's wrong with %d? Both %i and %d output integers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)