Posts: 19
Threads: 6
Joined: Mar 2009
Reputation:
0
I need unban commands but when unban can do only rcon admin.
Posts: 19
Threads: 6
Joined: Mar 2009
Reputation:
0
yes but i need unban script
Posts: 19
Threads: 6
Joined: Mar 2009
Reputation:
0
Yes is use released script! I need only script for unban command.
Posts: 65
Threads: 3
Joined: Jan 2011
Reputation:
0
Hey, try this:
if(strcmp(cmd, "/unban", true) == 0)
{
if(PlayerInfo[playerid][Level] >= 4)
{
new IP,tmp[285],string[285];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "Usage: /unbanip <IP>");
IP = strval(tmp);
format(string,sizeof(string),"unbanip %s",IP);
SendRconCommand(string);
} else {
Msg(playerid,COLOR_RED,"* You can not use this command !");
}
return 1;
}
Posts: 19
Threads: 6
Joined: Mar 2009
Reputation:
0
10.01.2011, 05:33
(
Последний раз редактировалось dcrgn; 10.01.2011 в 11:50.
)
I have one error
C:\Documents and Settings\Rihards\My Documents\ha.pwn(2559) : warning 219: local variable "tmp" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.