jah
akkor..
[pawn]dcmd_ban(playerid,params [] ) {
if(PlayerInfo[playerid][LoggedIn] == 1) {
if(PlayerInfo[playerid][Level] >= 4) {
new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
if(!strlen(params)) return SendClientMessage(playerid, red, \"HASZNÁLAT: /ban [playerid] [indok]\");
if(!strlen(tmp2)) return SendClientMessage(playerid, red, \"HIBA: Kihagytad az indokot\");
new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
player1 = strval(tmp);
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid && (PlayerInfo[player1][Level] != ServerInfo[MaxAdminLevel]) ) {
GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname));
new year,month,day,hour,minuite,second; getdate(year, month, day); gettime(hour,minuite,second);
CMDMessageToAdmins(playerid,\"BAN\");
format(string,sizeof(string),\"%s -t kidobta (BANN) %s [indok: %s] [Dátum: %d/%d/%d] [idõ: %d:%d]\",playername,adminname,params[2],day,month,year,hour,minuite);
SendClientMessageToAll(red,string);
SaveToFile(\"BanLog\",string);
print(string);
if(udb_Exists(PlayerName2(player1)) && PlayerInfo[player1][LoggedIn] == 1) dUserSetINT(PlayerName2(player1)).(\"banned\",1);
format(string,sizeof(string),\"BANN-olta: %s. Indok: %s\", adminname, params[2] );
return BanEx(player1, string);
} else return SendClientMessage(playerid, red, \"Játékos nincs csatlakozva vagy magadat akartad vagy egy nagyobb szintû admint akartál\");
} else return SendClientMessage(playerid,red,\"HIBA: Nincs meg a kellõ szinted ehhez a parancshoz!!\");
} else return Ban(playerid);
}[/pawn]
próbáld ki nem teszteltem