0 Members and 1 Guest are viewing this topic.
vari:integer;function OnCommand(ID: Byte; Text: string): boolean;begin if text='/gmuteall' then begin for i:=1 to 32 do if getplayerstat(i,'Active')=true then command('/gmute '+inttostr(i)); end; if text='/ungmuteall' then begin for i:=1 to 32 do if getplayerstat(i,'Active')=true then command('/ungmute '+inttostr(i)); end;end;
btw command !map ctf_Laos and other doesnt work something is wrong.Could u fix it ? else if (MaskCheck(lowercase(Text),'!map')) then begin Map := GetPiece(Text,' ',1); if (FileExists('maps/'+Map+'.PMS')) then Command('/map '+Map) else WriteConsole(0,'Map '+Map+' not found!',ClMessage); end