Raised This Month: $51 Target: $400
 12% 

[TF2] Shop Credit Mod + Tweaks


Post New Thread Reply   
 
Thread Tools Display Modes
TheSpyHunter
Senior Member
Join Date: Jul 2009
Old 11-04-2009 , 06:40   Re: Credit/ Candy Mod: Tweaks
Reply With Quote #11

You can get the original version from here ->

http://forums.alliedmods.net/showpos...&postcount=446
__________________
TheSpyHunter is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 11-04-2009 , 11:20   Re: Credit/ Candy Mod: Tweaks
Reply With Quote #12

Cool
__________________
DarthNinja is offline
DeathMaster
AlliedModders Donor
Join Date: Mar 2009
Old 11-05-2009 , 22:05   Re: Credit/ Candy Mod: Tweaks
Reply With Quote #13

Quote:
Originally Posted by TheSpyHunter View Post
Target your player to give them the effect bought from the buymenu?

Not sure if this is what you ment, but I will look into it.

Yea thats the idea. I added evil rocket to my server and added it to the buy menu but the only option that works is to kill everyone playing. Also if you had a targeting command that would bring up a player menu to select your victim you wouldnt be limited to the slay command built into the funpack. you could use explode or whatever else that is creative.
DeathMaster is offline
DeathMaster
AlliedModders Donor
Join Date: Mar 2009
Old 11-09-2009 , 01:00   Re: Credit/ Candy Mod: Tweaks
Reply With Quote #14

Heres a challenge for you that should be pretty simple. I want to add buying those explosive pumpkins to the buy menu. Is that at all possible? There is another plugin where you can spawn them http://forums.alliedmods.net/showthr...=107807&page=2 but the credit plugin doesnt like the commands because I assume its not targeted at anything.
DeathMaster is offline
TheSpyHunter
Senior Member
Join Date: Jul 2009
Old 11-09-2009 , 06:26   Re: Credit/ Candy Mod: Tweaks
Reply With Quote #15

Hi DeathMaster,

Edited Pumpkin Code ->

The Evil Pumpkin Hat!

In the buymenu.txt

sm_pumpkin @me
Spawns a pumpkin at your aim.

sm_buypumpkin $
Displays a menu to buyer of who to give the evil pumpkin hat.

Attached code, tested and works! Yay!
Attached Files
File Type: sp Get Plugin or Get Source (pumpkin.sp - 581 views - 4.3 KB)
__________________

Last edited by TheSpyHunter; 11-09-2009 at 09:33.
TheSpyHunter is offline
DeathMaster
AlliedModders Donor
Join Date: Mar 2009
Old 11-09-2009 , 07:03   Re: Credit/ Candy Mod: Tweaks
Reply With Quote #16

Quote:
Originally Posted by TheSpyHunter View Post
Hi DeathMaster,

Stll working on the target menu selection.

In the mean time here is an editted version of the "pumpkin spawner" I have on my server which worked on the shop.

sm_pumpkin |
Will spawn a pumpkin at aim of buyer.

sm_givepumpkin |
Will display a menu of who to spawn a pumpkin for.

See attached pumkpin code.
Sweet you rock dude!!

So now you understand the predicament with the targeting... you cant run any commands like sm_pumpkin or sm_melee without following it with targeting to actually have it work... With that said is it also possible to remove the need for targeting at all or have a character to skip targeting for the odd commands?

*** Just tested this ***
sm_pumpkin | doesnt spawn a pumpkin @aim
sm_givepumpkin | doesnt display a menu of who to spawn for but instead it spawns @aim

Can you double check the commands for the buy menu?

Last edited by DeathMaster; 11-09-2009 at 07:19. Reason: tested, not working
DeathMaster is offline
DeathMaster
AlliedModders Donor
Join Date: Mar 2009
Old 11-09-2009 , 08:57   Re: Credit/ Candy Mod: Tweaks
Reply With Quote #17

Quote:
Originally Posted by TheSpyHunter View Post
New version below:

sm_buypumpkin |
This should now display a menu to whoever envokes that command.
Both the new and the old commands work in console, they both however dont work through the buy menu.

Its not really needed anyways, all I really wanted was the ability to buy a pumpkin for yourself. Buying it for someone else would only be useful if it spawned at their feet hehehe.

Thanks again!
DeathMaster is offline
TheSpyHunter
Senior Member
Join Date: Jul 2009
Old 11-09-2009 , 09:35   Re: Credit/ Candy Mod: Tweaks
Reply With Quote #18

Edited, Tested and working.

It's pretty damn evil!

Download the 100% working version here ->
http://forums.alliedmods.net/showpos...0&postcount=15
__________________
TheSpyHunter is offline
DeathMaster
AlliedModders Donor
Join Date: Mar 2009
Old 11-09-2009 , 22:55   Re: Credit/ Candy Mod: Tweaks
Reply With Quote #19

Quote:
Originally Posted by TheSpyHunter View Post
Hi DeathMaster,

Edited Pumpkin Code ->

The Evil Pumpkin Hat!

In the buymenu.txt

sm_pumpkin @me
Spawns a pumpkin at your aim.

sm_buypumpkin $
Displays a menu to buyer of who to give the evil pumpkin hat.

Attached code, tested and works! Yay!
You must have edited your credit plugin because neither of those commands work at all in my buy menu...
DeathMaster is offline
TheSpyHunter
Senior Member
Join Date: Jul 2009
Old 11-10-2009 , 13:08   Re: Credit/ Candy Mod: Tweaks
Reply With Quote #20

$ is the replacement for Name in the candyscript.sp

It's in the original so no idea why its not working for you.
__________________
TheSpyHunter is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode