Unban ip
#1

Hello.
I want a cmd which will unban a player ip.Can anyone please give me?
Reply
#2

/rcon unbanip
Reply
#3

Quote:
Originally Posted by milanosie
Посмотреть сообщение
/rcon unbanip
Yes but i need it in zcmd.
Reply
#4

Quote:
Originally Posted by Crazyboobs
Посмотреть сообщение
Yes but i need it in zcmd.
Why would you want to make a already existing command in rcon?
Reply
#5

I have a problem with the rcon.thats why i need it in zcmd so that i can put level 4 or level 5 to use it
Reply
#6

Just use SendRconCommand

An ip is a string.

Now you know that, it should be easy
Reply
#7

Code please?
Reply
#8

Don't be lazy, you always made a topic because you want somebody to make the command for you, how about hire a scripter?
Reply
#9

pawn Код:
COMMAND:unbanip(playerid, params[])
{
    new ip[16];
    if(sscanf(params, "s[16]", ip)) return SendClientMessage(playerid, -1, "USAGE: /unbanip [ip]");
    new string[256];
    format(string, sizeof string, "unbanip %s", ip);
    SendRconCommand(string);
    return 1;
}
There you are. You also need sscanf to make that code working.
Reply
#10

Quote:
Originally Posted by Romel
Посмотреть сообщение
Don't be lazy, you always made a topic because you want somebody to make the command for you, how about hire a scripter?
A good way to start off, is to learn it himself, it's a 100 times better than paying someone for it, all it takes to learn, is to read the basics, use some gamemode only for reference, and use wiki as a basis, You can look through released gamemodes/filterscripts and apply what you've learned so far into your current GM, trust me it's better to learn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)