Turning Cmds
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    /////
    if(strcmp("/scoreboard", cmdtext, true, 10) == 0)
    {
        for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
        {
            new string[1337];
            format(string, sizeof(string), "%s                   \t           %d", PlayerName(i), GetPlayerScore(i));
            ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "     {FF0000}Name                                          Score", string, "Okai", "");
        }
        return 1;
    }
    /////
    return 0;
}

stock PlayerName(playerid)
{
    new name[24];
    GetPlayerName(playerid, name, sizeof(name));
    return name;
}
Reply


Messages In This Thread
Turning Cmds - by 0_o - 05.06.2011, 16:52
Re: Turning Cmds - by KoczkaHUN - 05.06.2011, 17:02
Re: Turning Cmds - by Laronic - 05.06.2011, 17:05
Re: Turning Cmds - by 0_o - 05.06.2011, 17:05
Re: Turning Cmds - by KoczkaHUN - 05.06.2011, 17:13
Re: Turning Cmds - by Mean - 05.06.2011, 17:16
Re: Turning Cmds - by 0_o - 05.06.2011, 17:18
Re: Turning Cmds - by KoczkaHUN - 05.06.2011, 17:20
Re: Turning Cmds - by KoczkaHUN - 05.06.2011, 17:22
Re: Turning Cmds - by 0_o - 05.06.2011, 17:32

Forum Jump:


Users browsing this thread: 1 Guest(s)