DCMD help
#3

Quote:
Originally Posted by CyberGhost
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(stats, 5, cmdtext);
   
    if(strcmp("/factions", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid, 0x00FF00AA, "{66FF66}|FACTIONS|{00FF00} 0)Civ 1)LSPD | 2)Army 3)EMS 4)Swat | 5)SS | 6) Gov | 7)Hit");
        return 1;
    }
    return 0;
}


dcmd_stats(playerid,params[])
{
    #pragma unused params
    new string[128];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "|Account| Name: %s | Kills: %d | Deaths: %d | Cash: %d", name, PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths], GetPlayerMoney(playerid));
    SendClientMessage(playerid, COLOR_GREEN, string);
    return 1;
}
Thanks, worked
Reply


Messages In This Thread
DCMD help - by DaRealz - 24.06.2011, 04:51
Re: DCMD help - by Laronic - 24.06.2011, 04:55
Re: DCMD help - by DaRealz - 24.06.2011, 05:01

Forum Jump:


Users browsing this thread: 1 Guest(s)