Posts: 22
Threads: 10
Joined: Jan 2013
Reputation:
0
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?
Posts: 561
Threads: 27
Joined: Sep 2012
Post your ban command code here.
KillerDVX,
Posts: 22
Threads: 10
Joined: Jan 2013
Reputation:
0
: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
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Where's the rest of it? Also please use [pawn][/pawn] tags.