i need Ban unban command
#1

Hello i need so much this cmd help me please
Reply
#2

Код:
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.
Reply
#3

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 )
Reply
#4

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

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?
Reply
#6

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

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>
Reply
#8

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
Reply
#9

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);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)