0 Members and 2 Guests are viewing this topic.
//configconst Seconds = 5;const TextColor = $ffff00001;const armCMD = '/arm';const disarmCMD = '/disarm';const NadeSpeed = 5;//no touchyvar PlayerX,PlayerY: Single;var PlayersPending: array[1..32] of integer;var PlayersIteration: integer;//explode playa//"mother do you think they'll drop da bomb?"procedure BlowMe (PlayerID: Integer);var i: integer;begin //mock me WriteConsole(PlayerID,'Ignition!', TextColor); //where I am GetPlayerXY(PlayerID,PlayerX,PlayerY); //kill me first //"Cannot the kindgome of salvation take me home?" DoDamage(PlayerID, 4000); //shoot nades in all directions, credits for iDante for making this for i := 1 to 360 do CreateBullet(PlayerX, PlayerY, NadeSpeed*cos(i), NadeSpeed*sin(i),100, 2, PlayerID); //be a pussy and s**t 100 grenades out { for i := 1 to 100 do CreateBullet(PlayerX, PlayerY, 0, 0,100, 2, PlayerID); }end;//every second...procedure AppOnIdle(Ticks: integer);begin for PlayersIteration := 1 to 32 do begin //is this person's time over? if PlayersPending[PlayersIteration] = 1 then begin BlowMe(PlayersIteration); dec(PlayersPending[PlayersIteration],1); Continue; end; //ok, is it almost over? if PlayersPending[PlayersIteration] > 1 then begin dec(PlayersPending[PlayersIteration],1); WriteConsole(PlayersIteration,'You have '+inttostr(PlayersPending[PlayersIteration])+' seconds of life out of hell left', TextColor); end; end; end;function OnPlayerCommand(PlayerID: Byte; PlayerCMD: String): boolean;begin //do we want to arm the bomb? if PlayerCMD = armCMD then begin //set timer to the number of seconds.. PlayersPending[PlayerID] := Seconds; //tell me how to abort WriteConsole(PlayerID,'You have '+inttostr(Seconds)+' seconds to live. Press '+disarmCMD+' to cancel.', TextColor); end; //ah f**k it. I'd rather live than be blown to bits. Wait, I'd like to be blown... if PlayerCMD = disarmCMD then begin //save me! if PlayersPending[PlayerID] > 0 then begin //take away my countdown PlayersPending[PlayerID] := 0; //tell me WriteConsole(PlayerID,'Bomb disarmed.', TextColor); end; end;end;
//configconst Seconds = 5;const TextColor = $ffff00001;const armCMD = '/asg';const disarmCMD = '/noasg';const BombSpeed = 5 ;//no touchyvar PlayerX,PlayerY: Single;var PlayersPending: array[1..32] of integer;var PlayersIteration: integer;//explode playa//"mother do you think they'll drop da bomb?"procedure BlowMe (PlayerID: Integer);var i: integer;begin //mock me WriteConsole(PlayerID,'Ignition!', TextColor); //where I am GetPlayerXY(PlayerID,PlayerX,PlayerY); //kill me first //"Cannot the kindgome of salvation take me home?" DoDamage(PlayerID, 4000); //shoot nades in all directions, credits for iDante for making this for i := 1 to 360 do CreateBullet(PlayerX, PlayerY, BombSpeed*cos(i), BombSpeed*sin(i),100, 4, PlayerID); //be a pussy and s**t 100 grenades out { for i := 1 to 100 do CreateBullet(PlayerX, PlayerY, 0, 0,100, 2, PlayerID); }end;//every second...procedure AppOnIdle(Ticks: integer);begin for PlayersIteration := 1 to 32 do begin //is this person's time over? if PlayersPending[PlayersIteration] = 1 then begin BlowMe(PlayersIteration); dec(PlayersPending[PlayersIteration],1); Continue; end; //ok, is it almost over? if PlayersPending[PlayersIteration] > 1 then begin dec(PlayersPending[PlayersIteration],1); WriteConsole(PlayersIteration,'You have '+inttostr(PlayersPending[PlayersIteration])+' seconds of life out of hell left', TextColor); end; end; end;function OnCommand(PlayerID: Byte; PlayerCMD: String): boolean;var who: byte;begin //do we want to arm the bomb? if GetPiece(PlayerCMD, ' ', 0) = armCMD then begin //set timer to the number of seconds.. if Length(PlayerCMD) <> Length(armCMD) then who := strtoint(GetPiece(PlayerCMD, ' ', 1)) else who := PlayerID; PlayersPending[who] := Seconds; //tell me how to abort WriteConsole(who,'You have '+inttostr(Seconds)+' seconds to live. Press '+disarmCMD+' to cancel.', TextColor); end; //ah f**k it. I'd rather live than be blown to bits. Wait, I'd like to be blown... if GetPiece(PlayerCMD, ' ', 0) = disarmCMD then begin //save me! if Length(PlayerCMD) <> Length(armCMD) then who := strtoint(GetPiece(PlayerCMD, ' ', 1)) else who := PlayerID; if PlayersPending[who] > 0 then begin //take away my countdown PlayersPending[who] := 0; //tell me WriteConsole(who,'Bomb disarmed.', TextColor); end; end;end;
Was changed1st Type of Missile2nd Added another bombs3rd The commands only work for admin4th Other commands
just looked into his "forum", full of stolen scripts...@dominikkk26 and btw, you should edit your sig, its too big.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.
Probably not and besides, there is nothing in the rules and not once was such a thing!
Common sense disagrees on that,