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

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)