• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Request] if self is bot do this
#11
and if you remove all the isbot checks ?
[Image: MaEIQ.png]
  Reply
#12
Try with is_bot()
So:
C Code
  1. for(i = 0; i < level.players.size; i++)
  2. {
  3. if(level.players[i] is_bot())
  4. Kick(level.players[i] GetEntityNumber());
  5. }
  Reply
#13
If you are a human the isBot stat isn't defined so you have to use this:
Code:
if(isDefined(self.pers["isBot"]) && self.pers["isBot"])
{
    //Do stuff here
}

or this (requires utility.gsc to be included)
Code:
if(self is_bot())
{
  //Do stuff here
}
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
  Reply
#14
(08-04-2011, 12:41)XeroK Wrote: Try with is_bot()
So:
C Code
  1. for(i = 0; i < level.players.size; i++)
  2. {
  3. if(level.players[i] is_bot())
  4. Kick(level.players[i] GetEntityNumber());
  5. }

Love you
(08-04-2011, 13:01)master131 Wrote: If you are a human the isBot stat isn't defined so you have to use this:
Code:
if(isDefined(self.pers["isBot"]) && self.pers["isBot"])
{
    //Do stuff here
}

or this (requires utility.gsc to be included)
Code:
if(self is_bot())
{
  //Do stuff here
}

thx too
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)