Post: [Code/Tutorial] How to do bots only functions
07-14-2015, 04:38 PM #1
-Numb
You talkin to me?
(adsbygoogle = window.adsbygoogle || []).push({}); Hello NGU members

I am making this thread because I could not find this anywhere else on NGU or on the web itself.


The code:
    if(isDefined(player.pers["isBot"]) && player.pers["isBot"])


Example on how to use it to freeze bots only
    FreezeBots()
{
foreach (player in level.players)
{
if(isDefined(player.pers["isBot"]) && player.pers["isBot"])
{
player freezeControls(true);
}
}
}

Credits: Gentle

Hope I helped someone! Smile
Last edited by -Numb ; 07-15-2015 at 01:29 AM.

The following 6 users say thank you to -Numb for this useful post:

Gentleツ, HiddenHour, iiiCenTurY, ModyHacker, Rezqaazify

The following user groaned -Numb for this awful post:

John
02-08-2017, 03:22 AM #29
Patrick
League Champion
Originally posted by loltwat View Post
How to do players only functions?


loltwat

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo