Lil help
#4

Ops, my bad. I read it wrong, try this:
pawn Код:
CMD:vchat(playerid, params[])
{
    if(PlayerData[playerid][vip] < 0) return SendClientMessage(playerid, 0xFF9900AA, "You cannot use this command!");

    new
        iName[MAX_PLAYER_NAME],
        iStr[128];

    if(isnull(params)) return SendClientMessage(playerid, 0xFF9900AA, "Usage: /VChat < Message >");

    GetPlayerName(playerid, iName, sizeof(iName));

    for(new i = 0; i < MAX_PLAYERS; ++i)
    {
        if(IsPlayerConnected(i) && !IsPlayerNPC(i))
        {
            if(PlayerData[i][vip] > 0)
            {
                format(iStr, sizeof(iStr), "[VIPCHAT] %s: %s", iName, params);
                SendClientMessage(i, 0xFF9900AA, iStr);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Lil help - by tanush - 23.03.2011, 00:12
Re: Lil help - by [L3th4l] - 23.03.2011, 00:29
Re: Lil help - by tanush - 23.03.2011, 00:52
Re: Lil help - by [L3th4l] - 23.03.2011, 00:59

Forum Jump:


Users browsing this thread: 1 Guest(s)