Hallo
Ich weis ich sollte lieber selber Probieren doch irgendwie will es nicht so wie ich habe es genau so gemacht wie es sein sollte (hoffe ich).
Doch trotzdem will es nicht funktionieren
ocmd:permaban(playerid,params[])
{
new sendername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
new string[128];
new pID,grund[30];
if(sscanf(params,"uz",pID,grund)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /permaban [playerid/PartOfName] [grund]");
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(pID))
{
if(pID == INVALID_PLAYER_ID)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "[ADMIN]: %s was Permabanned by %s, reason: %s (%d-%d-%d)", pID, sendername, grund,month,day,year);
BanLog(string);
format(string, sizeof(string), "[ADMIN]: %s was Permabanned by %s, reason: %s", pID, sendername, grund);
SendClientMessageToAll(COLOR_LIGHTRED, string);
PlayerInfo[pID][pLevel] = -999;
new ipaddress[16];
GetPlayerIp(pID,ipaddress,sizeof(ipaddress));
new BannedReason[126];
format(BannedReason, sizeof(BannedReason), "PermaBanned. Reason: %s", grund);
//Ban(pID);
Kick(pID);
return 1;
}
}//not connected
}
else
{
format(string, sizeof(string), " %d is not an active player.", pID);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
wenn ich das so mache
if(!sscanf(params,"uz",pID,grund)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /permaban [playerid/PartOfName] [grund]");
Zeigt er mir das an aber passiert trotzdem nichts.