if(strcmp(\"/ban\", cmdtext, true) == 0)
{
new sendername[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pAdmin] >= 2)
{
new ok[100];
if(sscanf(params[1], \"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);
} else {
SendClientMessage(playerid, COLOR_GRAD1, \"Nem vagy 5ös admin!\");
}
return 1;
}
error 017: undefined symbol \"params\"
warning 215: expression has no effect
error 001: expected token: \";\", but found \"]\"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Elõre is köszi,aki tudna segíteni!