hi, ich hab mal versucht ein Zcmd Cmd zu erstellen nur kommt ingame Unlnown Command wenn ich /kick eingebe.
woran kann das liegen ? ich habe den CMD nicht unter OnPlayerCommandText.
CMD:kick(playerid,params[])
{
new pID,Grund[50];
if(Acc[playerid][Adminlevel]<2) return SendClientMessage(playerid,COLOR_RED,"You cannot use this Command");
else if(sscanf(params,"uz",pID,Grund)) return SendClientMessage(playerid,COLOR_ORANGE,"Usage: /kick [playerid] ([reason])");
else if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED,"This Player is not Connected");
else if(Acc[pID][Adminlevel] >3) return SendClientMessage(playerid,COLOR_RED,"You cannot kick this Admin");
else
{
new Admin[24];
GetPlayerName(playerid,Admin,sizeof Admin);
new player[24];
GetPlayerName(playerid,player,sizeof player);
new s[100];
format(s,sizeof s,"Server: %s (ID: %d) has kicked %s (ID: %d), reason: %s",Admin,playerid,player,pID,Grund[0] ? Grund : "No reason specified");
SendClientMessageToAll(Color_AdmCmd,s);
Kick(pID);
}
return 1;
}
ich bekomme keine warns/ errors