Help me once again - 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: Help me once again (
/showthread.php?tid=581030)
Help me once again -
sharmarke - 10.07.2015
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?
Re: Help me once again -
TonyVk - 10.07.2015
You ban with rcon or with cmd?If is cmd post here
Re : Help me once again -
KillerDVX - 10.07.2015
Post your ban command code here.
KillerDVX,
Re: Help me once again -
sharmarke - 10.07.2015
: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
Re: Help me once again -
Vince - 10.07.2015
Where's the rest of it? Also please use [pawn][/pawn] tags.