How do i create a /playerlist?
#2

pawn Код:
CMD:playerlist(playerid, params[])
{
    new VW, Score, name[MAX_PLAYER_NAME], string[1024];
    for(new i; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(playerid))
        {
            VW = GetPlayerVirtualWorld(i);
            Score = GetPlayerScore(i);
            GetPlayerName(i, name, sizeof(name));
            format(string, sizeof(string), "%s | %d | %d", name, VW, Score);
            SendClientMessage(playerid, -1, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
How do i create a /playerlist? - by Beastlynoob - 15.08.2012, 13:29
Re: How do i create a /playerlist? - by IceMeteor - 15.08.2012, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)