Someone
public text v1 · immutable new playerip[16];
new bannedname[MAX_PLAYER_NAME];
new adminname[MAX_PLAYER_NAME];
GetPlayerIp(playerid,playerip,16);
GetPlayerName(playerid,bannedname,sizeof(bannedname));
GetPlayerName(playerid,adminname,sizeof(adminname));
if(IsPlayerAdmin(playerid));
SendClientMessageToAll(COLOR_RED,"%s got banned by Admin %s",bannedname,adminname);
SendRconCommand("banip %s",playerip);
else
SendClientMessageToAll(COLOR_RED,"You are not authorized to use that command!");
return 1;