Connecting my race(as in species) to /stats
#1

How do I actually create a /stats command? I also want my races "vampire/human" in the /stats and all basic RP stuff as money and certain other vital things.

If somebody could make a sketch or at least link me the stuff I'd appreciate it, thanks.
Reply
#2

Bump
Reply
#3

do you have a player info enum or something?
Reply
#4

Nothing that saves anything at all if that is what you're asking.
Reply
#5

Bump.
Reply
#6

pawn Код:
if(strcmp(cmd, "/stats", true) == 0 )
    {
        new iString[128], iTeam[10];
        if(team[playerid] == 1) iTeam = "Vampire";
        if(team[playerid] == 2) iTeam = "Human";
        format(iString, sizeof(iString), "You're a %s. | You have %d Money", iTeam, GetPlayerMoney(playerid));
        SendClientMessage(playerid, 0xFFFFFFAA, iString);
        return 1;
    }
Like this?
You can change team[playerid] to your team system ..
hugss
Reply
#7

It gives me some errors though, I tried changing it to gTeam as well and that resulted in errors as well. Thanks anyway!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)