21.01.2012, 17:28
you should use playerid..
if you dont do so , every player will be able to use the cmd (not only admins)
Код:
dcmd_kickclan(playerid,params[]) { if(!IsPlayerAdmin(playerid)) return 0; new name[24]; for(new i = 0; i < MAX_PLAYERS; i++) { GetPlayerName(i,name,24); if(strfind(name,params,true) != -1) { kick(i); } } return 1; }