Mod Points

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Mod Points

Post by greenie »

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

get plugin
get source
Post Reply

Return to “General Purpose”