Unban ip - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Unban ip (
/showthread.php?tid=355216)
Unban ip -
Crazyboobs - 29.06.2012
Hello.
I want a cmd which will unban a player ip.Can anyone please give me?
Re: Unban ip -
milanosie - 29.06.2012
/rcon unbanip
Re: Unban ip -
Crazyboobs - 29.06.2012
Quote:
Originally Posted by milanosie
/rcon unbanip
|
Yes but i need it in zcmd.
Re: Unban ip -
milanosie - 29.06.2012
Quote:
Originally Posted by Crazyboobs
Yes but i need it in zcmd.
|
Why would you want to make a already existing command in rcon?
Re: Unban ip -
Crazyboobs - 29.06.2012
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
Re: Unban ip -
milanosie - 29.06.2012
Just use SendRconCommand
An ip is a string.
Now you know that, it should be easy
Re: Unban ip -
Crazyboobs - 29.06.2012
Code please?
Re: Unban ip -
JaKe Elite - 29.06.2012
Don't be lazy, you always made a topic because you want somebody to make the command for you, how about hire a scripter?
Re: Unban ip -
Calabresi - 29.06.2012
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.
Re: Unban ip -
Neil. - 29.06.2012
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