Igen azzal csak magát tiltja ki.
CMD:ban(playerid, params[])
{
new sendername[MAX_PLAYER_NAME];
new ok[100];
new stringa[128];
if(sscanf(params, \"us[100]\",giveplayerid, ok))
{
SendClientMessage(playerid, COLOR_GRAD2, \"Használat: /ban [név/azonosító] [indok]\");
return 1;
}
new playerip[18];
GetPlayerIp( giveplayerid,playerip,sizeof(playerip));
format(stringa,sizeof(stringa),\"banip %s\", playerip);
SendRconCommand(stringa);
SendRconCommand(\"banip\");
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(stringa, sizeof(stringa), \"AdmCmd: %s ki lett tiltva %s által. Ok:%s\", giveplayer,sendername,ok);
SendClientMessageToAll(COLOR_RED, stringa);
Ban(giveplayerid);
printf(\"%s bannolva lett\", giveplayer);
return 1;
}
De ezt mindenki tudja használni