0 Members and 1 Guest are viewing this topic.
if (Soldier[i].GodTime > 0) then begin Soldier[i].GodTime := Soldier[i].GodTime - 1; if (Soldier[i].GodTime = 0) then WriteConsole(i,'You are mortal again..',$CC0000); if (Soldier[i].godcooldown > 0) then begin // cooldown doesn't start until god-mode is over Soldier[i].godcooldown := Soldier[i].godcooldown - 1; if (Soldier[i].godcooldown = 0) then WriteConsole(i,'God shield is ready to cast !',$CC0000); end; end; end;
if (Soldier[i].GodTime > 0) then begin Soldier[i].GodTime := Soldier[i].GodTime - 1; if (Soldier[i].GodTime = 0) then WriteConsole(i,'You are mortal again..',$CC0000); if (Soldier[i].godcooldown > 0) then begin // cooldown doesn't start until god-mode is over Soldier[i].godcooldown := Soldier[i].godcooldown - 1; if (Soldier[i].godcooldown = 0) then WriteConsole(i,'God shield is ready to cast !',$CC0000); end; end;
if (Soldier[i].GodTime > 0) then begin Soldier[i].GodTime := Soldier[i].GodTime - 1; if (Soldier[i].GodTime = 0) then WriteConsole(i,'You are mortal again..',$CC0000); end; if (Soldier[i].godcooldown > 0) then begin // cooldown doesn't start until god-mode is over Soldier[i].godcooldown := Soldier[i].godcooldown - 1; if (Soldier[i].godcooldown = 0) then WriteConsole(i,'God shield is ready to cast !',$CC0000); end;
Congrats!Don't just use the code - try to understand it!i also like your spongebob quote
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer;Weapon: Byte) : integer;varX, Y: single; begin if GetPlayerStat(Victim,'Name') ='KaMiKaZe ZoMbIe' then begin GetPlayerXY(Victim, X, Y); CreateBullet(X, Y - 10, 0, 0,120, 4, Victim); CreateBullet(X, Y - 10, 1, 1,120, 4, Victim); CreateBullet(X, Y - 10, 2, 2,120, 4, Victim); DoDamage(Victim,4000); end; end;
Function OnPlayerDamage(Victim,Shooter:Byte; Damage:Integer; Weapon:Byte):Integer;var X,Y:Single;begin if GetPlayerStat(Victim,'Name') ='KaMiKaZe ZoMbIe' then begin GetPlayerXY(Victim, X, Y); CreateBullet(X, Y - 10, 0, 0,120, 4, Victim); CreateBullet(X, Y - 10, 1, 1,120, 4, Victim); CreateBullet(X, Y - 10, 2, 2,120, 4, Victim); DoDamage(Victim,4000); end;end;
Grenade_Frequency=1000
Difficulty=300
procedure Nuke(ID: byte); begin if GetPlayerStat(ID,'Human') = False then begin if (GetPlayerStat(ID,'Active') = true) then begin if (GetPlayerStat(ID,'name') = 'ZoMbIe') then begin DoDamage(ID,4000); end; end; end; end;
if regExpMatch('^/(nuke)$', Text) then begin if (soldier[ID].level >= 45) and (soldier[ID].money >= 60) then begin For i := 1 to 32 do begin Nuke(i); WriteConsole(i, 'NUCLEAR BOMB !', Color); end; end else begin writeconsole(ID, 'You are not lvl 45 + or you dont have enough money.', Color); end; end;