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

Mod Points


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Exolent[jNr] (178)
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 11-24-2008 , 10:41   Mod Points
Reply With Quote #1

Mod Points


Description
This is actually one kind of combination for rank, stats and top15, but the main thing is that it uses points,
not kills or deaths. This is meant to be used on servers that have some kind of mod plugin.
For example in HNS: Terrorists don't normally get any kills but with this plugin you can make them get points.
There is also other cvars for both teams. So, if you want to give points in round win only to Ts, it's possible.


Client commands
/teampoints - Shows your teammates' points.
/enemypoints - Shows your enemies' points.
/toppoints - Shows the players' points that have the most points.

Everytime you hold your score table open, you can also see your own points. They are shown down-left corner near your
healths.


Admin commands
mp_set_points <alltime points> <points got in that map> <name>
mp_give_points <points> <name>
mp_take_points <points> <name>

Acess to admin commands is ADMIN_KICK. You can change it by loading .sma and changing the default "ADMIN_MP".


Cvars and defaults
mp_show_team "1"
-Are players allowed to see their teammates' points?
mp_show_enemy "1"
-Are players allowed to see their enemies' points?
mp_show_top "1"
-Are players allowed to see top players' points?

How many points do the players get when they
mp_t_roundwin "0" -win round
mp_ct_roundwin "0"
mp_t_roundsurvive "0" -stay alive until the round ends (no need to win the round)
mp_ct_roundsurvive "0"
mp_t_kill "1" -kill someone
mp_ct_kill "1"

How many points do the players lose when they
mp_t_roundlose "0" -lose round
mp_ct_roundlose "0"
mp_t_dead "1" -get killed by other team
mp_ct_dead "1"
mp_suicide "1" -make a suicide(kill self or die to fall damage)


Installation
Plugin requires Fakemeta and nvault modules.


Information
If you have any information how the plugin works with other mods or mod plugins, feel free to post.
For now: Tested only with Counter-Strike 1.6


Credits
Got help in saving from Xp mod tutorial that was originally coded by fxfighter
Attached Files
File Type: sma Get Plugin or Get Source (Mod_points.sma - 3390 views - 15.9 KB)

Last edited by SnoW; 11-28-2008 at 16:28.
SnoW is offline
Send a message via MSN to SnoW
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-24-2008 , 13:16   Re: Mod Points
Reply With Quote #2

Install the same way that all plugins, just make sure you have enabled the following includes:
amxmodx
amxmisc
fakemeta
nvault

you should say like this:
You should have enabled fakemeta module.

because others are just includes.
__________________
xPaw is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 11-24-2008 , 13:20   Re: Mod Points
Reply With Quote #3

Well ye, I thought that whole Install thing is nothing meaning. Maybe I just take it away. Well, of course there can be some one who haven't enabled fakemeta.
SnoW is offline
Send a message via MSN to SnoW
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-24-2008 , 13:23   Re: Mod Points
Reply With Quote #4

As long as you mention that the Fakemeta and nVault modules need to be installed. You can safely remove that whole section if you do this.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 11-24-2008 , 14:43   Re: Mod Points
Reply With Quote #5

Okay, thanks for both of you. I think I still leave the Installation there, don't know where else to put it.
SnoW is offline
Send a message via MSN to SnoW
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 11-24-2008 , 16:14   Re: Mod Points
Reply With Quote #6

yea, i like the idea.. u can do a lot of combination with this plugin and other mods... rly like it, gj
Alucard^ is offline
Send a message via Skype™ to Alucard^
jaaaalot
Senior Member
Join Date: Oct 2008
Old 11-25-2008 , 07:18   Re: Mod Points
Reply With Quote #7

great plugin snow
btw:can i use the check_top part?
jaaaalot is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 11-25-2008 , 07:33   Re: Mod Points
Reply With Quote #8

Thanks. Of course you can.
SnoW is offline
Send a message via MSN to SnoW
Old 11-25-2008, 08:49
hleV
This message has been deleted by hleV.
Mirun.Frontier
Member
Join Date: Aug 2008
Old 12-05-2008 , 04:05   Re: Mod Points
Reply With Quote #9

Can this work on Half-Life mods also, without the CS requirements? Im guessing it probably wouldn't due to the mention of "teams"
__________________
I can't believe I wasted 5 years of my life not knowing how to program correctly. Went too deep into advanced coding before even learning the basics correctly. :c
Mirun.Frontier is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-05-2008 , 04:38   Re: Mod Points
Reply With Quote #10

Ye, actually in every cvar and when showing motds, it checks if your team is t or ct.

Last edited by SnoW; 12-05-2008 at 04:42.
SnoW is offline
Send a message via MSN to SnoW
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 07:17.


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