View Single Post
  #7  
Old 07-16-2011, 01:41 AM
callimuc callimuc is offline
ジ
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
[QUOTE=BboyEatsbacon;1658989]
PHP Code:
function onCreated() {
setTimer(0.05);
}
function 
onWasH1t() {
  
this.last_attacker = player.account;
}
function 
onTimeOut() {
if (
this.hearts == "0" || this.hearts == NULL) {
findplayer(this.last_attacker).addweapon("SomeWeaponName");
}
setTimer(0.05);
} 
Quote:
Originally Posted by fowlplay4 View Post
2. Your "solution" would constantly add the weapon to the player while it's dead.
What fowlplay wants to say is:

PHP Code:
function onWasH1t() {
  
this.last_attacker = player.account;
  if (
this.hearts == "0" || this.hearts == NULL) { //If you use costume health system for baddies or whatever than replace it with this part
    
findplayer(this.last_attacker).addweapon("SomeWeaponName");
  }
} 
and again 1 = i at the WasH1t
__________________
MEEP!
Reply With Quote