SA-MP Forums Archive
i need Ban unban command - 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: i need Ban unban command (/showthread.php?tid=445473)



i need Ban unban command - AldoT - 21.06.2013

Hello i need so much this cmd help me please


AW: i need Ban unban command - Blackazur - 21.06.2013

Код:
CMD:ban(playerid,params[])
{
   new targetid,reason[105];
			if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,yellow, /ban [playerid] [reason]");
   Ban(playerid);
}
the other things, can you make yourself.


Re: i need Ban unban command - doreto - 21.06.2013

Why don't you try create it yourself and then if you have any problem / errors you can post here insted of asking(or you could search it )


Re: i need Ban unban command - ScripteRNaBEEL - 21.06.2013

you can unban by player.sav file and you can unban player ip by using your console with this cmd unbanip <playerid>


Re: i need Ban unban command - Areax - 21.06.2013

Quote:
Originally Posted by ScripteRNaBEEL
Посмотреть сообщение
you can unban by player.sav file and you can unban player ip by using your console with this cmd unbanip <playerid>
unbanip <playerid>? You sure?


Re: i need Ban unban command - ScripteRNaBEEL - 21.06.2013

Quote:
Originally Posted by Areax
Посмотреть сообщение
unbanip <playerid>? You sure?
yeah im sure i use this cmd to unban players ip in samp server console


Re: i need Ban unban command - Areax - 21.06.2013

Quote:
Originally Posted by ScripteRNaBEEL
Посмотреть сообщение
yeah im sure i use this cmd to unban players ip in samp server console
It's unbanip <IP>, not unbanip <playerid>


Re: i need Ban unban command - Lisaax - 21.06.2013

CMD:ban(playerid,params[])
{
new targetid,reason[105];
if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,yellow, /ban [playerid] [reason]");
Ban(playerid);
}

is the code and for unban just go to their account Server _> scriptfiles -> users -> ban 0


Re: i need Ban unban command - ivanVU - 21.06.2013

If he does it this way, he is gonna ban himself.

Код:
CMD:ban(playerid,params[])
{
new targetid,reason[105];
if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,yellow, /ban [playerid] [reason]");
Ban(playerid);
}
do it like this

Код:
CMD:ban(playerid,params[])
{
new targetid, reason[105];
if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,yellow, /ban [playerid] [reason]");
Ban(targetid);
}