Results 1 to 3 of 3

Thread: How do limit one sentry!!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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
  •