28.04.2016, 05:23
Guys
for eg this code
in this it is said "if (IRC_IsOp(botid, channel, user))" does it means only OP or OP SOP Owner can use it ? can can u help me by telling wat is SOP OP HOP VOP ? thx
for eg this code
Код:
IRCCMD:warn(botid, channel[], user[], host[], params[])
{
new playerid, reason[64];
//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), "*** %s has been warned by Staff Member %s on IRC for reason: %s", pname, user, reason);
IRC_GroupSay(groupID, channel, msg);
format(msg, sizeof(msg), "{00FF00}[IRC]{FFFFFF}%s Has warned %s for reason: %s", user, pname, reason);
SendClientMessageToAll(0xFFFF00C8, msg);
//Simple warn by NoahF. :)
}
}
return 1;
}

