hallo zusammen immer wenn ich kicken/bannen willl vereckt der server.....
//------------------------------------------------------------------------------
if(strcmp(cmd, "/lkick", true) == 0) {
if(PlayerInfo[playerid][Level] >= 3) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, red, "USAGE: /lkick [id] [grund]");
return 1; }
new player1;
player1 = strval(tmp);
if(!IsPlayerConnected(player1) || player1 == INVALID_PLAYER_ID ) {
SendClientMessage(playerid,red,"ERROR: Player is not connected or is yourself");
return 1; }
tmp = strtok(cmdtext, idx);
GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname));
CMDMessageToAdmins(playerid,"KICK");
format(string,256,"AdmCmd: %s wurde von %s gekick.[Grund: %s]",playername,adminname,cmdtext[7]); SendClientMessageToAll(red,string);
SaveToFile("KickLog",string);Kick(player1);
} else {
SendClientMessage(playerid,red,"Fehler:Du hast ein zu niedriges LVL"); }
return 1; }
//------------------------------------------------------------------------------
wenn ihr ne idee habt wieso sagt bescheid