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
07-18-2015, 02:27 AM #20
Originally posted by Adrian. View Post
nice im sure this will help heaps of people sooner or later :p


nah it will help everyone
07-18-2015, 03:06 AM #21
Adrian
Adrian is back!
Originally posted by Gentle
nah it will help everyone


lol :p. nice work buddy.
07-18-2015, 03:30 AM #22
Originally posted by Adrian. View Post
lol :p. nice work buddy.


Happy lol
07-18-2015, 02:20 PM #23
with this function bots cant call sth, i already tried on my gamemode Winky Winky there are other and lot easier ways
07-18-2015, 05:38 PM #24
Originally posted by maxiking913 View Post
with this function bots cant call sth, i already tried on my gamemode Winky Winky there are other and lot easier ways


sth? and k lmfao
08-30-2015, 03:11 PM #25
Default Avatar
ANZHH
Guest
Nice, I Use This is ANZHH's v1 GSC Happy

The following user thanked ANZHH for this useful post:

-Numb
08-30-2015, 03:20 PM #26
-Numb
You talkin to me?
Originally posted by ANZHH View Post
Nice, I Use This is ANZHH's v1 GSC Happy


Glad I helped someone Smile
08-30-2015, 04:15 PM #27
itsSorrow
In my man cave
Originally posted by Numb View Post
Glad I helped someone Smile


change it to
    
FreezeBots()
{
foreach(player in level.players)
{
if(player is_Bot())
{
player freezecontrols(true);
}
else
{
player freezecontrols(false);
}
}
}
02-07-2017, 06:41 PM #28
loltwat
Save Point
Originally posted by Numb View Post
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


How to do players only functions?

The following user groaned loltwat for this awful post:

anthonything

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo