Die Abfrage muss weiter nach oben ungefähr so:
if(strcmp("/kick", cmdtext, true, 5) == 0) //normal command - unfortunately, the cellmax is needed
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFF00FF, "Dieser Befehl ist nur für Admins!");
new tmp[128]; //create a tmp, just like strtok
tmp = zcmd(1, cmdtext); //the "1" is the position of the var - see next example
if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFF0000FF, "Du hast keine ID angegeben!"); //check string length, just like strtok
Kick(strval(tmp)); //kick the value of the tmp string
return 1;
}
So wie du es gemacht hast wird der Spieler erst gekickt, dh. der Befehl ausgeführt und dann überprüft ob der Nutzer überhaupt ein Admin ist.
Bei givemoney ist es das selbe