check all online players for a skin
#2

Okay, you need to change the string size, and the PlayerInfo

pawn Код:
CMD:check(playerid, params)
{
    if(PlayerInfo[playerid][pAdmin] >= 1) // CHANGE THIS.
    {
        for(new i = 0; i < MAX_PLAYERS; i ++)
        {
            if(GetPlayerSkin(i) == 1)
            {
                new String[128], Name[MAX_PLAYER_NAME];
                GetPlayerName(i, Name, MAX_PLAYER_NAME);
                format(String, sizeof(String), "%s has skin id 1", Name);
                SendClientMessage(playerid, -1, String);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
check all online players for a skin - by NicholasA - 09.04.2013, 13:05
Re: check all online players for a skin - by Isolated - 09.04.2013, 13:12
Re: check all online players for a skin - by Konstantinos - 09.04.2013, 15:00

Forum Jump:


Users browsing this thread: 1 Guest(s)