0 Members and 1 Guest are viewing this topic.
Procedure AppOnIdle(Ticks: Integer); var BotID,DC: Byte; begin for DC := 1 to 32 do if GetPlayerStat(DC,'Alive') = true then begin // This is a timer that will force the Berserker a knife every 10 seconds. if Klasse[DC] = 'Berserker' then begin // But only if he´s alive. if ticks mod (60 * 10) = 0 then ForceWeapon(DC,14,255,0); end; for DC := 1 to 32 do if GetPlayerStat(DC, 'Active') = true then if GetPlayerStat(DC, 'Alive') = true then if Klasse[DC] = 'Mage' then if ticks mod (60 * 7) = 0 then ForceWeapon(DC,14,255,0); for BotID := 1 to 32 do if GetPlayerStat(BotID,'Human') = false then begin //Checkin if BotID is actually a bot.. if GetPlayerStat(BotID,'Deaths') < 2 then begin //Checking if BotID has less than 2 deaths.. SetScore(DC,GetPlayerStat(DC,'Kills') +1 ); SetScore(BotID,0); if ticks mod (60 * 5) = 0 then ForceWeapon(BotID,14,GetPlayerStat(BotID,'Secondary'),0); //Then give BotID a knife every 5 seconds. end else KickPlayer(BotID); //If BotID has more/equal 2 deaths, kick him.. end; for DC := 1 to 32 do if GetPlayerStat(DC,'Alive') = true then begin //The timer for the Thief class. Thieves get if Klasse[DC] = 'Thief' then //one knife every 8 seconds. if ticks mod (60*8) = 0 then ForceWeapon(DC,14,255,0); end; for DC := 1 to 32 do if GetPlayerStat(DC,'Alive') = true then begin //The timer for the Ninja class. Ninjas get if Klasse[DC] = 'Ninja' then //one knife every 8 seconds. if ticks mod (60 * 8) = 0 then ForceWeapon(DC,14,255,0); end; end;end;
[BOT]Name=KnifeMinionColor1=$FFFFFFFFColor2=$FFFFFFFFSkin_Color=$FFFFFFFFHair_Color=$FFFFFFFFFavourite_Weapon=KnifeSecondary_Weapon=Friend=Accuracy=0Shoot_Dead=0Grenade_Frequency=100000000Camping=255OnStartUse=255Hair=4Headgear=1Chain=0Chat_Frequency=10000000000Chat_Kill=Are you proud of me, master?Chat_Dead=See you ... in a while.Chat_Lowhealth=Food ... give me ... foood!Chat_SeeEnemy=A knife in the right moment can change everything!Chat_Winning=See, I can serve my master well.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.
[BOT]Name=KnifeMinionColor1=$FFFFFFFFColor2=$FFFFFFFFSkin_Color=$FFFFFFFFHair_Color=$FFFFFFFFFavourite_Weapon=KnifeSecondary_Weapon=KnifeFriend=Accuracy=0Shoot_Dead=0Grenade_Frequency=7Camping=255OnStartUse=255Hair=4Headgear=1Chain=0Chat_Frequency=0Chat_Kill=Are you proud of me, master?Chat_Dead=See you ... in a while.Chat_Lowhealth=Food ... give me ... foood!Chat_SeeEnemy=A knife in the right moment can change everything!Chat_Winning=See, I can serve my master well.
Favourite_Weapon=Combat KnifeSecondary_Weapon=1
Procedure OnFlagScore(ID,Teamflag:byte); begin if Klasse[ID] = 'Ninja' then begin GiveBonus(ID, 1); WriteConsole(ID,'############################################################',Color); WriteConsole(ID,'You are granted 25 seconds predator time for scoring!', Color); WriteConsole(ID,'############################################################',Color); end;end;
procedure OnPlayerSpeak(ID:Byte;Text:String);begin[...]// Engineer (choose class) if LowerCase(Text) = '!engineer' then begin WriteConsole(ID,'You are now a ENGINEER! (special command: !gun' Color); WriteConsole(ID,'For 5 kills you are able to get a special gun for 20 seconds!', Color); Klasse[ID] := 'Engineer'; end;// Special gun (for Engineer) if LowerCase(Text) = '!gun' then begin ForceWeapon(ID,{FlamerID},0,0); WriteConsole(ID,'You got your special weapon ready to your hands!', Color); end; [...]end;
10-04-14 16:53:34 [*] Knife Server -> [Error] (221:44): Close round expected10-04-14 16:53:34 [*] Compilation Failed.10-04-14 16:53:34 Shutting down server...
Procedure AppOnIdle(Ticks: Integer); var DC: Byte; begin [...]// Engineer (1 knife / 7 seconds) for DC := 1 to 32 do if GetPlayerStat(DC, 'Active') = true then if GetPlayerStat(DC, 'Alive') = true then if Klasse[DC] = 'Engineer' then if ((GetPlayerStat(DC, 'Primary')) Primary = 11) = false then if ticks mod (60 * 7) = 0 then ForceWeapon(DC,14,255,0); end; end; end;
if GetPlayerStat(DC, 'Primary') <> 11 then
Code: [Select]10-04-14 16:53:34 [*] Knife Server -> [Error] (221:44): Close round expected10-04-14 16:53:34 [*] Compilation Failed.10-04-14 16:53:34 Shutting down server...
// Special Gun (duration = 5 seconds) for DC := 1 to 32 do if GetPlayerStat(DC, 'Alive') = true then if Klasse[DC] = 'Engineer' then if ticks mod (60 * 5) = 5 then DrawText(DC,'5 seconds left',60,Color,(255,255,255),5,50); if ticks mod (60 * 5) = 4 then DrawText(DC,'4 seconds left',60,Color,(255,255,255),5,50); if ticks mod (60 * 5) = 3 then DrawText(DC,'3 seconds left',60,Color,(255,255,255),5,50); if ticks mod (60 * 5) = 2 then DrawText(DC,'2 seconds left',60,Color,(255,255,255),5,50); if ticks mod (60 * 5) = 1 then DrawText(DC,'1 second left',60,Color,(255,255,255),5,50); if ticks mod (60 * 5) = 0 then DrawText(DC,'Gun removed',60,Color,(255,255,255),5,50); ForceWeapon(DC,14,14,0);
10-04-14 19:23:06 [*] Knife Server -> [Error] (230:46): Close round expected10-04-14 19:23:06 [*] Compilation Failed.10-04-14 19:23:06 Shutting down server...
// Special Gun (duration = 5 seconds)for DC := 1 to 32 do if GetPlayerStat(DC, 'Alive') = true then
if Klasse[DC] = 'Engineer' then if ticks mod (60 * 5) = 5 then DrawText(DC,'5 seconds left',60,Color,(255,255,255),5,50);
if ticks mod (60 * 5) = 4 then DrawText(DC,'4 seconds left',60,Color,(255,255,255),5,50);if ticks mod (60 * 5) = 3 then DrawText(DC,'3 seconds left',60,Color,(255,255,255),5,50);if ticks mod (60 * 5) = 2 then DrawText(DC,'2 seconds left',60,Color,(255,255,255),5,50);if ticks mod (60 * 5) = 1 then DrawText(DC,'1 second left',60,Color,(255,255,255),5,50); if ticks mod (60 * 5) = 0 then DrawText(DC,'Gun removed',60,Color,(255,255,255),5,50);ForceWeapon(DC,14,14,0);
If EngineerTimer < 6 then begin if EngineerTImer < 1 then begin EngineerTimer = STARTTIME; //remove gun end else DrawText(DC,inttostr(EngineerTimer)+' second left',60,Color,(255,255,255),5,50);end;EngineerTimer := EngineerTimer - 1;
if (TimerVar < 6) and (TimerVar > 0) then // If you set the first number to 11 it would display 10..1 seconds; the 0 is there so it doesn't say "0 seconds left" DrawText(DC, inttostr(TimerVar) + ' seconds left', 180, Color, RGB(255,255,255), 50, 300); // Delay: 1 second = 60 ticks :D, it should be atleast sth. around 3 secondsif TimerVar = 0 then // check if timer var is zero and say the gun was removed DrawText(DC, 'Gun removed..', 180, Color, RGB(255,255,255), 50, 300);