Hello guys, I have problem. How to change this command alter the map:
!map ctf_Name to !map Name (without ctf_) ?
if Copy(Text,1,1) = '!' then
begin
Delete(Text,1,1);
if MaskCheck(Text,'map *') then
begin
Delete(Text,1,4);
if FileExists('maps/'+Text+'.PMS') or FileExists('maps/'+Text+'.pms') then
Command('/map '+Text)
else
WriteConsole(ID,'Map not found ('+Text+')', Color);
exit;
end;
Please, help me.