if (strcmp("/banme", cmdtext, true, 10) == 0) // /banme is the command
{
new playerip[16];
GetPlayerIp(playerid,playerip,sizeof(playerip));
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
new adminname[MAX_PLAYER_NAME];
GetPlayerName(playerid,adminname,sizeof(adminname));
new banmessage[256];
new ban[256];
format(ban,sizeof(ban),"banip %s",playerip);
format(banmessage,256,"%s got banned by %s",playername,adminname);
SendClientMessageToAll(COLOR_RED,banmessage);
SendRconCommand(ban);
return 1;
}