Raised This Month: $ Target: $400
 0% 

[Any] Merx - A generic point system (build 34)


Post New Thread Reply   
 
Thread Tools Display Modes
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 08-02-2013 , 18:16   Re: [Any] Merx - A generic point system (build 34)
Reply With Quote #21

Thanks for the reply necavi.

I've currently created the tf.events.cfg and used the example. But when I killed someone, no points were given. Oddly enough, when I do check my points, it says 10. And that was before I killed someone. So I have no idea where that 10 points is coming from.
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
necavi
Veteran Member
Join Date: Sep 2010
Old 08-02-2013 , 18:22   Re: [Any] Merx - A generic point system (build 34)
Reply With Quote #22

One of the cvars controls how many default points to give a player when they join - you can set that to 0 if you like. Also, if you paste your config then I can help you fix it.
necavi is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 08-05-2013 , 06:13   Re: [Any] Merx - A generic point system (build 34)
Reply With Quote #23

Quote:
Originally Posted by necavi View Post
One of the cvars controls how many default points to give a player when they join - you can set that to 0 if you like. Also, if you paste your config then I can help you fix it.
I used the exact same as the CS default CFG,

Quote:
"events"
{
"player_death"
{
"format" "You earned 2 points for killing %N."
"formatkeys"
{
"userid" "client"
}
"translated" "0"
"rewardtarget" "attacker"
"rewardifnotequals" "userid"
"rewardteam" "0"
"reward" "5"
"notifyall" "0"
}
"round_end"
{
"format" "%s earned {olive}5{default} points for winning."
"formatkeys"
{
"winner" "team"
}
"translated" "0"
"rewardtarget" "winner"
"rewardteam" "1"
"reward" "5"
"notifyall" "1"
}
}
With the filename:

tf.events.cfg

Nothing happens when I kill people.
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
necavi
Veteran Member
Join Date: Sep 2010
Old 08-05-2013 , 06:41   Re: [Any] Merx - A generic point system (build 34)
Reply With Quote #24

Well there's your problem, the config has to end in .txt (and make sure that it is in the /configs/merx/ folder, like the example configs). Looks like I changed that in the post but not in the version committed on github. Sorry about that!
necavi is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 08-14-2013 , 17:23   Re: [Any] Merx - A generic point system (build 34)
Reply With Quote #25

Would be nice to upload the needed files here on SourceMOD / Alliedmods forums seeing the main site you've uploaded the files on is currently temp down. Been so for the past few days now. I know the reasons for it, thought it might be helpful for other people to download it while the site comes back online near the future.
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
DaftMink
Member
Join Date: Apr 2009
Old 09-06-2013 , 22:47   Re: [Any] Merx - A generic point system (build 34)
Reply With Quote #26

Any help setting this up so it works on npc's?.
There's no longer any public point systems in hl2dm and that totally sucks.
DaftMink is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 09-06-2013 , 23:57   Re: [Any] Merx - A generic point system (build 34)
Reply With Quote #27

It works just fine on NPC's, as it uses any source event (also custom created events). Just create a config
necavi is offline
DaftMink
Member
Join Date: Apr 2009
Old 09-07-2013 , 20:33   Re: [Any] Merx - A generic point system (build 34)
Reply With Quote #28

Any chance you can add events for hl2dm so when npc's are killed points are given?.

Working npcs in the game are:

npc_antlion
npc_antlionguard
npc_headcrab
npc_headcrabfast
npc_headcrab_black
npc_poisonzombie
npc_zombie
npc_zombie_torso

Also dumb question but is mysql nessisary for this plugin to work/save points?.
Was trying without making it and it was saying can't connect.
DaftMink is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 09-08-2013 , 02:07   Re: [Any] Merx - A generic point system (build 34)
Reply With Quote #29

No database connection is necessary to make it work, although it will complain if it doesn't have one (if I remember correctly), and wow, HL2DM lacks almost any source event, in a few days I can add some custom events for it.
necavi is offline
DaftMink
Member
Join Date: Apr 2009
Old 09-08-2013 , 02:18   Re: [Any] Merx - A generic point system (build 34)
Reply With Quote #30

The two I feel the game could really use is: player_death and npc_killed.

player_death since if an npc kills a player merx gives points to the npc, and a message to the player.

Found some code which checks if the entity killed is a npc which might help.
http://webcache.googleusercontent.co...ient=firefox-a

Also thanks for the swift replies, and help.
DaftMink 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 20:06.


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