Sehr gut, also geht´s ja doch.
stock ChuckPlayer ( Method , Player , Reason[ ] ) {
new Message [ 128 ] , PlayerName [ MAX_PLAYER_NAME ];
GetPlayerName ( Player , PlayerName , MAX_PLAYER_NAME );
format ( Message , 128 , "%s wurde von Chuck_Norris %s. Grund: %s" , PlayerName , Method ? "gekickt" : "gebannt" , Reason );
SendClientMessageToAll ( COLOR_LIGHTRED , Message );
return Method ? Kick ( Player ) : Ban ( Player );
}
Zum kicken:
ChuckPlayer ( true , 12 , "Lalala" );
Zum bannen:
ChuckPlayer ( false , 12 , "Lalala" );