Connecting my race(as in species) to /stats
#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


Messages In This Thread
Connecting my race(as in species) to /stats - by Andregood - 20.04.2011, 14:45
Re: Connecting my race(as in species) to /stats - by Andregood - 20.04.2011, 21:01
Re: Connecting my race(as in species) to /stats - by Markx - 20.04.2011, 21:04
Re: Connecting my race(as in species) to /stats - by Andregood - 20.04.2011, 21:12
Re: Connecting my race(as in species) to /stats - by Andregood - 22.04.2011, 01:20
Re: Connecting my race(as in species) to /stats - by Ricop522 - 22.04.2011, 03:13
Re: Connecting my race(as in species) to /stats - by Andregood - 22.04.2011, 09:48

Forum Jump:


Users browsing this thread: 1 Guest(s)