Results 1 to 6 of 6

Thread: Spawn protection + spawn effect

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    On spawn:

    PHP Code:
    self thread spawnProtection(); 
    Somewhere in same file:

    PHP Code:
    spawnProtection()
    {
    self endon("killed_player");
    self endon("disconnect");
    self.spawnprotected true;
    wait 5;
    self.spawnprotected false;

    In callback damage, after {
    PHP Code:
    if(isdefined(self.spawnprotected) && self.spawnprotected)
    return; 
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  2. The Following 3 Users Say Thank You to RobsoN For This Useful Post:

    kung foo man (28th March 2014),ORDI (29th March 2014),Rocky (28th March 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •