stats for this fs?
#1

Hi all,i use this FS for my server:

http://forum.sa-mp.com/showthread.ph...t=admin+system

It has register command but dont have /stats

How i can add?

Thanks
Reply
#2

Im not sure how the player vars gets saved..

but heres an function i jost wrote away.. not sure if it works but should:

pawn Код:
public PlayerStats(playerid)
{
     new string[128];
     format(string, 128, "Kills: %d - Deaths: %d",PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths]);
     SendClientMessage(playerid);
}
Reply
#3

look at ladmin

This forum requires that you wait 120 seconds between posts. Please try again in 67 seconds.
fuc anti spam
Reply
#4

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
Im not sure how the player vars gets saved..

but heres an function i jost wrote away.. not sure if it works but should:

pawn Код:
public PlayerStats(playerid)
{
     new string[128];
     format(string, 128, "Kills: %d - Deaths: %d",PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths]);
     SendClientMessage(playerid);
}
Where i need to paste this code?
Reply
#5

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Where i need to paste this code?
Depends on what command system you use..

Heres an example of it with Strcmp:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/stats", true, 6)) // 6 is the length of /stats
    {
        return PlayerStats(playerid);
    }
    return 0;
}
Reply
#6

Not work
Reply
#7

What isnt working then?
Reply
#8

Cameltoe dont you forget something in your first code? (,string)
Reply
#9

Quote:
Originally Posted by Fj0rtizFredde
Посмотреть сообщение
Cameltoe dont you forget something in your first code? (,string)
Re-Read it i'm not forgetting anything ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)