dcmd_tban(playerid,params[])
{
[color=blue]if[/color](PlayerInfo[playerid][pAdmin][color=green]>[/color][color=green]=[/color][color=#ff8c00]3[/color])
{
[color=blue]new[/color] pID,pIdName[MAX_PLAYER_NAME],pName[MAX_PLAYER_NAME],banTime,reason[[color=#ff8c00]64[/color]],string[[color=#ff8c00]128[/color]];
[color=blue]if[/color](sscanf(params,[color=red]"uds"[/color],pID,banTime,reason)) { [color=blue]return[/color] SendClientMessage(playerid,COLOR_LIGHTBLUE,[color=red]"Benutze: /tban [SpielerID] [Minuten] [Grund]"[/color]); }
[color=blue]if[/color]([color=green]![/color]IsPlayerConnected(pID)) { [color=blue]return[/color] SendClientMessage(playerid,COLOR_RED,[color=red]"ungültiger Spieler"[/color]); }
[color=blue]if[/color](banTime [color=green]<[/color] [color=#ff8c00]1[/color]) { [color=blue]return[/color] SendClientMessage(playerid,COLOR_RED,[color=red]"Minimum Time: 1 Minute"[/color]); }
GetPlayerName(pID,pIdName,[color=blue]sizeof[/color](pIdName));
GetPlayerName(playerid,pName,[color=blue]sizeof[/color](pName));
format(string,[color=blue]sizeof[/color](string),[color=red]"AdmCmd: %s hat %s für %d Minute(n) gebannt. Grund: %s"[/color],pName,pIdName,banTime,reason);
SendClientMessageToAll(COLOR_LIGHTRED,string);
pBanner[pID] [color=green]=[/color] pName;
TBan(pID,banTime);
[color=blue]return[/color] [color=#ff8c00]1[/color];
}
[color=blue]return[/color] [color=#ff8c00]1[/color];
}
dcmd_tunban(playerid,params[])
{
[color=blue]if[/color](PlayerInfo[playerid][pAdmin][color=green]>[/color][color=green]=[/color][color=#ff8c00]3[/color])
{
[color=blue]new[/color] pName[MAX_PLAYER_NAME],pIdName[MAX_PLAYER_NAME];
[color=blue]if[/color](sscanf(params,[color=red]"s"[/color],pIdName)) { [color=blue]return[/color] SendClientMessage(playerid,COLOR_LIGHTBLUE,[color=red]"Benutze: /tunban [SpielerName]"[/color]); }
GetPlayerName(playerid,pName,[color=blue]sizeof[/color](pName));
[color=blue]if[/color](BanFileExist(pIdName))
{
TUnban(pIdName);
[color=blue]return[/color] [color=#ff8c00]1[/color];
}[color=blue]else[/color] { [color=blue]return[/color] SendClientMessage(playerid,COLOR_RED,[color=red]"ungültiger Name"[/color]); }
}
[color=blue]return[/color] [color=#ff8c00]1[/color];
}
Probier es so mal