0 Members and 2 Guests are viewing this topic.
procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);begin Sleep (2000); ForceWeapon(ID,14,14,0);end;
procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);begin ForceWeapon(ID,12,12,0);end;
So for events i need the procedure, but for functions i can't have it.thanks.
Sleep (2000)
oh. How do I make the script not force a knife for 2 seconds withought stopping the server then?
varweapon[1..32] of byte;Procedure AppOnIdle(Ticks:integer);vari : byte;beginfor i := 1 to 32 do begin if weapon[i] = 0 then ForceWeapon(i,14,14,0); if (weapon[i] < 3) and (weapon[i] > 0) then weapon[i] := weapon[i] -1; end;end;procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);beginweapon[id] := 2;end;