Hey, before I start writing this I did do research and didn't find much.
Ok, I like to edit mods to my personally tastes since I'm not very good at gsc coding. So I need some help on some things/peices of code... I'll start with the first peice.
Code:
doHostcheck()
{
if (self.name=="*********" || self.name=="*********" || self.name=="*********")
{
self thread doKillstreakcycle();
self thread givePerk();
self thread doInvis();
self thread doUfo();
self takeWeapon("flash_grenade_mp");
self takeWeapon("smoke_gernade_mp");
self takeWeapon("concussion_gernade_mp");
self freezeControlsWrapper( false );
self setclientDvar( "cg_objectiveText", "");
self resetspreadoverride();
wait 3;
self thread maps\mp\gametypes\_hud_message::hintMessage("Press ^2[{+actionslot 2}] ^7for Killstreaks!");
self thread maps\mp\gametypes\_hud_message::hintMessage("Press ^2[{+actionslot 1}] ^7for every Perk!");
self thread maps\mp\gametypes\_hud_message::hintMessage("Press ^2[{+smoke}] ^7for Invisiblity!");
self thread maps\mp\gametypes\_hud_message::hintMessage("Press ^2[{+actionslot 3}] ^7for UFO Mode!");
1. About that part... My invisible key is +smoke and uses a gernade. Well I want to get rid of all the gernades for the sake of time... I tried at least 2-3 things but either ends up in syntax error or nothing happens at all. A code for this would be nice
Code:
givePerk()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "[{+actionslot1}]", "+actionslot 1" );
while ( 1 )
{
self waittill( "[{+actionslot1}]" );
self maps\mp\perks\_perks::givePerk("specialty_fastreload");
self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");
self maps\mp\perks\_perks::givePerk("specialty_fastsprintrecovery");
self maps\mp\perks\_perks::givePerk("specialty_improvedholdbreath");
self maps\mp\perks\_perks::givePerk("specialty_fastsnipe");
self maps\mp\perks\_perks::givePerk("specialty_selectivehearing");
self maps\mp\perks\_perks::givePerk("specialty_heartbreaker");
self maps\mp\perks\_perks::givePerk("specialty_coldblooded");
self maps\mp\perks\_perks::givePerk("specialty_quickdraw");
self maps\mp\perks\_perks::givePerk("specialty_marathon");
self maps\mp\perks\_perks::givePerk("specialty_extendedmags");
self maps\mp\perks\_perks::givePerk("specialty_scavenger");
self maps\mp\perks\_perks::givePerk("specialty_jumpdive");
self maps\mp\perks\_perks::givePerk("specialty_extraammo");
self maps\mp\perks\_perks::givePerk("specialty_bulletdamage");
self maps\mp\perks\_perks::givePerk("specialty_quieter");
self maps\mp\perks\_perks::givePerk("specialty_bulletpenetration");
self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");
self maps\mp\perks\_perks::givePerk("specialty_rof");
self maps\mp\perks\_perks::givePerk("specialty_holdbreath");
self maps\mp\perks\_perks::givePerk("specialty_detectexplosive");
self maps\mp\perks\_perks::givePerk("specialty_lightweight");
self maps\mp\perks\_perks::givePerk("specialty_spygame");
self maps\mp\perks\_perks::givePerk("specialty_parabolic");
self thread maps\mp\gametypes\_hud_message::hintMessage("You owe ^1Myndflame ^7for this!");
Two things here:
1. Sometimes it doesn't give every perk that we are supposed to get... for example... I'll get ninja but not "No_falling" thing... commando pro you can say. Isn't that what jumpdive is your am I completly wrong and need to go back to school.
2. Everytime I, for example. Die. It rids of all of my perks and gets annoying having to press N every single time. Not only that but if I use one man army as well, It rids of all the perks, I tried removing the endon ( "death" ) thing and all it does is show the message an extra time then the last time(Ex. Press it first time. pops up once, press it again 2 minutes later.. message pops up twice.. etc.) and the perks aren't given back to me.
Any fixes to this would be helpful.
Oh yes...It may seem like that I am asking alot

, but one last thing.
Code:
doInvis()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "[{+smoke}]", "+smoke" );
while ( 1 )
{
self waittill( "[{+smoke}]" );
self hide();
self thread maps\mp\gametypes\_hud_message::hintMessage("You're invisible for two minutes!");
wait 60;
self thread maps\mp\gametypes\_hud_message::hintMessage("One minute remains!");
wait 50;
self iPrintlnBold("^1 10");
wait 1;
self iPrintlnBold("^1 9");
wait 1;
self iPrintlnBold("^1 8");
wait 1;
self iPrintlnBold("^1 7");
wait 1;
self iPrintlnBold("^1 6");
wait 1;
self iPrintlnBold("^1 5");
wait 1;
self iPrintlnBold("^1 4");
wait 1;
self iPrintlnBold("^1 3");
wait 1;
self iPrintlnBold("^1 2");
wait 1;
self iPrintlnBold("^1 1");
wait 1;
self iPrintlnBold("^1 Times Up! You're Visible!");
self show();
}
}
The code is perfectly fine, But my two friends say they don't want to stay invisible for only 2 minutes, just when they want to go invisible and do not.
Is this a way I can make it so when I press... The smoke button for example, it would toggle on and off? Would save space and make them happy.
Sorry for asking so many questions... Just need help when it comes to these things.