0 Members and 1 Guest are viewing this topic.
@zyxstand : I only have 13 years old and im not native english speaker so i learn scripting very slowly ^^
OnplayerrespawnbeginIf soldier[ID].level >= 10 then begin GiveBonus(ID,3)end; end;
if soldier[ID].level >=25then begin DoDamage(ID,-3);end;
const MaxRange = 195;type PlayerStats=Record RugerKills:Byte; end;var Player:Array[1..32] of PlayerStats; Procedure TriggerRuger(Killer,Victim:Byte); //i don't understand this procedure ...var X1,Y1,X2,Y2:Single; i,j,Team:Byte; k:Integer;begin GetPlayerXY(Victim,X1,Y1); Team := GetPlayerStat(Victim,'Team'); repeat j := j + 1; for i := 1 to 32 do if (GetPlayerStat(i,'Active') = true) AND (GetPlayerStat(i,'Team') <> Team) AND (GetPlayerStat(i,'Alive') = true) then begin GetPlayerXY(i,X2,Y2); if (Distance(X1,Y1,X2,Y2) <= MaxRange) then begin CreateBullet(X2,Y2,0,0,0,5,Killer); DoDamageBy(i,Killer,20); k := k + 1; end; end; until(j = Player[Killer].RugerKills); WriteConsole(Killer,'You''ve hit ' + IntToStr(k) + ' targets.', $FFFFFF);end;Procedure OnPlayerKill(Killer,Victim:Byte; Weapon:String); //add 1 ruger kill to playerbegin if (Weapon = 'RUGER') then begin Player[Killer].RugerKills := Player[Killer].RugerKills + 1; TriggerRuger(Killer,Victim); end;end;Procedure OnJoinGame(ID,Team:Byte); //put that player did 0 ruger killbegin Player[ID].RugerKills := 0;end;Procedure ActivateServer(); //write on the server console that the server started !begin WriteLn('*** SERVER STARTED ***');end;
Fine, you were able to click on my link and paste the code here..