Is it really that hard to make a variable based If, else statement?
On player connect setAnd thenPHP Code:
self.isUsingSentry = False;
Of course self in this case is the player [entity].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 !");
}