0 Members and 1 Guest are viewing this topic.
// let the screen turn red but transpartent on damage for 0.3 secondsfunction OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;begin // Victim = Player Damaged // Shooter = Player doing the damage DrawText(Victim,'||',30,RGB(255,0,0),40,-2500,-500); result := Damage;end;// let the screen turn white on respawn for 0.5 secondsprocedure OnPlayerRespawn(ID: Byte);begin DrawText(ID,'||',50,RGB(255,255,255),40,-2500,-500);end;
procedure OnJoinGame(ID, Team: byte);Begin Players[ID].ENABLED := true; Players[ID].FIRSTSPAWN := false;end;
hmm i got a problem:there is no event like: OnBonusPickup ....how to run sth if a healt pack (bonus 1) is picked up?i just know how to give the bonus 1 (healt pack) ... and http://enesce.com/help/ don't has a answer for me, too.so i ask it now here.