Help me once again
#1

So when ever i ban someone on my server it bans the whole server im not sure if its a bug or what it could be like how do i fix this?
Reply
#2

You ban with rcon or with cmd?If is cmd post here
Reply
#3

Post your ban command code here.

KillerDVX,
Reply
#4

:ban(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 2)
{
new string[128], giveplayerid, reason[64];
if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /ban [player] [reason]");

if(IsPlayerConnected(giveplayerid))
{
if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
{
format(string, sizeof(string), "AdmCmd: %s has been auto-banned, reason: Trying to /ban a higher admin.", GetPlayerNameEx(playerid));
ABroadCast(COLOR_YELLOW,string,2);
PlayerInfo[playerid][pBanned] = 1;
SystemBan(playerid, "[System] (Attempting to ban a higher admin.)");
Kick(playerid);
return 1;
}







But like everyone has the same Ip on the server
Reply
#5

Where's the rest of it? Also please use [pawn][/pawn] tags.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)