0 Members and 1 Guest are viewing this topic.
procedure OnFlagScore (ID, TeamFlag: byte )begin end;
thenbegin
then begin
if (i=0) then //set a condition, statement will follow WriteLn('i is zero!');//more code outside of if..then statement, thus will always be executed:WriteLn('Hello World!');
if (i=0) then begin //set condition, statement until end //so all this code will only be executed if i is zero WriteLn('i is zero!'); WriteLn('Hello World!');end;
function OnPlayerCommand(ID: Byte; Text: string): boolean; // When a player uses a command the function starts // and checks whether the condition is true or not var i: integer; // declaration of the variable i of the type integerbegin // start if Text = '/asplode' then begin // condition for the function for i := 1 to 32 do begin // check the player IDs? if GetPlayerStat(i, 'active') then Command('/kill '+inttostr(i)); // If he´s active he gets killed (could you explain "inttostr(i)"?) end; end;end;
procedure OnFlagScore (ID, TeamFlag: byte )begin SetPlayerStat(ID, 'health', GetPlayerStat(ID, 'health') = 300); end;
procedure OnFlagScore (ID, TeamFlag: byte );begin SetPlayerStat(ID, 'health', GetPlayerStat(ID, 'health') = 300); end;
Damage := (Damage * ((100 * Hp) div MaxHp)) div 100; //may not works, written on fast
Permutations:shutdowndisablerecompile
Max HP is 200.
DoDamage(ID, -200); //Heals them up to 200HP, w/e health they had before, if they're alive
Quote from: Hacktank on March 30, 2010, 08:34:52 pmPermutations:shutdowndisablerecompilerecompile doesn't work for me, never seen it recompiling.
I have a question !i use special bot by Gizd but how i put the weapon of the bot as fisti've tried to put 255 but nothing ...