I'm not good at scripting and I've got problem with one of my scripts:
var i: longint;
if Text = '/test' then
for i := 1 to 32 do begin
repeat
DoDamage(i, 1);
until GetPlayerStat(i, 'Health') <= 0;
Sleep(100);
end;
It seems to work fine, but when I'm moving mouse, server shows 'fri_ is cheating - not allowed weapon'. When I rejoined, there were only four weapons available to choose - DEs, MP5, AK and Steyr. Somehow server didn't show 'not allowed weapon', when i used /test with one of these weapons.
What is wrong with this script?