help with this cmd
#1

lol, i tryed to make dcmd_admins but it only shows the
name to who typed admin and it sends the message to all
why?
Код:
dcmd_admins(playerid,params[])
{
    #pragma unused params
    new string[128], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(PInfo[i][Level] > 1)
        {
            format(string, sizeof string, "(%i)%s/n/",i, pName);
            SendClientMessage(i,LGREEN, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
help with this cmd - by dark_clown - 20.10.2010, 18:08
Re: help with this cmd - by Scenario - 20.10.2010, 18:16

Forum Jump:


Users browsing this thread: 4 Guest(s)