Post: gsc code for bots
05-07-2015, 02:45 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); hi all so i want to know if someone knows gsc code for bots (only bots no for other players) like freeze all bots, teleport bots to crosshair thx in advance !
05-07-2015, 03:00 PM #2
Originally posted by Rezqaazify View Post
hi all so i want to know if someone knows gsc code for bots (only bots no for other players) like freeze all bots, teleport bots to crosshair thx in advance !


Check this thread out it might help you find what you want. You must login or register to view this content.

The following user thanked Coffee Bean for this useful post:

Rezqaazify
05-07-2015, 03:06 PM #3
Originally posted by HooliganMoDz View Post
Check this thread out it might help you find what you want. You must login or register to view this content.


humm ok thanks i will search Smile
05-07-2015, 03:33 PM #4
Originally posted by HooliganMoDz View Post
Check this thread out it might help you find what you want. You must login or register to view this content.


i dont found it :c
05-07-2015, 03:36 PM #5
Buqsy
Bounty hunter
Lol... bruh

doBots(a)
{
for(i = 0; i < a; i++)
{
self thread maps\mp\bots\_bot::spawn_bot("autoassign");
wait 1;
}
}

self add_option("Admin Menu", "Spawn a Bot", ::doBots, 1);
05-07-2015, 03:42 PM #6
Originally posted by Buqsy View Post
Lol... bruh

doBots(a)
{
for(i = 0; i < a; i++)
{
self thread maps\mp\bots\_bot::spawn_bot("autoassign");
wait 1;
}
}

self add_option("Admin Menu", "Spawn a Bot", ::doBots, 1);


i didnt ask the code for spawn bot lmao, only freeze bots, and teleport to crosshair
05-07-2015, 03:43 PM #7
Damn :(
05-07-2015, 04:43 PM #8
iRnZ
NextGenUpdate Elite
Originally posted by Rezqaazify View Post
hi all so i want to know if someone knows gsc code for bots (only bots no for other players) like freeze all bots, teleport bots to crosshair thx in advance !


i only know kick all bots only if u need it

kickAllBots()
{
foreach(player in level.players)
{
if(isDefined (player.pers["isBot"]) && player.pers["isBot"])
kick(player getEntityNumber(), "EXE_PLAYERKICKED");
}
}

that it and mybe he help u for do other things keep trying <3

The following user thanked iRnZ for this useful post:

Rezqaazify
05-07-2015, 05:29 PM #9
Buqsy
Bounty hunter
Originally posted by Rezqaazify View Post
i didnt ask the code for spawn bot lmao, only freeze bots, and teleport to crosshair


Oh shit mb maybe I should have read the thread... xD
05-07-2015, 08:42 PM #10
//Freeze Bots
freezeBots()
{
foreach(player in level.players)

if(isDefined(player.pers["isBot"])&& player.pers["isBot"])
if(player.Frozen == "^2On") {
player.Frozen = "^1Off";
player freezeControls(false);
} else {
player.Frozen = "^2On";
player freezeControls(true);
}
self iPrintln("Bots Frozen:" + player.Frozen);
}
//Spawn Bots
//"Spawn 6 Bot", ::spawnBots, 6);
spawnBots(num)
{
level.spawningBots=true;
foreach(z in level.players) closemenu();
for(i=0;i < num;i++)
{
maps/mp/bots/_bot::spawn_bot("autoassign");
wait 0.1;
}
level.spawningBots=false;
self iPrintLn(num + " bot(s)spawned");
}
//Kick All the Bots
kickAllBots()
{
foreach(player in level.players)
{
if(isDefined(player.pers["isBot"])&& player.pers["isBot"])
kick(player getEntityNumber(),"EXE_PLAYERKICKED");
}
}
//Teleport Bots To Crosshair
TeleBots()
{
foreach(player in level.players)
{
if(isDefined(player.pers["isBot"])&& player.pers["isBot"])
player setorigin(bullettrace(self gettagorigin("j_head"), self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 1000000, 0, self)["position"]);
self iPrintlnbold("Bots ^2Teleported!");
}

}

The following 4 users say thank you to XDrifteer7 for this useful post:

iRnZ, neb1998, Rezqaazify, Vote

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo