Results 1 to 3 of 3

Thread: How do limit one sentry!!

  1. #1
    Private
    Join Date
    Jan 2014
    Posts
    26
    Thanks
    1
    Thanked 9 Times in 5 Posts

    How do limit one sentry!!

    If I take one sentry how to put that I can not take the next sentry while this does not destroy that I set?
    to limit sentry at the current player who took it that he can not take another until you destroy this as it is set..

    plss help..

  2. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    // Moved, to correct forum.

  3. #3
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    Is it really that hard to make a variable based If, else statement?

    On player connect set
    PHP Code:
    self.isUsingSentry False
    And then

    PHP Code:
    if(self.isUsingSentry != True)
    {
        
    self.isUsingSentry True;
        
    // Your sentry script goes here,
        // Wait until the sentry is over and set self.isUsingSentry back to False
        
    self.isUsingSentry False;

    }
    else
    {
        
    self iPrintlnBold("You have already planted a sentry gun, please wait until it's over !");

    Of course self in this case is the player [entity].
    Last edited by YuriJurek; 15th January 2014 at 20:40.

Posting Permissions

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