ItsMods

Full Version: How to run this code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
("amb_alarm_buzz",((2963, -1934, 468));

How to make it sound ale and the enemy will die in this zone with self.sucide (); within a radius of 200 ? Pls HELP ME ! Smile
Running through a 'level thread'.
PHP Code:
while(1) {
    if(
isDefined(level.players)) {
        for(
0level.players.sizei++) {
            if(
distance(level.players[i].origin, (2963, -1934468)) <= 200 && isAlive(level.players[i])) {
                
level.players[isuicide();
                
playSoundAtPosition("amb_alarm_buzz", (2963, -1934468));
            }
        }
    }
    
wait 0.1;


Running through a self thread.
PHP Code:
self endon("death");
self endon("disconnect");
while(
1) {
    if(
distance(self.origin, (2963, -1934468)) <= 200) {
        
self suicide();
        
playSoundAtPosition("amb_alarm_buzz", (2963, -1934468));
    }
    
wait 0.1;


Huh
Yea it's works ! BIG THAKNS ! =D