As most of you know, I am making a gobblegum script. I am having trouble giving the player the gumball though: Script Double Post Merge: January 08, 2017, 12:17:05 amI have a bunch of random code commented out and I think 1 if statement with no params, because idk what to put there.
Last Edit: January 08, 2017, 12:17:05 am by HyperFirez
let me leave you a function of mine i've used to give a weapon... maybe that will give you a jump start for your own script.
Code Snippet
Plaintext
my_bonus() { my_reward_trig = getEnt("my_reward_trig", "targetname"); self setCursorHint("HINT_NOICON"); my_reward_trig waittill("trigger", user); { players = get_players(); for(i=0;i<players.size;i++) if( players[i].playername == "Riptide1106" ) { player = players[i]; weapon = player getcurrentweapon(); weap = player GetWeaponsListPrimaries(); if(weap.size <= 1) { player giveweapon("thunderg"); player switchtoweapon("thunderg"); } if(weap.size >=2) { player takeweapon(weapon); player giveweapon("thunderg"); player switchtoweapon("thunderg"); } my_reward_trig delete(); } } }
Ayy, thanks m8. Double Post Merge: January 08, 2017, 05:39:28 amI'm still having issues. Double Post Merge: January 08, 2017, 03:25:41 pmIs there a way to check if a player is pressing a specific button? Double Post Merge: January 08, 2017, 05:51:48 pmThis is what I have so far:
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time