View Full Version : How do limit one sentry!!
goddzila
15th January 2014, 20:03
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..
Tally
15th January 2014, 20:15
// Moved, to correct forum.
YuriJurek
15th January 2014, 20:37
Is it really that hard to make a variable based If, else statement?
On player connect set
self.isUsingSentry = False;
And then
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].
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.