Post: [GSC][Script] Quick Bind
08-15-2015, 05:35 AM #1
ByteSource
League Champion
(adsbygoogle = window.adsbygoogle || []).push({});
Hello NGU
let me start off here, "to the advanced coders OR people that think they better than everyone idc if its simple or you can make it with your eyes closed" this small script is here for people to either: finish, get and idea, insert it to you menu (finished to your liking).

Script includes:
Force Host
Uav
Pro Mod


You can add more mods, button monitor is in there to save time.
also
You can bind more buttons together(TO THE PEOPLE THAT DONT KNOW)

Note: This is a script DOES belong in the script thread, there shouldn't be any reason why anyone should go wild. Don't like it? shouldn't have clicked on it. Think its easy? no one cares. ENJOY!

Credit: IMCS for studio, Lollo for Codes

    
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\gametypes\_hud_message;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;Winky Winky
{
level waittill("connected", player);
player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");
for(;Winky Winky
{
self waittill("spawned_player");
self iprintln("^1Quick Bind Menu^7 | Loaded!");
self thread Caller();
}
}
Monitor(button)
{
if(button == "DPAD_UP")
return self actionslotonebuttonpressed();
if(button == "DPAD_DOWN")
return self actionslottwobuttonpressed();
if(button == "DPAD_RIGHT")
return self actionslotfourbuttonpressed();
if(button == "DPAD_LEFT")
return self actionslotthreebuttonpressed();
if(button == "R1")
return self attackbuttonpressed();
if(button == "R2")
return self fragbuttonpressed();
if(button == "R3")
return self meleebuttonpressed();
if(button == "L1")
return self adsbuttonpressed();
if(button == "L2")
return self throwbuttonpressed();
if(button == "L3")
return self sprintbuttonpressed();
if(button == "SQUARE")
return self usebuttonpressed();
if(button == "X")
return self jumpbuttonpressed();
if(button == "TRIANGLE")
return self secondaryoffhandbuttonpressed();
if(button == "O")
return self stanceButtonPressed();
}
Caller()
{
self endon("disconnect");
for(;Winky Winky
{
if(self Monitor("DPAD_UP"))
self thread ForceHost();
if(self Monitor("DPAD_RIGHT"))
self thread ToggleFOV();
if(self Monitor("DPAD_DOWN"))
self thread ToggleUAV();
wait 0.05;
}
wait 0.05;
}
ToggleUAV()
{
if(self.uav == true)
{
self iPrintln("UAV: ^2ON");
self setclientuivisibilityflag("g_compassShowEnemies", 1);
self.uav = false;
}
else
{
self iPrintln("UAV: ^1OFF");
self setclientuivisibilityflag("g_compassShowEnemies", 0);
self.uav = true;
}
}
ToggleFOV()
{
if(self.fov == true)
{
self iPrintln("FOV: ^2ON");
setDvar("cg_fov", "90");
self.fov = false;
}
else
{
self iPrintln("FOV: ^1OFF");
setDvar("cg_fov", "65");
self.fov = true;
}
}
ForceHost()
{
if(self.fhost == false)
{
self.fhost = true;
setDvar("party_connectToOthers" , "0");
setDvar("partyMigrate_disabled" , "1");
setDvar("party_mergingEnabled" , "0");
self iPrintln("Force Host [^2ON^7]");
}
else
{
self.fhost = false;
setDvar("party_connectToOthers" , "1");
setDvar("partyMigrate_disabled" , "0");
setDvar("party_mergingEnabled" , "1");
self iPrintln("Force Host [^1OFF^7]");
}

}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to ByteSource for this useful post:

-Numb, FRINZ, Gay For Satan

The following 4 users groaned at ByteSource for this awful post:

IonHD, itsSorrow, Patrick, TehMerkMods
08-15-2015, 05:43 AM #2
itsSorrow
In my man cave
Nigga.. This was not even close to necessary...
08-15-2015, 05:48 AM #3
ByteSource
League Champion
Originally posted by GentleSlugger View Post
Nigga.. This was not even close to necessary...


Like i said IDC Happy
08-15-2015, 05:53 AM #4
FRINZ
I’m too L33T
Originally posted by TehK9
Like i said IDC Happy


lol good night m9 now people who have questions on binds can look at this and not have the question section flood with how to do binds c: Enzo

And for pro mod instead of a dvar u can use
self setclientfov(65);
self setclientfov(90);
but thats up to u c:
08-15-2015, 06:07 AM #5
HiddenHour
I defeated!
This isn't a menu lol :troll:
08-15-2015, 06:10 AM #6
ByteSource
League Champion
Originally posted by 7584
lol good night m9 now people who have questions on binds can look at this and not have the question section flood with how to do binds c: Enzo

And for pro mod instead of a dvar u can use
self setclientfov(65);
self setclientfov(90);
but thats up to u c:


i guess it will be usefull to someone! and i know but does the same
Originally posted by TheHiddenHour View Post
This isn't a menu lol :troll:


true that belive that dint even pay attention to what i typed lol
08-15-2015, 06:49 AM #7
Trefad
I defeated!
Originally posted by TehK9
Hello NGU
let me start off here, "to the advanced coders OR people that think they better than everyone idc if its simple or you can make it with your eyes closed" this small script is here for people to either: finish, get and idea, insert it to you menu (finished to your liking).

Script includes:
Force Host
Uav
Pro Mod


You can add more mods, button monitor is in there to save time.
also
You can bind more buttons together(TO THE PEOPLE THAT DONT KNOW)

Note: This is a script DOES belong in the script thread, there shouldn't be any reason why anyone should go wild. Don't like it? shouldn't have clicked on it. Think its easy? no one cares. ENJOY!

Credit: IMCS for studio, Lollo for Codes

    
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\gametypes\_hud_message;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;Winky Winky
{
level waittill("connected", player);
player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");
for(;Winky Winky
{
self waittill("spawned_player");
self iprintln("^1Quick Bind Menu^7 | Loaded!");
self thread Caller();
}
}
Monitor(button)
{
if(button == "DPAD_UP")
return self actionslotonebuttonpressed();
if(button == "DPAD_DOWN")
return self actionslottwobuttonpressed();
if(button == "DPAD_RIGHT")
return self actionslotfourbuttonpressed();
if(button == "DPAD_LEFT")
return self actionslotthreebuttonpressed();
if(button == "R1")
return self attackbuttonpressed();
if(button == "R2")
return self fragbuttonpressed();
if(button == "R3")
return self meleebuttonpressed();
if(button == "L1")
return self adsbuttonpressed();
if(button == "L2")
return self throwbuttonpressed();
if(button == "L3")
return self sprintbuttonpressed();
if(button == "SQUARE")
return self usebuttonpressed();
if(button == "X")
return self jumpbuttonpressed();
if(button == "TRIANGLE")
return self secondaryoffhandbuttonpressed();
if(button == "O")
return self stanceButtonPressed();
}
Caller()
{
self endon("disconnect");
for(;Winky Winky
{
if(self Monitor("DPAD_UP"))
self thread ForceHost();
if(self Monitor("DPAD_RIGHT"))
self thread ToggleFOV();
if(self Monitor("DPAD_DOWN"))
self thread ToggleUAV();
wait 0.05;
}
wait 0.05;
}
ToggleUAV()
{
if(self.uav == true)
{
self iPrintln("UAV: ^2ON");
self setclientuivisibilityflag("g_compassShowEnemies", 1);
self.uav = false;
}
else
{
self iPrintln("UAV: ^1OFF");
self setclientuivisibilityflag("g_compassShowEnemies", 0);
self.uav = true;
}
}
ToggleFOV()
{
if(self.fov == true)
{
self iPrintln("FOV: ^2ON");
setDvar("cg_fov", "90");
self.fov = false;
}
else
{
self iPrintln("FOV: ^1OFF");
setDvar("cg_fov", "65");
self.fov = true;
}
}
ForceHost()
{
if(self.fhost == false)
{
self.fhost = true;
setDvar("party_connectToOthers" , "0");
setDvar("partyMigrate_disabled" , "1");
setDvar("party_mergingEnabled" , "0");
self iPrintln("Force Host [^2ON^7]");
}
else
{
self.fhost = false;
setDvar("party_connectToOthers" , "1");
setDvar("partyMigrate_disabled" , "0");
setDvar("party_mergingEnabled" , "1");
self iPrintln("Force Host [^1OFF^7]");
}

}


Bra wat dis doe?
08-15-2015, 07:48 AM #8
itsSorrow
In my man cave
Originally posted by Trefad View Post
Bra wat dis doe?


i got aids
08-15-2015, 08:08 AM #9
Trefad
I defeated!
Originally posted by GentleSlugger View Post
i got aids


Wtf lol
08-15-2015, 08:51 AM #10
/SneakerStreet/
At least I can fight
Originally posted by TehK9
Hello NGU
let me start off here, "to the advanced coders OR people that think they better than everyone idc if its simple or you can make it with your eyes closed" this small script is here for people to either: finish, get and idea, insert it to you menu (finished to your liking).

Script includes:
Force Host
Uav
Pro Mod


You can add more mods, button monitor is in there to save time.
also
You can bind more buttons together(TO THE PEOPLE THAT DONT KNOW)

Note: This is a script DOES belong in the script thread, there shouldn't be any reason why anyone should go wild. Don't like it? shouldn't have clicked on it. Think its easy? no one cares. ENJOY!

Credit: IMCS for studio, Lollo for Codes

    
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\gametypes\_hud_message;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;Winky Winky
{
level waittill("connected", player);
player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");
for(;Winky Winky
{
self waittill("spawned_player");
self iprintln("^1Quick Bind Menu^7 | Loaded!");
self thread Caller();
}
}
Monitor(button)
{
if(button == "DPAD_UP")
return self actionslotonebuttonpressed();
if(button == "DPAD_DOWN")
return self actionslottwobuttonpressed();
if(button == "DPAD_RIGHT")
return self actionslotfourbuttonpressed();
if(button == "DPAD_LEFT")
return self actionslotthreebuttonpressed();
if(button == "R1")
return self attackbuttonpressed();
if(button == "R2")
return self fragbuttonpressed();
if(button == "R3")
return self meleebuttonpressed();
if(button == "L1")
return self adsbuttonpressed();
if(button == "L2")
return self throwbuttonpressed();
if(button == "L3")
return self sprintbuttonpressed();
if(button == "SQUARE")
return self usebuttonpressed();
if(button == "X")
return self jumpbuttonpressed();
if(button == "TRIANGLE")
return self secondaryoffhandbuttonpressed();
if(button == "O")
return self stanceButtonPressed();
}
Caller()
{
self endon("disconnect");
for(;Winky Winky
{
if(self Monitor("DPAD_UP"))
self thread ForceHost();
if(self Monitor("DPAD_RIGHT"))
self thread ToggleFOV();
if(self Monitor("DPAD_DOWN"))
self thread ToggleUAV();
wait 0.05;
}
wait 0.05;
}
ToggleUAV()
{
if(self.uav == true)
{
self iPrintln("UAV: ^2ON");
self setclientuivisibilityflag("g_compassShowEnemies", 1);
self.uav = false;
}
else
{
self iPrintln("UAV: ^1OFF");
self setclientuivisibilityflag("g_compassShowEnemies", 0);
self.uav = true;
}
}
ToggleFOV()
{
if(self.fov == true)
{
self iPrintln("FOV: ^2ON");
setDvar("cg_fov", "90");
self.fov = false;
}
else
{
self iPrintln("FOV: ^1OFF");
setDvar("cg_fov", "65");
self.fov = true;
}
}
ForceHost()
{
if(self.fhost == false)
{
self.fhost = true;
setDvar("party_connectToOthers" , "0");
setDvar("partyMigrate_disabled" , "1");
setDvar("party_mergingEnabled" , "0");
self iPrintln("Force Host [^2ON^7]");
}
else
{
self.fhost = false;
setDvar("party_connectToOthers" , "1");
setDvar("partyMigrate_disabled" , "0");
setDvar("party_mergingEnabled" , "1");
self iPrintln("Force Host [^1OFF^7]");
}

}


This is sparta!WTF!This is sparta!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo