16.06.2014, 10:17
Instead of the command being kickid1 you could bring in sscanf and use sscanf to do it so like
I have no idea if that works but it might and it will kick what ever player/id you type hopefully
PHP Code:
IRCCMD:kickid(botid, channel[], user[], host[], params[])
{
new PID;
GetPlayerName(PID, playername, sizeof(playername));
if(sscanf(params, "u", PID) return SendClientMessage(playerid, -1, "USAGE: /kickid [playerid]);
if(!IsPlayerConnected(PID)) return SendClientMessage(playerid, -1, "Player is not connected);
if (IRC_IsOp(botid, channel, user))
{
SendClientMessage(1,-1," You were removed from the server by %s from the IRC", user);
Kick(PID);
new string[128];
format(msg, sizeof(string), "**NOTICE: %s has kicked %s out of the server**", user,playername); // This is to announce it to the in IRC
Say(channel,string);
format(msg, sizeof(string), "**NOTICE:%s has been kicked by %s from the server IRC**", playername,user);
SendMessageToAll(-1, string);
}
return 1;
}