Raised This Month: $ Target: $400
 0% 

[TF2] Player credits and rewards


Post New Thread Closed Thread   
 
Thread Tools Display Modes
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-06-2009 , 04:08   Re: [TF2] Player credits and rewards
#91

Quote:
Originally Posted by MoggieX View Post
How about these two for candy?

- Temporary Invisiablilty, say 30 seconds or so
- Immunity from being stabbed by Spies for N seconds or until death by other means

Matt
Invisibility is sm_invis, and I'm using that (well, not really, until I can get this working).

Does anyone even have this working, or is it just me?
noodleboy347 is offline
Gachl
BANNED
Join Date: Feb 2009
Old 07-06-2009 , 04:52   Re: [TF2] Player credits and rewards
#92

Quote:
Originally Posted by Antithasys View Post
Good Job.
Thanks for approving!

Everyone else, I'm still working on it, no hurries plz ^__^

noodleboy, if there's really no error in the server console go to line 5 and change
Code:
//#define DEBUG "1"
to
Code:
#define DEBUG "1"
and compile it and then try it again and check the server console for this output after you said !buy:
Code:
Someone wants to buy something
please tell me if this doesnt show up. Make sure you are connected as client to the server and you are using the normal say command (not team_say).
Gachl is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-06-2009 , 08:19   Re: [TF2] Player credits and rewards
#93

Quote:
Originally Posted by Gachl View Post
Thanks for approving!

Everyone else, I'm still working on it, no hurries plz ^__^

noodleboy, if there's really no error in the server console go to line 5 and change
Code:
//#define DEBUG "1"
to
Code:
#define DEBUG "1"
and compile it and then try it again and check the server console for this output after you said !buy:
Code:
Someone wants to buy something
please tell me if this doesnt show up. Make sure you are connected as client to the server and you are using the normal say command (not team_say).
Did that, typed !buy, nothing in the console.
noodleboy347 is offline
Gachl
BANNED
Join Date: Feb 2009
Old 07-06-2009 , 08:28   Re: [TF2] Player credits and rewards
#94

-->PM
Gachl is offline
Mems
Member
Join Date: May 2009
Old 07-06-2009 , 12:56   Re: [TF2] Player credits and rewards
#95

So the rewards are basically limited only to SM plugins and commands? How could I add it so a player can buy temporary antigravity? Sorry, I'm a bit dumb.
Mems is offline
wylker
Junior Member
Join Date: May 2009
Old 07-06-2009 , 13:23   Re: [TF2] Player credits and rewards
#96

This looks awesome, I will try it out for sure.
wylker is offline
Gachl
BANNED
Join Date: Feb 2009
Old 07-06-2009 , 13:35   Re: [TF2] Player credits and rewards
#97

Mems, no it's limited by every command you can run on the server (other MM: S addons or mani or amx etc...). If you would add temporary antigravity you'd have to search for a plugin that can do that, then you can simply add its command to the buymenu.cfg and there you go!
If such a plugin doesnt exist ask someone if he can do it or request it here, maybe I'll do it.
Gachl is offline
Sexual Harassment Panda
Veteran Member
Join Date: Dec 2008
Location: San Diego, CA
Old 07-06-2009 , 15:28   Re: [TF2] Player credits and rewards
#98

Quote:
Originally Posted by Mems View Post
So the rewards are basically limited only to SM plugins and commands? How could I add it so a player can buy temporary antigravity? Sorry, I'm a bit dumb.
TF2 has a built in gravity command - sv_gravity. I think it can be targeted at a player with the @ statement. It would look like this in the buymenu.
Code:
"buymenu"
{
    "1"
    {
        "title"    "Low Gravity"
        "price"   "10"
        "time"    "30"
        "oncmd" "sv_gravity 200 #@ "
        "offcmd" "sv_gravity 800 #@ "
    }
}
Congratulations on getting approved, and good luck with the new additions to the plugin.
__________________

Last edited by Sexual Harassment Panda; 07-06-2009 at 15:30.
Sexual Harassment Panda is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 07-06-2009 , 15:43   Re: [TF2] Player credits and rewards
#99

sv_gravity is a server var man. id seriously doubt that works.
retsam is offline
Sexual Harassment Panda
Veteran Member
Join Date: Dec 2008
Location: San Diego, CA
Old 07-06-2009 , 15:45   Re: [TF2] Player credits and rewards
#100

I figured that would work, as the default admin menu has player specific gravity. Must be a plugin built into sourcemod in that case, in which case it shouldn't be too hard to find I'd hope.
__________________
Sexual Harassment Panda is offline
Closed Thread



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 23:50.


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