VIP chat help... how to make it so ... [Readdd]
#3

Dimi's command did the job, but it did not work like the first one, maybe it was even re-written, you feel free to use my version (which is also flawless).

pawn Код:
CMD:vip( playerid, params[ ] )
{
    if (gPlayerData[playerid][VIP] >= 1)
    {
        new string[128];
        if( isnull( params ) ) return SendClientMessage(playerid, 0xFFFFFFF,"Syntax error. Correct usage: /vip [text]");
        format( string, sizeof( string ),"V.I.P Chat: {00FF00}%s{FF5500}: %s", playerid, pText );
        foreach(Player,i) // for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if ( gPlayerData[i][VIP] >= 1 )
            {
                SendclientMessage( i , -1, string );
            }
        }
       
    }
    else if (gPlayerData[playerid][VIP] < 1)
    {
        SendClientMessage(playerid, -1, "Sorry, you cannot use the this Chat. Please Donate first.");
        return 1;
    }

    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)