IRC connection
#1

This is my irc script, how to make the bot automatically set its mode to SOP


pawn Код:
#include <a_samp>
#include <irc>
#include <sscanf2>
#include <dutils>
#include <dudb>
#include <dini>
#pragma unused ret_memcpy

#define BOT_1_MAIN_NICKNAME "Bot1"
#define BOT_1_ALTERNATE_NICKNAME "bot1"
#define BOT_1_REALNAME "Bot00"
#define BOT_1_USERNAME "Bot"

#define BOT_2_MAIN_NICKNAME "Bot2"
#define BOT_2_ALTERNATE_NICKNAME "bot2"
#define BOT_2_REALNAME "Bot01"
#define BOT_2_USERNAME "Bot"

#define BOT_3_MAIN_NICKNAME "Bot3"
#define BOT_3_ALTERNATE_NICKNAME "bot3"
#define BOT_3_REALNAME "Bot02"
#define BOT_3_USERNAME "Bot"

#define BOT_4_MAIN_NICKNAME "Bot4"
#define BOT_4_ALTERNATE_NICKNAME "bot4"
#define BOT_4_REALNAME "Bot03"
#define BOT_4_USERNAME "Bot"

#define IRC_SERVER "exnet.nl.irc.tl"
#define IRC_PORT (6667)
#define IRC_CHANNEL "#mychannel'sname"

// Maximum number of bots in the filterscript
#define MAX_BOTS (4)

#define PLUGIN_VERSION "1.4.5"

new botIDs[MAX_BOTS], groupID;

/*
    When the filterscript is loaded, two bots will connect and a group will be
    created for them.
*/


public OnFilterScriptInit()
{
    botIDs[0] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_1_MAIN_NICKNAME, BOT_1_REALNAME, BOT_1_USERNAME);
    IRC_SetIntData(botIDs[0], E_IRC_CONNECT_DELAY, 1);
   
    botIDs[1] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_2_MAIN_NICKNAME, BOT_2_REALNAME, BOT_2_USERNAME);
    IRC_SetIntData(botIDs[1], E_IRC_CONNECT_DELAY, 1);
   
    botIDs[2] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_3_MAIN_NICKNAME, BOT_3_REALNAME, BOT_3_USERNAME);
    IRC_SetIntData(botIDs[2], E_IRC_CONNECT_DELAY, 1);
   
    botIDs[3] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_4_MAIN_NICKNAME, BOT_4_REALNAME, BOT_4_USERNAME);
    IRC_SetIntData(botIDs[3], E_IRC_CONNECT_DELAY, 1);
   
    groupID = IRC_CreateGroup();
    return 1;
}



/*
    When the filterscript is unloaded, the bots will disconnect, and the group
    will be destroyed.
*/


public OnFilterScriptExit()
{

    IRC_Quit(botIDs[0], "DEAD XD");
    // Disconnect the second bot
    IRC_Quit(botIDs[1], "DEAD XD");
    IRC_Quit(botIDs[2], "DEAD XD");
    IRC_Quit(botIDs[3], "DEAD XD");
    // Destroy the group
    IRC_DestroyGroup(groupID);
    return 1;
}

/*
    The standard SA-MP callbacks are below. We will echo a few of them to the
    IRC channel.
*/


public OnPlayerConnect(playerid)
{
    new joinMsg[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(joinMsg, sizeof(joinMsg), "0,4 >> Server: 0,4 %s(%d) has joined the server.", name, playerid);
    IRC_GroupSay(groupID, IRC_CHANNEL, joinMsg);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    new leaveMsg[128], name[MAX_PLAYER_NAME], reasonMsg[8];
    switch(reason)
    {
        case 0: reasonMsg = "Timeout";
        case 1: reasonMsg = "Leaving";
        case 2: reasonMsg = "Kicked";
    }
    GetPlayerName(playerid, name, sizeof(name));
    format(leaveMsg, sizeof(leaveMsg), "0,4 >> Server: 0,4 %s(%d) has left the server. (%s)", name, playerid, reasonMsg);
    IRC_GroupSay(groupID, IRC_CHANNEL, leaveMsg);
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    new msg[128], killerName[MAX_PLAYER_NAME], reasonMsg[32], playerName[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killerName, sizeof(killerName));
    GetPlayerName(playerid, playerName, sizeof(playerName));
    if (killerid != INVALID_PLAYER_ID)
    {
        switch (reason)
        {
            case 0: reasonMsg = "Unarmed";
            case 1: reasonMsg = "Brass Knuckles";
            case 2: reasonMsg = "Golf Club";
            case 3: reasonMsg = "Night Stick";
            case 4: reasonMsg = "Knife";
            case 5: reasonMsg = "Baseball Bat";
            case 6: reasonMsg = "Shovel";
            case 7: reasonMsg = "Pool Cue";
            case 8: reasonMsg = "Katana";
            case 9: reasonMsg = "Chainsaw";
            case 10: reasonMsg = "Dildo";
            case 11: reasonMsg = "Dildo";
            case 12: reasonMsg = "Vibrator";
            case 13: reasonMsg = "Vibrator";
            case 14: reasonMsg = "Flowers";
            case 15: reasonMsg = "Cane";
            case 22: reasonMsg = "Pistol";
            case 23: reasonMsg = "Silenced Pistol";
            case 24: reasonMsg = "Desert Eagle";
            case 25: reasonMsg = "Shotgun";
            case 26: reasonMsg = "Sawn-off Shotgun";
            case 27: reasonMsg = "Combat Shotgun";
            case 28: reasonMsg = "MAC-10";
            case 29: reasonMsg = "MP5";
            case 30: reasonMsg = "AK-47";
            case 31: reasonMsg = "M4";
            case 32: reasonMsg = "TEC-9";
            case 33: reasonMsg = "Country Rifle";
            case 34: reasonMsg = "Sniper Rifle";
            case 37: reasonMsg = "Fire";
            case 38: reasonMsg = "Minigun";
            case 41: reasonMsg = "Spray Can";
            case 42: reasonMsg = "Fire Extinguisher";
            case 49: reasonMsg = "Vehicle Collision";
            case 50: reasonMsg = "Vehicle Collision";
            case 51: reasonMsg = "Explosion";
            default: reasonMsg = "Unknown";
        }
        format(msg, sizeof(msg), "7,0 >> Server: %s killed %s. (%s)", killerName, playerName, reasonMsg);
    }
    else
    {
        switch (reason)
        {
            case 53: format(msg, sizeof(msg), "7,0 %s died. (Drowned)", playerName);
            case 54: format(msg, sizeof(msg), "7,0 %s died. (Collision)", playerName);
            default: format(msg, sizeof(msg), "7,0 %s died.", playerName);
        }
    }
    IRC_GroupSay(groupID, IRC_CHANNEL, msg);
    return 1;
}

public OnPlayerText(playerid, text[])
{
    new name[MAX_PLAYER_NAME], ircMsg[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(ircMsg, sizeof(ircMsg), "01 %s: (%d) %s", name, playerid, text);
    IRC_GroupSay(groupID, IRC_CHANNEL, ircMsg);
    return 1;
}

/*
    The IRC callbacks are below. Many of these are simply derived from parsed
    raw messages received from the IRC server. They can be used to inform the
    bot of new activity in any of the channels it has joined.
*/


/*
    This callback is executed whenever a bot successfully connects to an IRC
    server.
*/

public IRC_OnConnect(botid, ip[], port)
{
    printf("IRC_OnConnect: Bot ID %d connected to %s:%d", botid, ip, port);
    // Join the channel
    IRC_JoinChannel(botid, IRC_CHANNEL);
    // Add the bot to the group
    IRC_AddToGroup(groupID, botid);
    return 1;
}

/*
    This callback is executed whenever a current connection is closed. The
    plugin may automatically attempt to reconnect per user settings. IRC_Quit
    may be called at any time to stop the reconnection process.
*/


public IRC_OnDisconnect(botid, ip[], port, reason[])
{
    printf("IRC_OnDisconnect: Bot ID %d disconnected from %s:%d (%s)", botid, ip, port, reason);
    // Remove the bot from the group
    IRC_RemoveFromGroup(groupID, botid);
    return 1;
}

/*
    This callback is executed whenever a connection attempt begins. IRC_Quit may
    be called at any time to stop the reconnection process.
*/


public IRC_OnConnectAttempt(botid, ip[], port)
{
    printf("IRC_OnConnectAttempt: Bot ID %d attempting to connect to %s:%d...", botid, ip, port);
    return 1;
}

/*
    This callback is executed whenever a connection attempt fails. IRC_Quit may
    be called at any time to stop the reconnection process.
*/


public IRC_OnConnectAttemptFail(botid, ip[], port, reason[])
{
    printf(" IRC_OnConnectAttemptFail: Bot ID %d failed to connect to %s:%d (%s)", botid, ip, port, reason);
    return 1;
}

/*
    This callback is executed whenever a bot joins a channel.
*/


public IRC_OnJoinChannel(botid, channel[])
{
    printf("IRC_OnJoinChannel: Bot ID %d joined channel %s", botid, channel);
    return 1;
}

/*
    This callback is executed whenevever a bot leaves a channel.
*/


public IRC_OnLeaveChannel(botid, channel[], message[])
{
    printf("IRC_OnLeaveChannel: Bot ID %d left channel %s (%s)", botid, channel, message);
    return 1;
}

/*
    This callback is executed whenevever a bot is invited to a channel.
*/


public IRC_OnInvitedToChannel(botid, channel[], invitinguser[], invitinghost[])
{
    printf("IRC_OnInvitedToChannel: Bot ID %d invited to channel %s by %s (%s)", botid, channel, invitinguser, invitinghost);
    IRC_JoinChannel(botid, channel);
    return 1;
}

/*
    This callback is executed whenevever a bot is kicked from a channel. If the
    bot cannot immediately rejoin the channel (in the event, for example, that
    the bot is kicked and then banned), you might want to set up a timer here
    for rejoin attempts.
*/


public IRC_OnKickedFromChannel(botid, channel[], oppeduser[], oppedhost[], message[])
{
    printf("IRC_OnKickedFromChannel: Bot ID %d kicked by %s (%s) from channel %s (%s)", botid, oppeduser, oppedhost, channel, message);
    IRC_JoinChannel(botid, channel);
    return 1;
}

public IRC_OnUserDisconnect(botid, user[], host[], message[])
{
    printf("IRC_OnUserDisconnect (Bot ID %d): User %s (%s) disconnected (%s)", botid, user, host, message);
    return 1;
}

public IRC_OnUserJoinChannel(botid, channel[], user[], host[])
{
    printf("IRC_OnUserJoinChannel (Bot ID %d): User %s (%s) joined channel %s", botid, user, host, channel);
    return 1;
}

public IRC_OnUserLeaveChannel(botid, channel[], user[], host[], message[])
{
    printf(" IRC_OnUserLeaveChannel (Bot ID %d): User %s (%s) left channel %s (%s)", botid, user, host, channel, message);
    return 1;
}

public IRC_OnUserKickedFromChannel(botid, channel[], kickeduser[], oppeduser[], oppedhost[], message[])
{
    printf(" IRC_OnUserKickedFromChannel (Bot ID %d): User %s kicked by %s (%s) from channel %s (%s)", botid, kickeduser, oppeduser, oppedhost, channel, message);
}

public IRC_OnUserNickChange(botid, oldnick[], newnick[], host[])
{
    printf(" IRC_OnUserNickChange (Bot ID %d): User %s (%s) changed his/her nick to %s", botid, oldnick, host, newnick);
    return 1;
}

public IRC_OnUserSetChannelMode(botid, channel[], user[], host[], mode[])
{
    printf(" IRC_OnUserSetChannelMode (Bot ID %d): User %s (%s) on %s set mode: %s", botid, user, host, channel, mode);
    return 1;
}

public IRC_OnUserSetChannelTopic(botid, channel[], user[], host[], topic[])
{
    printf(" IRC_OnUserSetChannelTopic (Bot ID %d): User %s (%s) on %s set topic: %s", botid, user, host, channel, topic);
    return 1;
}

public IRC_OnUserSay(botid, recipient[], user[], host[], message[])
{
    printf(" IRC_OnUserSay (Bot ID %d): User %s (%s) sent message to %s: %s", botid, user, host, recipient, message);
    // Someone sent the bot a private message
    if (!strcmp(recipient, BOT_1_MAIN_NICKNAME) || !strcmp(recipient, BOT_2_MAIN_NICKNAME))
    {
        IRC_Say(botid, user, "You sent me a PM!");
    }
    return 1;
}

public IRC_OnUserNotice(botid, recipient[], user[], host[], message[])
{
    printf(" IRC_OnUserNotice (Bot ID %d): User %s (%s) sent notice to %s: %s", botid, user, host, recipient, message);
    // Someone sent the bot a notice (probably a network service)
    if (!strcmp(recipient, BOT_1_MAIN_NICKNAME) || !strcmp(recipient, BOT_2_MAIN_NICKNAME))
    {
        IRC_Notice(botid, user, "You sent me a notice!");
    }
    return 1;
}

public IRC_OnUserRequestCTCP(botid, user[], host[], message[])
{
    printf(" IRC_OnUserRequestCTCP (Bot ID %d): User %s (%s) sent CTCP request: %s", botid, user, host, message);
    // Someone sent a CTCP VERSION request
    if (!strcmp(message, "VERSION"))
    {
        IRC_ReplyCTCP(botid, user, "VERSION SA-MP IRC Plugin v" #PLUGIN_VERSION "");
    }
    return 1;
}

public IRC_OnUserReplyCTCP(botid, user[], host[], message[])
{
    printf(" IRC_OnUserReplyCTCP (Bot ID %d): User %s (%s) sent CTCP reply: %s", botid, user, host, message);
    return 1;
}

public IRC_OnReceiveNumeric(botid, numeric, message[])
{
    // Check if the numeric is an error defined by RFC 1459/2812
    if (numeric >= 400 && numeric <= 599)
    {
        const ERR_NICKNAMEINUSE = 433;
        if (numeric == ERR_NICKNAMEINUSE)
        {
            // Check if the nickname is already in use
            if (botid == botIDs[0])
            {
                IRC_ChangeNick(botid, BOT_1_ALTERNATE_NICKNAME);
            }
            else if (botid == botIDs[1])
            {
                IRC_ChangeNick(botid, BOT_2_ALTERNATE_NICKNAME);
            }
        }
        printf(" IRC_OnReceiveNumeric (Bot ID %d): %d (%s)", botid, numeric, message);
    }
    return 1;
}

/*
    This callback is useful for logging, debugging, or catching error messages
    sent by the IRC server.
*/


public IRC_OnReceiveRaw(botid, message[])
{
    new File:file;
    if (!fexist("irc_log.txt"))
    {
        file = fopen("irc_log.txt", io_write);
    }
    else
    {
        file = fopen("irc_log.txt", io_append);
    }
    if (file)
    {
        fwrite(file, message);
        fwrite(file, "\r\n");
        fclose(file);
    }
    return 1;
}

/*
    Some examples of channel commands are here. You can add more very easily;
    their implementation is identical to that of ZeeX's zcmd.
*/


IRCCMD:m(botid, channel[], user[], host[], params[])
{
    // Check if the user has at least voice in the channel
    if (IRC_IsVoice(botid, channel, user))
    {
        // Check if the user entered any text
        if (!isnull(params))
        {
            new msg[128];
            // Echo the formatted message
            format(msg, sizeof(msg), "03 >> IRC: %s:  %s", user, params);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), ">> IRC: %s: %s", user, params);
            SendClientMessageToAll(0x37902dFF, msg);
        }
    }
    return 1;
}

IRCCMD:o(botid, channel[], user[], host[], params[])
{
        // Check if the user has at least voice in the channel
        if (IRC_IsOwner(botid, channel, user))
        {
                // Check if the user entered any text
                if (!isnull(params))
                {
                        new msg[128];
                        // Echo the formatted message
                        format(msg, sizeof(msg), "03 >> IRC: Owner %s:  %s", user, params);
                        IRC_GroupSay(groupID, channel, msg);
                        format(msg, sizeof(msg), ">> IRC: Owner %s: %s", user, params);
                        SendClientMessageToAll(0x37902dFF, msg);
                }
        }
        return 1;
}

IRCCMD:oi(botid, channel[], user[], host[], params[])
{
        // Check if the user has at least voice in the channel
        if (IRC_IsOwner(botid, channel, user))
        {
                // Check if the user entered any text
                if (!isnull(params))
                {
                        new msg[128];
                        // Echo the formatted message
                        format(msg, sizeof(msg), "03 >> IRC: Owner:  %s", params);
                        IRC_GroupSay(groupID, channel, msg);
                        format(msg, sizeof(msg), ">> IRC: Owner: %s", params);
                        SendClientMessageToAll(0x37902dFF, msg);
                }
        }
        return 1;
}

IRCCMD:a(botid, channel[], user[], host[], params[])
{
        // Check if the user has at least voice in the channel
        if (IRC_IsAdmin(botid, channel, user))
        {
                // Check if the user entered any text
                if (!isnull(params))
                {
                        new msg[128];
                        // Echo the formatted message
                        format(msg, sizeof(msg), "03 >> IRC: Administrator %s:  %s", user, params);
                        IRC_GroupSay(groupID, channel, msg);
                        format(msg, sizeof(msg), ">> IRC: Administrator %s: %s", user, params);
                        SendClientMessageToAll(0x37902dFF, msg);
                }
        }
        return 1;
}

IRCCMD:ai(botid, channel[], user[], host[], params[])
{
        // Check if the user has at least voice in the channel
        if (IRC_IsAdmin(botid, channel, user))
        {
                // Check if the user entered any text
                if (!isnull(params))
                {
                        new msg[128];
                        // Echo the formatted message
                        format(msg, sizeof(msg), "03 >> IRC: Administrator:  %s", params);
                        IRC_GroupSay(groupID, channel, msg);
                        format(msg, sizeof(msg), ">> IRC: Administrator: %s", params);
                        SendClientMessageToAll(0x37902dFF, msg);
                }
        }
        return 1;
}

IRCCMD:h(botid, channel[], user[], host[], params[])
{
        // Check if the user has at least voice in the channel
        if (IRC_IsHalfop(botid, channel, user))
        {
                // Check if the user entered any text
                if (!isnull(params))
                {
                        new msg[128];
                        // Echo the formatted message
                        format(msg, sizeof(msg), "03 >> IRC: Moderator %s:  %s", user, params);
                        IRC_GroupSay(groupID, channel, msg);
                        format(msg, sizeof(msg), ">> IRC: Moderator %s: %s", user, params);
                        SendClientMessageToAll(0x37902dFF, msg);
                }
        }
        return 1;
}

IRCCMD:hi(botid, channel[], user[], host[], params[])
{
        // Check if the user has at least voice in the channel
        if (IRC_IsHalfop(botid, channel, user))
        {
                // Check if the user entered any text
                if (!isnull(params))
                {
                        new msg[128];
                        // Echo the formatted message
                        format(msg, sizeof(msg), "03 >> IRC: Moderator:  %s", params);
                        IRC_GroupSay(groupID, channel, msg);
                        format(msg, sizeof(msg), ">> IRC: Moderator: %s", params);
                        SendClientMessageToAll(0x37902dFF, msg);
                }
        }
        return 1;
}

IRCCMD:p(botid, channel[], user[], host[], params[])
{
        // Check if the user has at least voice in the channel
        if (IRC_IsOp(botid, channel, user))
        {
                // Check if the user entered any text
                if (!isnull(params))
                {
                        new msg[128];
                        // Echo the formatted message
                        format(msg, sizeof(msg), "03 >> IRC: Operator %s:  %s", user, params);
                        IRC_GroupSay(groupID, channel, msg);
                        format(msg, sizeof(msg), ">> IRC: Operator %s: %s", user, params);
                        SendClientMessageToAll(0x37902dFF, msg);
                }
        }
        return 1;
}

IRCCMD:pi(botid, channel[], user[], host[], params[])
{
        // Check if the user has at least voice in the channel
        if (IRC_IsOp(botid, channel, user))
        {
                // Check if the user entered any text
                if (!isnull(params))
                {
                        new msg[128];
                        // Echo the formatted message
                        format(msg, sizeof(msg), "03 >> IRC: Operator:  %s", params);
                        IRC_GroupSay(groupID, channel, msg);
                        format(msg, sizeof(msg), ">> IRC: Operator: %s", params);
                        SendClientMessageToAll(0x37902dFF, msg);
                }
        }
        return 1;
}

IRCCMD:kick(botid, channel[], user[], host[], params[])
{
    // Check if the user is at least a halfop in the channel
    if (IRC_IsHalfop(botid, channel, user))
    {
        new playerid, reason[64];
        // Check if the user at least entered a player ID
        if (sscanf(params, "dS(No reason)[64]", playerid, reason))
        {
            return 1;
        }
        // Check if the player is connected
        if (IsPlayerConnected(playerid))
        {
            // Echo the formatted message
            new msg[128], name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            format(msg, sizeof(msg), "0,4 >> Admin: %s (IRC), has kicked %s . (%s)", user, name, reason);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), ">> Admin: %s (IRC), has kicked %s . (%s)", user, name, reason);
            SendClientMessageToAll(0xFF0000FFFF, msg);
            // Kick the player
            Kick(playerid);
        }
    }
    return 1;
}

IRCCMD:ban(botid, channel[], user[], host[], params[])
{
    // Check if the user is at least an op in the channel
    if (IRC_IsOp(botid, channel, user))
    {
        new playerid, reason[64];
        // Check if the user at least entered a player ID
        if (sscanf(params, "dS(No reason)[64]", playerid, reason))
        {
            return 1;
        }
        // Check if the player is connected
        if (IsPlayerConnected(playerid))
        {
            // Echo the formatted message
            new msg[128], name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            format(msg, sizeof(msg),"0,4 >> Admin: %s (IRC), has banned %s. (%s)", user, name, reason);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), ">> Admin: %s (IRC), has banned %s . (%s)", user, name, reason);
            SendClientMessageToAll(0xFF0000FF, msg);
            // Ban the player
            BanEx(playerid, reason);
        }
    }
    return 1;
}

IRCCMD:rcon(botid, channel[], user[], host[], params[])
{
    // Check if the user is at least an op in the channel
    if (IRC_IsAdmin(botid, channel, user))
    {
        // Check if the user entered any text
        if (!isnull(params))
        {
            // Check if the user did not enter any invalid commands
            if (strcmp(params, "exit", true) != 0 && strfind(params, "loadfs irc", true) == -1)
            {
                // Echo the formatted message
                new msg[128];
                format(msg, sizeof(msg), "RCON command %s has been executed by the orders of %s .", params, user);
                IRC_GroupSay(groupID, channel, msg);
                // Send the command
                SendRconCommand(params);
            }
        }
    }
    return 1;
}

IRCCMD:fu(botid, channel[], user[], host[], params[])
{
        new playerid, reason[64];
        //Playerid
        if (sscanf(params, "dS(No reason.)[64]", playerid, reason))
        {
                return 1;
        }

        if(IRC_IsAdmin(botid, channel, user))
        {

                if(IsPlayerConnected(playerid))
                {
                        new msg[128], pname[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, pname, sizeof(pname));
                        format(msg, sizeof(msg), "0,4 >> IRC CMD: %s has fucked up %s. (Reason: %s)", user, pname, reason);
                        IRC_GroupSay(groupID, channel, msg);
                        format(msg, sizeof(msg), ">> Admin: %s has fucked up %s. (Reason: %s, -$10000)", user, pname, reason);
                        SendClientMessageToAll(0xFF0000FF, msg);
                        SetPlayerDrunkLevel(playerid, 50000);
                        SetPlayerColor(playerid, 0xFF00FFC8);
                        SetPlayerHealth(playerid, 0.2);
                        ResetPlayerWeapons(playerid);
                        GivePlayerMoney(playerid, -10000);
                        SetPlayerSkin(playerid, 213);
                }
        }
        return 1;
}

IRCCMD:players( botid, channel[], user[], host[], params[] )
{
    new tempstr[128], string[200], count, name[24];
    for( new i ,slots = GetMaxPlayers(); i < slots; i++ )
    {
        if(IsPlayerConnected(i))
        {
            count++;
            GetPlayerName(i, name, sizeof(name));
            format(tempstr, sizeof(tempstr), "%s , %s", tempstr, name);
        }
    }
    if(count)
    {
        format(string, sizeof(string), ">> Players Online: [%d/%d]:- %s", count, GetMaxPlayers(), tempstr);
        IRC_Say(botid, channel, string);
    }
    else
    {
        IRC_Say(botid, channel, "No players online.");
    }
    return 1;
}

IRCCMD:cmds(botid, channel[], user[], host[], params[])
{
    if (IRC_IsVoice(botid, channel, user))
    {
        new string[71];
        new string2[71];
        new string3[71];
        new string4[71];
        new string5[71];
        new string6[71];

        format(string, sizeof(string), "IRC COMMANDS: Non Admins");
        format(string2, sizeof(string2), "!players ---- To know the number of player online.");
        format(string3, sizeof(string3), "!m       ---- To send a message to the server.");
        format(string4, sizeof(string4), "!getname ---- To get the name of a specific id.");
        format(string5, sizeof(string5), "!forums  ---- To visit the forum.");
        format(string6, sizeof(string6), "!pm      ---- To send a private message to a specific player.");

        IRC_Say(botid, user, string);
        IRC_Say(botid, user, string2);
        IRC_Say(botid, user, string3);
        IRC_Say(botid, user, string4);
        IRC_Say(botid, user, string5);
        IRC_Say(botid, user, string6);
    }
    if (!IRC_IsVoice(botid, channel, user))
    {
        new string[50];
        format(string, sizeof(string), "04>> Error: 01You are not authorized to do that!");
        IRC_Say(botid, channel, string);
        return 0;
    }
    return 1;
}

IRCCMD:hcmds(botid, channel[], user[], host[], params[])
{
    if (IRC_IsHalfop(botid, channel, user))
    {
        new string[65];
        new string2[65];
        new string3[65];
        new string4[65];
        new string5[65];
        new string6[65];
        new string7[65];

        format(string, sizeof(string), "IRC COMMANDS: Admins Level 1");
        format(string2, sizeof(string2), "!h       ---- To talk as a moderator.");
        format(string3, sizeof(string3), "!hi      ---- To talk as a strange moderator.");
        format(string4, sizeof(string4), "!kick  ---- To kick a player.");
        format(string5, sizeof(string5), "!warn  ---- To warn a player.");
        format(string6, sizeof(string6), "!explode  ---- To explode a player.");
        format(string7, sizeof(string7), "!getinfo  ---- To get more information about a player.");


        IRC_Say(botid, user, string);
        IRC_Say(botid, user, string2);
        IRC_Say(botid, user, string3);
        IRC_Say(botid, user, string4);
        IRC_Say(botid, user, string5);
        IRC_Say(botid, user, string6);
        IRC_Say(botid, user, string7);
    }
    if (!IRC_IsHalfop(botid, channel, user))
    {
        new string[50];
        format(string, sizeof(string), "04>> Error: 01You are not authorized to do that!");
        IRC_Say(botid, channel, string);
        return 0;
    }
    return 1;
}

IRCCMD:pcmds(botid, channel[], user[], host[], params[])
{
    if (IRC_IsOp(botid, channel, user))
    {
        new string[43];
        new string2[43];
        new string3[43];
        new string4[43];
        new string5[43];
        new string6[43];
        new string7[43];


        format(string, sizeof(string), "IRC COMMANDS: Admins Level 2 & 3");
        format(string2, sizeof(string2), "!p       ---- To talk as an operator.");
        format(string3, sizeof(string3), "!pi      ---- To talk as a strange operator.");
        format(string4, sizeof(string4), "!ban   ---- To ban a player.");
        format(string5, sizeof(string5), "!slap    ---- To slap a player.");
        format(string6, sizeof(string6), "!freeze   ---- To freeze a player.");
        format(string7, sizeof(string7), "!unfreeze   ---- To unfreeze a player.");

        IRC_Say(botid, user, string);
        IRC_Say(botid, user, string2);
        IRC_Say(botid, user, string3);
        IRC_Say(botid, user, string4);
        IRC_Say(botid, user, string5);
        IRC_Say(botid, user, string6);
        IRC_Say(botid, user, string7);
    }
    if (!IRC_IsOp(botid, channel, user))
    {
        new string[50];
        format(string, sizeof(string), "04>> Error: 01You are not authorized to do that!");
        IRC_Say(botid, channel, string);
        return 0;
    }
    return 1;
}

IRCCMD:acmds(botid, channel[], user[], host[], params[])
{
    if (IRC_IsAdmin(botid, channel, user))
    {
        new string[50];
        new string2[50];
        new string3[50];
        new string4[50];
        new string5[50];
        new string6[50];
        new string7[50];
        new string8[50];
        new string9[50];
        new string10[50];
        new string11[50];
        new string12[50];
        new string13[50];
        new string14[50];
        new string15[50];

        format(string, sizeof(string), "IRC COMMANDS: Admins Level 4");
        format(string2, sizeof(string2), "!a     ---- To talk as an administrator.");
        format(string3, sizeof(string3), "!ai    ---- To talk as a strange administrator.");
        format(string4, sizeof(string4), "!RCON  ---- To execute a RCON command.");
        format(string5, sizeof(string5), "!fu    ---- To fuckup a player.");
        format(string6, sizeof(string6), "!disarm    ---- To disarm a player weapons.");
        format(string7, sizeof(string7), "!resetcash    ---- To reset the cash of a player.");
        format(string8, sizeof(string8), "!giveallcash    ---- To give cash to all players.");
        format(string9, sizeof(string9), "!spawn    ---- To (re)spawn a player.");
        format(string10, sizeof(string10), "!fuck    ---- To fuck anally fuck a player.");
        format(string11, sizeof(string11), "!givecar    ---- To give a car to a player.");
        format(string12, sizeof(string12), "!rvehicles    ---- To respawn all vehicles.");
        format(string13, sizeof(string13), "!estuntb ---- To enable stunt bonus for all.");
        format(string14, sizeof(string14), "!dstuntb ---- To disable stunt bonus for all.");
        format(string15, sizeof(string15), "!deathdrop ---- To allow money drop on death.");

        IRC_Say(botid, user, string);
        IRC_Say(botid, user, string2);
        IRC_Say(botid, user, string3);
        IRC_Say(botid, user, string4);
        IRC_Say(botid, user, string5);
        IRC_Say(botid, user, string6);
        IRC_Say(botid, user, string7);
        IRC_Say(botid, user, string8);
        IRC_Say(botid, user, string9);
        IRC_Say(botid, user, string10);
        IRC_Say(botid, user, string11);
        IRC_Say(botid, user, string12);
        IRC_Say(botid, user, string13);
        IRC_Say(botid, user, string14);
        IRC_Say(botid, user, string15);
    }
    if (!IRC_IsAdmin(botid, channel, user))
    {
        new string[50];
        format(string, sizeof(string), "04>> Error: 01You are not authorized to do that!");
        IRC_Say(botid, channel, string);
        return 0;
    }
    return 1;
}

IRCCMD:ocmds(botid, channel[], user[], host[], params[])
{
    if (IRC_IsOwner(botid, channel, user))
    {
        new string[50];
        new string2[50];
        new string3[50];
        new string4[50];
        new string5[50];

        format(string, sizeof(string), "IRC COMMANDS: Admins Level 5");
        format(string2, sizeof(string2), "!allowweaps    ---- To allow weapons in game.");
        format(string3, sizeof(string3), "!nametagson    ---- To switchon nametags.");
        format(string4, sizeof(string4), "!nametagsoff   ---- To switchoff nametags.");
        format(string5, sizeof(string5), "!disallowweaps ---- To disallow weapons in game.");

        IRC_Say(botid, user, string);
        IRC_Say(botid, user, string2);
        IRC_Say(botid, user, string3);
        IRC_Say(botid, user, string4);
        IRC_Say(botid, user, string5);
    }
    if (!IRC_IsOwner(botid, channel, user))
    {
        new string[50];
        format(string, sizeof(string), "04>> Error: 01You are not authorized to do that!");
        IRC_Say(botid, channel, string);
        return 0;
    }
    return 1;
}

IRCCMD:slap(botid, channel[], user[], host[], params[])
{
    new playerid, reason[64];
    new player1;
    //Playerid
    if (sscanf(params, "dS(No reason.)[64]", playerid, reason))
    {
        return 1;
    }
    if (IRC_IsOp(botid, channel, user))
    {
        if(IsPlayerConnected(playerid))
        {
            new msg[128], pname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname, sizeof(pname));
            format(msg, sizeof(msg),"0,4 >> Admin: %s (IRC), has slapped %s. (%s)", user, pname, reason);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), ">> Admin: %s (IRC), has slapped %s . (%s)", user, pname, reason);
            SendClientMessageToAll(0xFF0000FF, msg);
            new Float:Health;
            new Float:x, Float:y, Float:z;
            GetPlayerHealth(player1,Health);
            SetPlayerHealth(player1,Health-25);
            GetPlayerPos(player1,x,y,z);
            SetPlayerPos(player1,x,y,z+10);
            PlayerPlaySound(playerid,1190,0.0,0.0,0.0);
            PlayerPlaySound(player1,1190,0.0,0.0,0.0);
        }
    }
    return 1;
}

IRCCMD:warn(botid, channel[], user[], host[], params[])
{
    new playerid, reason[64];
    if (sscanf(params, "dS(No reason.)[64]", playerid, reason))
    {
        return 1;
    }
    if (IRC_IsHalfop(botid, channel, user))
    {
        if(IsPlayerConnected(playerid))
        {
            new msg[128], pname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname, sizeof(pname));
            format(msg, sizeof(msg),"0,4 >> Admin: %s (IRC), has warned %s. (%s)", user, pname, reason);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), ">> Admin: %s (IRC), has warned %s . (%s)", user, pname, reason);
            SendClientMessageToAll(0xFF0000FF, msg);
        }
    }
    return 1;
}

IRCCMD:freeze(botid, channel[], user[], host[], params[])
{
    new playerid, reason[64];
    if (sscanf(params, "dS(No reason.)[64]", playerid, reason))
    {
        return 1;
    }
    if (IRC_IsOp(botid, channel, user))
    {
        if(IsPlayerConnected(playerid))
        {
            new msg[128], pname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname, sizeof(pname));
            format(msg, sizeof(msg),"0,4 >> Admin: %s (IRC), has frozen %s. (%s)", user, pname, reason);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), ">> Admin: %s (IRC), has frozen %s . (%s)", user, pname, reason);
            SendClientMessageToAll(0xFF0000FF, msg);
            TogglePlayerControllable(playerid, 0);

        }
    }
    return 1;
}

IRCCMD:unfreeze(botid, channel[], user[], host[], params[])
{
    new playerid, reason[64];
    if (sscanf(params, "dS(No reason.)[64]", playerid, reason))
    {
        return 1;
    }
    if (IRC_IsOp(botid, channel, user))
    {
        if(IsPlayerConnected(playerid))
        {
            new msg[128], pname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname, sizeof(pname));
            format(msg, sizeof(msg),"0,4 >> Admin: %s (IRC), has unfrozen %s. (%s)", user, pname, reason);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), ">> Admin: %s (IRC), has unfrozen %s . (%s)", user, pname, reason);
            SendClientMessageToAll(0xFF0000FF, msg);
            TogglePlayerControllable(playerid, 1);
        }
    }
    return 1;
}

IRCCMD:explode(botid, channel[], user[], host[], params[])
{
    new playerid, reason[64];
    new player1;
    if (sscanf(params, "dS(No reason.)[64]", playerid, reason))
    {
        return 1;
    }
    if (IRC_IsHalfop(botid, channel, user))
    {
        if(IsPlayerConnected(playerid))
        {
            new msg[128], pname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname, sizeof(pname));
            format(msg, sizeof(msg),"0,4 >> Admin: %s (IRC), has exploded %s. (%s)", user, pname, reason);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), ">> Admin: %s (IRC), has exploded %s . (%s)", user, pname, reason);
            SendClientMessageToAll(0xFF0000FF, msg);
            new Float:x, Float:y, Float:z;
            GetPlayerPos(player1,x,y,z);
            CreateExplosion(x, y, z, 0, 10.0);
        }
    }
    return 1;
}

IRCCMD:disarm(botid, channel[], user[], host[], params[])
{
    new playerid, reason[64];
    if (sscanf(params, "dS(No reason.)[64]", playerid, reason))
    {
        return 1;
    }
    if (IRC_IsAdmin(botid, channel, user))
    {
        if(IsPlayerConnected(playerid))
        {
            new msg[128], pname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname, sizeof(pname));
            format(msg, sizeof(msg),"0,4 >> Admin: %s (IRC), has disarmed %s. (%s)", user, pname, reason);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), ">> Admin: %s (IRC), has disarmed %s . (%s)", user, pname, reason);
            SendClientMessageToAll(0xFF0000FF, msg);
            ResetPlayerWeapons(playerid);
        }
    }
    return 1;
}

IRCCMD:resetcash(botid, channel[], user[], host[], params[])
{
    new playerid, reason[64];
    if (sscanf(params, "dS(No reason.)[64]", playerid, reason))
    {
        return 1;
    }
    if (IRC_IsAdmin(botid, channel, user))
    {
        if(IsPlayerConnected(playerid))
        {
            new msg[128], pname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname, sizeof(pname));
            format(msg, sizeof(msg),"0,4 >> Admin: %s (IRC), has removed the cash of %s. (%s)", user, pname, reason);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), ">> Admin: %s (IRC), has removed the cash of %s . (%s)", user, pname, reason);
            SendClientMessageToAll(0xFF0000FF, msg);
            ResetPlayerMoney(playerid);
        }
    }
    return 1;
}

IRCCMD:giveallcash(botid, channel[], user[], host[], params[])
{
    new value;
    new msg1[128];
    new msg2[128];

    if(sscanf(params, "d", value) != 0)
    {
        return 1;
    }
    if (IRC_IsAdmin(botid, channel, user))
    {
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                GivePlayerMoney(i, value);
                format(msg1, sizeof(msg1), "0,4 >> Admin on euphoria: %s has given cash to all players", user);
                IRC_GroupSay(groupID, channel, msg1);
                format(msg2, sizeof(msg2), ">> Admin on euphoria: %s has given cash to all players", user);
                SendClientMessageToAll(0xFF0000FF, msg2);
            }
        }
    }
    return 1;
}

IRCCMD:getname(botid, channel[], user[], host[], params[])
{
    new playerid;
    if (sscanf(params, "d", playerid))
    {
        return 1;
    }
    if(IsPlayerConnected(playerid))
    {
        new msg[128], pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, sizeof(pname));
        format(msg, sizeof(msg), "01ID (%d) => %s", playerid, pname, user);
        IRC_GroupSay(groupID, channel, msg);
    }
    return 1;
}

//Original getname cmd
// IRCCMD:getname(botid, channel[], user[], host[], params[])
//{
//        new playerid;
//       if (sscanf(params, "d", playerid))
//        {
//                return 1;
//        }
//        if(IsPlayerConnected(playerid))
//        {
//                new msg[128], pname[MAX_PLAYER_NAME];
//                GetPlayerName(playerid, pname, sizeof(pname));
//                format(msg, sizeof(msg), "*** The player's name is %s", pname, user);
//               IRC_GroupSay(groupID, channel, msg);
//        }
//       return 1;
//}

IRCCMD:forums(botid, channel[], user[], host[], params[])
{
    new string29[128];
    new string30[128];
    if (IRC_IsVoice(botid, channel, user))
    {
        format(string29, 128, "Sign up at our forums today! coming soon"); //change this to your forums
        format(string30, 128, "Sign up at our forums today! coming soon"); //Change to your forums
        IRC_GroupSay(groupID, channel, string29);
        SendClientMessageToAll(0xFF0000FF, string30);
    }
    return 1;
}

IRCCMD:spawn(botid, channel[], user[], host[], params[])
{
    new playerid, reason[64];
    if (sscanf(params, "dS(No reason.)[64]", playerid, reason))
    {
        return 1;
    }
    if (IRC_IsAdmin(botid, channel, user))
    {
        if(IsPlayerConnected(playerid))
        {
            new msg[128], pname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname, sizeof(pname));
            format(msg, sizeof(msg),"0,4 >> Admin: %s (IRC), has spawned %s. (%s)", user, pname, reason);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), ">> Admin: %s (IRC), has spawned %s. (%s)", user, pname, reason);
            SendClientMessageToAll(0xFF0000FF, msg);
            SpawnPlayer(playerid);
        }
    }
    return 1;
}

IRCCMD:fuck(botid, channel[], user[], host[], params[])
{
    new playerid;
    new Float:x, Float:y, Float:z;
    if (sscanf(params, "d", playerid))
    {
        return 1;
    }
    if (IRC_IsAdmin(botid, channel, user))
    {
        if(IsPlayerConnected(playerid))
        {
            new msg[128], pname[MAX_PLAYER_NAME], msg2[128];
            GetPlayerName(playerid, pname, sizeof(pname));
            GivePlayerWeapon(playerid, 10, 1);
            format(msg, sizeof(msg), "0,4 >> Admin: %s (IRC), has fucked %s anally.", user, pname);
            format(msg2, 128, ">> Admin: %s (IRC), has fucked %s anally.", user, pname);
            SendClientMessageToAll(0xFF0000FF, msg2);
            IRC_GroupSay(groupID, channel, msg);
            GetPlayerPos(playerid, x, y, z);
            PlayerPlaySound(playerid, 1062, x, y, z);
            GameTextForPlayer(playerid, "~r~Someone wants to ~g~fuck ~y~you! :D", 5000, 3);
        }
    }
    return 1;
}

IRCCMD:getinfo(botid, channel[], user[], host[], params[])
{
    new playerid, pIP[128], Float:health, Float:armour;
    if (sscanf(params, "d", playerid))
    {
        return 1;
    }
    if (IRC_IsHalfop(botid, channel, user))
    {
        if(IsPlayerConnected(playerid))
        {
            new msg[128], pname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname, sizeof(pname));
            GetPlayerIp(playerid, pIP, 128);
            GetPlayerHealth(playerid, health);
            GetPlayerArmour(playerid, armour);
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            new ping;
            ping = GetPlayerPing(playerid);
            new skin;
            skin = GetPlayerSkin(playerid);
            format(msg, sizeof(msg), "%s's info: IP: %s | Health: %d | Armour: %d | Ping: %d | Skin ID: %d | Player Position: %d, %d, %d", pname, pIP, floatround(health), floatround(armour), ping, skin, x, y, z);
            IRC_Say(groupID, user, msg);
        }
    }

    return 1;
}

IRCCMD:rvehicles(botid, channel[], user[], host[], params[])
{
    new string1[128], string2[128];
    if (IRC_IsAdmin(botid, channel, user))
    {
        for(new i = 1; i <= MAX_VEHICLES; i++)
        {
            SetVehicleToRespawn(i);
        }
        format(string1, 128, "0,4 >> Admin: %s (IRC), has respawned all vehicles", user);
        format(string2, 128, ">> Admin: %s (IRC), has respawned all vehicles", user);
        IRC_GroupSay(groupID, channel, string1);
        SendClientMessageToAll(0xFF0000FF, string2);
    }
    return 1;
}

IRCCMD:dstuntb(botid, channel[], user[], host[], params[])
{
    new string31[128];
    new string32[128];
    if (IRC_IsAdmin(botid, channel, user))
    {
        format(string31, 128, "0,4 >> Admin: %s (IRC), has disabled the stunt bonus for all", user);
        format(string32, 128, ">> Admin: %s (IRC), has disabled the stunt bonus for all", user);
        IRC_GroupSay(groupID, channel, string31);
        SendClientMessageToAll(0xFF0000FF, string32);
        EnableStuntBonusForAll(false);
    }
    return 1;
}

IRCCMD:estuntb(botid, channel[], user[], host[], params[])
{
    new string33[128];
    new string34[128];
    if (IRC_IsAdmin(botid, channel, user))
    {
        format(string33, 128, "0,4 >> Admin: %s (IRC), has enabled the stunt bonus for all", user);
        format(string34, 128, ">> Admin: %s (IRC), has enabled the stunt bonus for all", user);
        IRC_GroupSay(groupID, channel, string33);
        SendClientMessageToAll(0xFF0000FF, string34);
        EnableStuntBonusForAll(true);
    }
    return 1;
}

IRCCMD:givecar(botid, channel[], user[], host[], params[])
{
    new playerid, reason[64];
    new Float:x;
    new Float:y;
    new Float:z;
    if (sscanf(params, "dS(No reason.)[64]", playerid, reason))
    {
        return 1;
    }
    if (IRC_IsAdmin(botid, channel, user))
    {
        if(IsPlayerConnected(playerid))
        {
            new msg[128], pname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname, sizeof(pname));
            GetPlayerPos(playerid, x, y, z);
            format(msg, sizeof(msg), "0,4 >> Admin: %s (IRC), has given %s a turismo. (%s)", user, pname, reason);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), ">> Admin: %s (IRC), has given %s a turismo. (%s)", user, pname, reason);
            SendClientMessageToAll(0xFF0000FF, msg);
            CreateVehicle(451, x, y, z, 82.2873, 6, 3, 3000);
        }
    }
    return 1;
}

IRCCMD:deathdrop(botid, channel[], user[], host[], params[])
{
    new string33[150];
    new string34[150];
    if (IRC_IsAdmin(botid, channel, user))
    {
        format(string33, 128, "0,4 >> Admin: %s (IRC), has enabled drop money on death for everyone", user);
        format(string34, 128, ">> Admin: %s (IRC), has enabled drop money on death for everyone", user);
        IRC_GroupSay(groupID, channel, string33);
        SendClientMessageToAll(0xFF0000FF, string34);
        SetDeathDropAmount(300);
    }
    return 1;
}

//Owner CMDS

IRCCMD:allowweaps(botid, channel[], user[], host[], params[])
{
    new string36[150];
    new string37[150];
    if(IRC_IsOwner(botid, channel, user))
    {
        format(string36, 128, "0,4 >> Admin: %s (IRC), has enabled weapons inside interiors!", user);
        format(string37, 128, ">> Admin: %s (IRC), has enabled weapons inside interiors!", user);
        IRC_GroupSay(groupID, channel, string36);
        SendClientMessageToAll(0xFF0000FF, string37);
        AllowInteriorWeapons(true);
    }
    return 1;
}

IRCCMD:nametagsoff(botid, channel[], user[], host[], params[])
{
    new string39[150];
    new string40[150];
    if(IRC_IsOwner(botid, channel, user))
    {
        format(string39, 128, "0,4 >> Admin: %s (IRC), has turned off player name tags!", user);
        format(string40, 128, ">> Admin: %s (IRC), has turned off player name tags!", user);
        IRC_GroupSay(groupID, channel, string39);
        SendClientMessageToAll(0xFF0000FF, string40);
        ShowNameTags(false);
    }
    return 1;
}

IRCCMD:nametagson(botid, channel[], user[], host[], params[])
{
    new string41[150];
    new string42[150];
    if(IRC_IsOwner(botid, channel, user))
    {
        format(string41, 128, "0,4 >> Admin: %s (IRC), has turned on player name tags!", user);
        format(string42, 128, ">> Admin: %s (IRC), has turned on player name tags!", user);
        IRC_GroupSay(groupID, channel, string41);
        SendClientMessageToAll(0xFF0000FF, string42);
        ShowNameTags(true);
    }
    return 1;
}

IRCCMD:disallowweaps(botid, channel[], user[], host[], params[])
{
    new string43[150];
    new string44[150];
    if(IRC_IsOwner(botid, channel, user))
    {
        format(string43, 128, "0,4 >> Admin: %s (IRC), has disabled weapons inside interiors!", user);
        format(string44, 128, ">> Admin: %s (IRC), has disabled weapons inside interiors!", user);
        IRC_GroupSay(groupID, channel, string43);
        SendClientMessageToAll(0xFF0000FF, string44);
        AllowInteriorWeapons(false);
    }
    return 1;
}
Reply
#2

Use IRC_SetMode
Reply
#3

Quote:
Originally Posted by Scottas
Посмотреть сообщение
Use IRC_SetMode
I know that I am a noob, but how to use it
Reply
#4

so tell me how?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)