0 Members and 1 Guest are viewing this topic.
Also, i cant remember that DoDamageBy exists, it isnt even in the scripting manual. :\Did you try DoDamage(i, Killer, 4000)
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.
if Weapon = 'Barrett M82A1' then begin for i := 1 to 32 do begin x := GetPlayerStat(Victim,'x'); y := GetPlayerStat(Victim,'y'); x2 := GetPlayerStat(i,'x'); y2 := GetPlayerStat(i,'y'); if RayCast(x,y,x2,y2,Dist,400) then begin if i <> Killer then begin if GetPlayerStat(i,'Alive') = true then begin //WriteLn(IDtoName(i)+' is in range of Raycast'); CreateBullet(GetPlayerStat(i,'x'), GetPlayerStat(i,'y') - 0, 0,-1000,100, 3, Killer); if getplayerstat(i,'Active') then DoDamageBy(i, Killer, 99); BioKills[Killer]:=BioKills[Killer]+1; end; end; end; end; WriteConsole(Killer,'Bio-Kills: '+Inttostr(BioKills[Killer]),$EE81FAA1); BioKills[Killer]:=BioKills[Killer]*0; end;
if (...) then begin if (...) then begin end;end;
if ((...) AND (...)) OR (...) then beginend;
Procedure OnPlayerKill(Killer,Victim:Byte; Weapon:String);var X1,X2,Y1,Y2:Single i:Byte;begin if Weapon = 'Barrett M82A1' then begin GetPlayerXY(Victim,X,Y) for i := 1 to 32 do if (GetPlayerStat(i,'Active') = true) then begin GetPlayerXY(i,X2,Y2); if RayCast(X1,Y1,X2,Y2,Dist,400) AND (i <> Killer) AND (GetPlayerStat(i,'Alive') = true) then begin //WriteLn(IDtoName(i)+' is in range of Raycast'); CreateBullet(GetPlayerStat(i,'x'), GetPlayerStat(i,'y') - 0, 0,-1000,100, 3, Killer); DoDamageBy(i, Killer, 99); BioKills[Killer]:=BioKills[Killer]+1; end; end; WriteConsole(Killer,'Bio-Kills: '+Inttostr(BioKills[Killer]),$EE81FAA1); BioKills[Killer] := 0; end;
Without trying to sound condescending, I think you should go learn assembly and then C++ to have a better understanding of how the computer works. You'll learn how to be much more efficient with programming concepts. In my opinion, people should learn in this order:1- physics2- chemistry3- electronic theory4- analog design5- logic design6- digital design7- microprocessors and assembly8- C++9- youdotherest
Quote from: zyxstand on July 14, 2010, 02:00:45 pmWithout trying to sound condescending, I think you should go learn assembly and then C++ to have a better understanding of how the computer works. You'll learn how to be much more efficient with programming concepts. In my opinion, people should learn in this order:1- physics2- chemistry3- electronic theory4- analog design5- logic design6- digital design7- microprocessors and assembly8- C++9- youdotherestyou forgot0- common sense
The server can crash when you choose a too high velocity.