Untitled
public text v1 · immutable if (strcmp("/banme", cmdtext, true, 10) == 0) // /commands is the command
{
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));
SendClientMessageToAll(COLOR_RED,"%s got banned by Admin %s",bannedname,adminname);
SendRconCommand("banip %s",playerip);
return 1;
}