20.06.2016, 17:40
Try This
Or This
PHP код:
new playerid,reason[64];
if (sscanf(params, "dz", playerid, reason))
{
return 1;
}
if (IsPlayerConnected(playerid))
{
new msg[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(msg, sizeof(msg), "04*** %s has been unfrozen by %s on IRC.", name, user);
IRC_GroupSay(gGroupID, IRC_CHANNEL, msg);
format(msg, sizeof(msg), "* Admin %s on IRC has unfrozen %s ",user, name);
SendClientMessageToAll(0xAA3333AA, msg);
TogglePlayerControllable(playerid, 1);
}
}
return 1;
}
PHP код:
IRCCMD:unfreeze(botid, channel[], user[], host[], params[])
{
if (IRC_IsOp(botid, channel, user))
{
new playerid,reason[64];
if (sscanf(params, "dz", playerid, reason))
{
return 1;
}
if (IsPlayerConnected(playerid))
{
new msg[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(msg, sizeof(msg), "04*** %s has been unfrozen by %s on IRC.", name, user);
IRC_GroupSay(gGroupID, IRC_CHANNEL, msg);
format(msg, sizeof(msg), "* Admin %s on IRC has unfrozen %s ",user, name);
SendClientMessageToAll(0xAA3333AA, msg);
TogglePlayerControllable(playerid, 1);
}
}
return 1;
}