NEED Help About IRC CMD ! !!
#1

pawn Код:
CMD:setvip(playerid,params[]) {
if(IsPlayerAdmin(playerid)) {
        new tmp4[256], tmp3[256], Index; tmp4 = strtok(params,Index), tmp3 = strtok(params,Index);
        if(isnull(tmp4) || isnull(tmp3) || !IsNumeric2(tmp3)) return SendClientMessage(playerid, red, "USAGE: /setvip [playerid] [Level] | Note : Max Levels = 3 |");
        new player1 = strval(tmp4), skin = strval(tmp3), string[128];
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
            CMDMessageToAdmins(playerid,"Setvip");
            format(string, sizeof(string), "You have set \"%s's\" Vip Level to '%d", pName(player1), skin); SendClientMessage(playerid,orange,string);
            if(player1 != playerid) { format(string,sizeof(string),"Manager \"%s\" has set your Vip Level to '%d'", pName(playerid), skin); SendClientMessage(player1,orange,string); }
            return PlayerInfo[player1][dRank] = skin;
        } else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
    } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}

is that anyhow i can make this turn to IRC commands becoz i wanna be in IRC to set player vip level so please help me
and also the max vip level is 3
Reply
#2

Bumb,In My Country Now Is Happy New Year But still no one help
Reply
#3

How many VIP levels do you have?
Reply
#4

i have 3 level
Reply
#5

pawn Код:
IRCCMD:addvip(botid, channel[], user[], host[], params[])
{
    if (IRC_IsAdmin(botid, channel, user))
    {
        new endid;
        new strmessage[128];
        if(sscanf(params, "u", endid))
        {
            format(strmessage,sizeof(strmessage),"USAGE: !addvip (Player Name/ID)");
            Say(channel,strmessage);
            return 1;
        }
        if(!IsPlayerConnected(endid))
        {
            format(strmessage,sizeof(strmessage),"12ERROR: \2;%d\2; is not an active ID.", endid);
            Say(channel,strmessage);
            return 1;
        }
        if(VIP[endid] == 1337) ( Change this to your levels )
        {
            format(strmessage,sizeof(strmessage),"%s(%d) is already a VIP",PlayerName(endid),endid);
            Say(channel,strmessage);
            return 1;
        }
        new param[200];
        GetPlayerName(endid,param,200);
        if(PLAYERLIST_authed[endid] != 1)
        {
            format(strmessage,sizeof(strmessage),"%s(%d) is not logged into to the server. You must wait till they login before you set their administrator level.",PlayerName(endid),endid);
            Say(channel,strmessage);
            return 1;
        }
        format(strmessage,sizeof(strmessage),"[VIP] Admin %s has added %s(%d) to VIP list.",user,PlayerName(endid),endid);
        SendClientMessageToAll(COLOR_ADMIN,strmessage);

        SendClientMessage(endid,COLOR_ADMIN,"You have been added to VIP list");
        VIP[endid] = 1337; ( Change this to your levels 1,2 or 3 )

        format(strmessage,sizeof(strmessage),"9[VIP] Admin %s has added %s(%d) to VIP list.",user,PlayerName(endid),endid);
        IRC_GroupSay(gGroupID,IRC_CHANNEL,strmessage);
    }
    return 1;
}
I use this for my server, Try to use this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)