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, 09:33 AM #11
xDebugKiller
Climbing up the ladder
You must login or register to view this content.
08-15-2015, 08:18 PM #12
Gay For Satan
DevouringHeavens
Good example for those who struggle with learning how to use binds and whatnot. I know I sure did when I first started messing around with GSC.

The following user thanked Gay For Satan for this useful post:

ByteSource
08-16-2015, 03:23 AM #13
when i use this online other people can use it too why is that how can i not let them to have it too
08-16-2015, 03:34 AM #14
ByteSource
League Champion
why would you use this online? lolz,
08-16-2015, 04:36 AM #15
itsSorrow
In my man cave
Originally posted by VeRxGaming View Post
when i use this online other people can use it too why is that how can i not let them to have it too


if(self isHost())

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo