Hey,
Mein tban buggt,
wenn ich jemanden ein timeban gebe
kann er sich wieder einloggen -.-
dcmd_tban(playerid,params[])
{
new pID,pIdName[MAX_PLAYER_NAME],pName[MAX_PLAYER_NAME],banTime,reason[64],string[128];
if(PlayerInfo[playerid][pAdmin] <= 1) { return 1; }
if(sscanf(params,"uds",pID,banTime,reason)) { return SendClientMessage(playerid,COLOR_GRAD1,"Benutzung: /tban [Spieler / ID] [Zeit in Minuten] [Grund]"); }
if(!IsPlayerConnected(pID)) { return SendClientMessage(playerid,COLOR_GRAD1,"Falsche ID!"); }
if(banTime < 15) { return SendClientMessage(playerid,COLOR_GRAD1,"Minimale Zeit: 30 Minuten"); }
GetPlayerName(pID,pIdName,sizeof(pIdName));
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof(string),"AdminSystem: %s wurde von %s für %d Minuten gebannt, Grund: %s",pIdName,pName,banTime,reason);
SendClientMessageToAll(COLOR_LIGHTRED,string);
printf("AdminSystem(TIMEBAN): Admin: %s(%i) - Timebanned Player: %s(%i) - Timeban Reason: %s",pName,playerid,pIdName,pID,reason);
pBanner[pID] = pName;
TBan(pID,banTime);
return 1;
}