AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Point System 1.6.2 || [14/10/2008] (https://forums.alliedmods.net/showthread.php?t=74175)

atomen 07-13-2008 11:02

Point System 1.6.2 || [14/10/2008]
 
1 Attachment(s)
PHP Code:

/***********************************************************************************
*
*            Plugin : Point - System
*
*            Author : [A]tomen
*
*            Version : 1.6.2 - 14/10/2008
*
*    Plugin Thread : "http://forums.alliedmods.net/showthread.php?t=74175"
*        
*===================================================================================*
*
*                        Description
*
*            REQ : Amx Mod X >= 1.8.1
*
* Point System, my secondly released plugin. This is a kind of RPG plugin. When you
* kill you receive points stored in a database. You are able to buy different
* benefits and abilities with these points
*
* You receive extra points for headshot, surviving round, win
* round and a lot of more stuff. Everything is fully customized
* with cvars, so you can nearly change everything to fit your needs.
*
* These are the current ones, though I will add more abilities/benefits
* You can access all this in the menu by typing /ps in-game. Menu look
*
* 1. Show Points
* 2. VIP (votekick 7x)
* 3. Custom Player Models
* 4. Mute Rights (5x 2min)
* 5. VIP Mute Rights (5x 10min)
* 6. Start a mapvote
* 7. Reserved Slot 2 weeks
*
* 9. Next
* 0. Exit
*
* If you purchase a custom player model your chosen model will be
* saved in a database so each time you connect you will receive the
* model you have bought. You can easily change models by accessing
* the menu and choose the model. Though it's still at the same cost.
*
* There is 2 saving systems available : FVault and SQLX System
*
*==================================================================================*
*
*                   Credits
*
*         -Allstars-United    : Created the original idea
*
*         -Empī        : Great Help with a menu problem
*
*         -|PJ| Shorty    : Helped me with a 'str_to_num' problem
*
*         -arkshine        : Optimized my code(x2)
*
*==================================================================================*
*
*    ADMIN Point System Commands    - Console Actions
*
*    ps_add_points <target> <points>        - Adds Points to a Client
*
*    ps_subtract_points <target> <points>    - Subtracts a Clients Points
*
*    ps_ban <target>                - bans a Client from the point_system
*
*    ps_unban <target>            - Unbans a Client from the point_system
*
*    ps_remove_models <target> <team>    - Removes a players custom player models
*
*    ps_give_model <target> <team>        - Give a Custom Player Model
*
*    ps_clean_database [yes|no] <value>    - Delete all entries with '<value>' and below
*
*    ps_reset_database [yes|no]        - Clears the database, requires restart
*
*    ACCESS : ADMIN_PS Define, Default : ADMIN_LEVEL_C
*
*==================================================================================*
*
*    CLIENT Point System Commands    - Say Actions
*
*    /psrank     - Shows your current point system rank
*
*    /psgive     - Give away points : <target> <points>
*
*    /points     - Shows your current amount of points
*
*    /pstop     - Shows all the players points on the server
*
*    /ps15     - Shows the players with the highest amount of points
*
*    /pshelp     - Shows all the point system commands
*
*    /psgp     - Shows the point system gameplay
*
*    /ps     - Shows the point system menu
*
*==================================================================================*
*
*        NOTE: To disable a point feature, set the value to 0
*
*    CVARS Miscellaneous Related :
*                                            
*    ps_plugin            "1"    // Toggles the plugin on/off
*    ps_advert_time            "120"    // Intervall of the help message
*
*    ps_lan_mode            "0"    // Toggles lan mode on/off (restart server)
*
*    ps_players_required        "3"    // Amount of players required for plugin
*    ps_map_file            "maps"    // List of all maps, maps/mapcycle file.
*
*    ps_time_points            "10"    // Points gained after staying on the server
*    ps_time                "10"    // Minutes needed to stay on the server for bonus
*
*    ps_doublejump_rounds        "1"    // For how many rounds do you have doublejump
*    ps_chameleon_rounds        "1"    // For how many rounds do you have chameleon
*    ps_damage_multiplier_rounds    "3"    // For how many rounds do you have damage multiplier
*
*    ps_reserved_slot_weeks        "2"    // Amount of weeks for 'Reserved Slot' ability
*
*    ps_game_name            "1"    // Turn the game name "Point - System" on/off
*    ps_sound            "1"    // Turn the sounds on/off
*
*==================================================================================*
*
*    CVARS Cost Related :
*
*    ps_vip_cost            "3500"    // Cost for VIP (votekick 7x)
*    ps_doublejump_cost        "350"    // Double Jump Cost
*
*    ps_custom_player_model_cost    "8000"    // Custom Player Model Cost
*    ps_mute_cost            "500"    // Mute Rights Cost (5x 2min)
*
*    ps_mute_vip_cost        "875"    // VIP Mute Rights Cost (5x 10min)
*    ps_mapvote_cost            "800"    // Start a MapVote Cost
*
*    ps_chameleon_cost        "1650"    // Disguised to opposite team cost
*    ps_damage_multiplier_points    "435"    // Damage Multiplier Cost
*
*    ps_reserved_slot_cost        "6500"    // Reserved Slot cost
*
*==================================================================================*
*
*    CVARS Ability Related :
*
*    ps_vip                "1"    // Toggle VIP ability on/off
*    ps_doublejump            "1"    // Toggle doublejump ability on/off
*
*    ps_custom_player_model        "1"    // Toggle CPM ability on/off
*    ps_mute                "1"    // Toggle mute ability on/off
*
*    ps_mute_vip            "1"    // Toggle mute VIP ability on/off
*    ps_mapvote            "1"    // Toggle mapvote ability on/off
*
*    ps_chameleon            "1"    // Toggle Chameleon ability on/off
*    ps_damage_multiplier        "1"    // Toggle Damage Multiplier ability on/off
*
*    ps_reserved_slot        "1"    // Toggle Reserved Slot ability on/off
*
*==================================================================================*
*
*    CVARS Point Related :
*
*    ps_headshot_points        "4"    // Points for a headshot
*    ps_frag_points            "2"    // Points for a kill/frag
*
*    ps_plant_points            "3"    // Points for planting a bomb
*    ps_defuse_points        "3"    // Points for defusing a bomb
*
*    ps_survive_points        "1"    // Points for surviving a round
*    ps_tk_points            "3"    // Amount of Points subtracted on teamkill
*
*    ps_win_points_ct        "2"    // Points for winning a round as CT
*    ps_win_points_t            "2"    // Points for winning a round as T
*
*    ps_mercy_points            "1"    // Amount of Points for "low-pointers"
*    ps_mercy_stop            "300"    // When reached, stops being a "low-pointer"
*
*    ps_vip_frag_points        "5"    // Points for killing a VIP
*    ps_vip_escape_points        "7"    // Points for escaping as a VIP
*
*    ps_knife_frag_points        "5"    // Points for killing with a knife
*    ps_knife_hs_points        "8"    // Points for HS with a knife
*
*    ps_vehicle_frag_points        "1"    // Points for killing with a vehicle
*    ps_vehicle_hs_points        "3"    // Points for HS with a vehicle
*
*    ps_he_frag_points        "6"    // Points for killing with a he-grenade
*    ps_he_hs_points            "10"    // Points for HS with a he-grenade
*
*    ps_hostage_rescue_points    "2"    // Points for Rescuing a hostage
*
*==================================================================================*
*
*    CVARS Left-Overs: The rest of the cvars is in 'ps_cvars.cfg'
*
***********************************************************************************/ 

.:Installation:.
  • Point_System.zip
    • Extract to 'cstrike\addons\amxmodx\' directory.
      • configs/ps/models_ct.ini
      • configs/ps/models_t.ini
      • configs/ps/ps_help.txt
      • configs/ps/ps_gp.txt
      • configs/ps/ps_cvars.cfg
      • data/lang/point_system.txt
      • data/file_vault/points_db.txt
      • data/file_vault/status_db.txt
      • plugins/point_system.amxx
      • scripting/point_system.sma
      • scripting/ps/*.*
      • scripting/include/fvault.inc
      • scripting/include/point_system.inc
.:Modules:.
  • Hamsandwich
  • Fakemeta
  • Sqlx (if enabled)
.:Models.ini:.

The Model Location
  • All models has to be located in: "models/player/*.*"
  • The models must be located in its "name" folder: "/<modelname>/<modelname>.mdl"
  • Example of a Gign Model: "models/player/gign/gign.mdl"
The Model Name
  • The Model location: "<model_location>" "ModelName"
  • Example of a Gign Model : "<model_location>" "Gign"
A Full Example of a Gign Model :
PHP Code:

"models/player/gign/gign.mdl" "Gign" 

A Example of the model.ini File :
PHP Code:

Point System 1.6.2 || Model Database TE || Created by [A]tomen
Example "models/player/custom_model/custom_model.mdl" "Custom"
"models/player/admin_te/admin_te.mdl" "Admin Terrorist"
"models/player/te_chicken/te_chicken.mdl" "Chicken"
"models/player/te_superman/te_superman.mdl" "Superman" 

It has to be quotes ("") around the name/location !

---------------------------------------------------------------------------

If you still have problems with your models, open up the 'point_system.sma' file.
After the comments you should see at the beginning of the code a commented define :
PHP Code:

//#define DEBUG_MODE 

Remove the slash marks('//') at the beginning of the line.
Recompile the plugin and start your game with the plugin enabled. Then close your game and open up "amxmodx/logs/".

There you should see some precache logs (point_system.log).
If you can't detect your problem by those logs, post the logs here and your models_x.ini.

.:ToDo:.
  • Top 15 Players
  • Reserved Slot Reservation Ability
  • Fully tested include/lan_mode
  • Add mysql saving system
  • Gambling System
.:Translators:.
More Translations Needed : Thread 73099

.:Notes:.
I absolutely recommend the SQL version of the plugin since it's faster, less laggy and can save directly.
If you use 'ps_lan_mode' I can't ensure you it works since I nearly support it at all and it's untested.

REQUIRES AMXMODX 1.8.1 AND ABOVE

sekos 07-13-2008 11:04

Re: Point System 1.0
 
great, karma 4u

`666 07-13-2008 11:13

Re: Point System 1.0
 
Nice plugin

point.blank 07-13-2008 11:16

Re: Point System 1.0
 
nice, i'm testing this now

grimvh2 07-13-2008 11:40

Re: Point System 1.0
 
Team Allstars-United must also be credited for the original :/

atomen 07-13-2008 11:41

Re: Point System 1.0
 
Thanks for pointing that out, fixing it now.

point.blank 07-13-2008 11:52

Re: Point System 1.0
 
i found a few bugs, i gave myself some points to try each option out and found that the Mute Rights and VIP Mute Rights always say 5 Times left even after i used it on myself a few times. Also, the VIP votekick, when i try to votekick a player it says they have immunity

stylez1337 07-13-2008 11:55

Re: Point System 1.0
 
Good job there.

diviqt 07-13-2008 12:02

Re: Point System 1.0
 
CooL finally out !!! gj Atomen +karma

sekos 07-13-2008 12:05

Re: Point System 1.0
 
i have problem, when i try to kill someone, defuse bomb or when bomb is exploding.. server crashes... and when im alone on server, "/points" command dont work
and votemap option dont work....

atomen 07-13-2008 12:12

Re: Point System 1.0
 
Quote:

Originally Posted by point.blank (Post 652161)
i found a few bugs, i gave myself some points to try each option out and found that the Mute Rights and VIP Mute Rights always say 5 Times left even after i used it on myself a few times. Also, the VIP votekick, when i try to votekick a player it says they have immunity

Try the updated Version (1.1)
Quote:

Originally Posted by sekos (Post 652166)
i have problem, when i try to kill someone server crashs... and when im alone on server, "/points" command dont work

Debug Logs ?
Amxx Version ?
Metamod Version ?
Modules Loaded ?
Installed Right ?

Fry! 07-13-2008 13:28

Re: Point System 1.1 || [6/13/2008]
 
where is the plugin? O_O

atomen 07-13-2008 13:45

Re: Point System 1.1 || [6/13/2008]
 
Woops, didn't upload when I updated ;P

ss2miraitrunks 07-13-2008 14:00

Re: Point System 1.1 || [6/13/2008]
 
Suggestions, as I suggested to X-olent.

- votemap
- hp boost
- invisiblity
- mole
- flashbang immunity
- tsay, csay
- extra armor
- auto 16k
- vip model
- doublejump
- turn FF on/off
- weapons do more damage
- one hit knife kills
- ability to turn on off custom mods if you have some on the server (weapons arena, capture the flag, redrover, jailbreak, etc.) make a CVAR for this.
- unlimited ammo (never gotta reload either)
- hold an extra HE nade
- extra life
- receive semi clip

atomen 07-13-2008 14:55

Re: Point System 1.1 || [6/13/2008]
 
Quote:

Originally Posted by ss2miraitrunks (Post 652200)
Suggestions, as I suggested to X-olent.

- votemap
- hp boost
- invisiblity
- mole
- flashbang immunity
- tsay, csay
- extra armor
- auto 16k
- vip model
- doublejump
- turn FF on/off
- weapons do more damage
- one hit knife kills
- ability to turn on off custom mods if you have some on the server (weapons arena, capture the flag, redrover, jailbreak, etc.) make a CVAR for this.
- unlimited ammo (never gotta reload either)
- hold an extra HE nade
- extra life
- receive semi clip

Thanks for the suggestions !

I will look into them later and see what 2 add.
Right now I'm working on Version 1.2.

It will have 1 more feature : Chameleon.

And you will also be able to turn on/off features.

Dr. Jan Itor 07-13-2008 15:07

Re: Point System 1.1 || [6/13/2008]
 
nice plugin

`666 07-13-2008 15:17

Re: Point System 1.1 || [6/13/2008]
 
also can you add buy reserved slot for a month in one of your future update please :)

mats 07-13-2008 15:18

Re: Point System 1.1 || [6/13/2008]
 
Quote:

Originally Posted by `666 (Post 652245)
also can you add buy reserved slot for a month in one of your future update please :)

That would be really nice :)


something I really need is mysql support. because I have more than 1 cs server. and I want that players have there points on all servers :)

`666 07-13-2008 17:46

Re: Point System 1.1 || [6/13/2008]
 
another suggestion:
add cvar "ps_players", it will control how many players have to be on server to enable PS scoring system. This should prevent late night abusing with your mates. Also when last required player joins server hud message should display something like this "Required number of players reached, PS scoring system enabled!"

dekken 07-13-2008 18:21

Re: Point System 1.1 || [6/13/2008]
 
The best thing you could do for VoteKick/Ban/Kick
First of all is to make the Command thru Chat
!votekick/!ban/!kick
And open a Menu with all Players, without Admins/Bots and w/e
it would be nice...instead of typing the commands in console
Edit:
Nothing works.
i cant buy anything
i cant use /points some weird bug..

Modules:


Code:

[ 1] Fun                    1.8.1.3710  AMX Mod X Dev Team  running   
 [ 2] CStrike                1.8.1.3710  AMX Mod X Dev Team  running   
 [ 3] CSX                    1.8.1.3710  AMX Mod X Dev Team  running   
 [ 4] MySQL                  1.8.1.3710  AMX Mod X Dev Team  running   
 [ 5] FakeMeta                1.8.1.3711  AMX Mod X Dev Team  running   
 [ 6] Ham Sandwich            1.8.1.3710  AMX Mod X Dev Team  running   
 [ 7] Engine                  1.8.1.3710  AMX Mod X Dev Team  running

No logs.
lastet amx build.
Amxx plugins is all fine

meta list:

Code:

[ 1] WebMod          RUN  -    w_mm_i386.so      v0.47    ini  Start Never
 [ 2] AMX Mod X        RUN  -    amxmodx_mm_i386.  v1.8.1.3  ini  Start ANY 
 [ 3] Fun              RUN  -    fun_amxx_i386.so  v1.8.1.3  pl2  ANY  ANY 
 [ 4] CStrike          RUN  -    cstrike_amxx_i38  v1.8.1.3  pl2  ANY  ANY 
 [ 5] CSX              RUN  -    csx_amxx_i386.so  v1.8.1.3  pl2  ANY  ANY 
 [ 6] MySQL            RUN  -    mysql_amxx_i386.  v1.8.1.3  pl2  ANY  ANY 
 [ 7] FakeMeta        RUN  -    fakemeta_amxx_i3  v1.8.1.3  pl2  ANY  ANY 
 [ 8] Ham Sandwich    RUN  -    hamsandwich_amxx  v1.8.1.3  pl2  ANY  ANY 
 [ 9] Engine          RUN  -    engine_amxx_i386  v1.8.1.3  pl2  ANY ANY

Installed correctly.

Code:

L 07/14/2008 - 01:39:50: [point_system.amxx] File [addons/amxmodx/data/ps/points_db.dat] is Created
L 07/14/2008 - 01:39:50: [point_system.amxx] No action required
L 07/14/2008 - 01:39:50: [point_system.amxx] File [addons/amxmodx/data/ps/status_db.dat] is Created


atomen 07-13-2008 19:17

Re: Point System 1.1 || [6/13/2008]
 
Wait until I release Version 1.2, I've fixed a lot in it, be patient.
Quote:

instead of typing the commands in console
Access in PS menu ?(/ps)

dekken 07-13-2008 19:46

Re: Point System 1.1 || [6/13/2008]
 
ban /ban

B3N4K 07-14-2008 06:56

Re: Point System 1.1 || [6/13/2008]
 
please add support for biohazard, becouse at round end it will crash server.. :( please support biohazard (zombie mod)

atomen 07-14-2008 09:08

Re: Point System 1.1 || [6/13/2008]
 
Version 1.2 Uploaded, crash on round end fixed, and a lot of more stuff.
Quote:

* V 1.2
* - Updated ML Files
* - Added new messages
* - Added Chameleon Ability
* - Added cvars for enabling the features
* - Added cvar to control abusing (thanks `666)
* - Added block for already bought stuff
* - Added cvar for win points for each team
* - Changed connect detection
* - Fixed Plugin Crash on round-end
* - Fixed duplicate message problem
* - Fixed Plugin Help Message
* - Fixed suicide counted as TK

Fry! 07-14-2008 09:33

Re: Point System 1.2 || [6/14/2008]
 
Ok. Thanks for crush bug fix.

B3N4K 07-14-2008 10:09

Re: Point System 1.2 || [6/14/2008]
 
THX!

dekken 07-14-2008 10:18

Re: Point System 1.2 || [6/14/2008]
 
Dude nothing works..
no logs...Nothing
/ps wont work
Commands thru chat wont work
only thing that Works is ps_add_points
i got Lastet amx build.

atomen 07-14-2008 10:20

Re: Point System 1.2 || [6/14/2008]
 
How many players are playing ? It must be equal to 'ps_players_required' or higher.
Quote:

* V 1.2
* - Updated ML Files
* - Added new messages
* - Added Chameleon Ability
* - Added cvars for enabling the features
* - Added cvar to control abusing (thanks `666)
* - Added block for already bought stuff
* - Added cvar for win points for each team
* - Changed connect detection
* - Fixed Plugin Crash on round-end
* - Fixed duplicate message problem
* - Fixed Plugin Help Message
* - Fixed suicide counted as TK

diviqt 07-14-2008 10:27

Re: Point System 1.2 || [6/14/2008]
 
[PS] Required number of players reached, PS scoring system enabled

Works great for now no problems :)

diviqt 07-14-2008 10:28

Re: Point System 1.2 || [6/14/2008]
 
Quote:

Originally Posted by dekken (Post 652625)
Dude nothing works..
no logs...Nothing
/ps wont work
Commands thru chat wont work
only thing that Works is ps_add_points
i got Lastet amx build.

dude it will work when you have 3 (bydefault) or more players in game or you can change it by this cvar ps_players_required
When you get this massage
[PS] Required number of players reached, PS scoring system enabled
then the plugin is enabled and you can start winning points :)

dekken 07-14-2008 10:33

Re: Point System 1.2 || [6/14/2008]
 
well you could tell us that its actually
"ps_players_required"
well with Kick rights
it says every player has Immunity. so i cant kick anyone
Also could you do it so you could vote maps only from Mapcycle.txt?
Instead of all the maps?
also pstop and psranks doesnt work

Edit:
Also an error log.
This happend when i used the menu Too much
it stopped Responding
everything stopped working
i could access the menu, but i could use the items.

Code:

L 07/14/2008 - 17:24:55: Start of error session.
L 07/14/2008 - 17:24:55: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20080714.log")
L 07/14/2008 - 17:24:55: String formatted incorrectly - parameter 6 (total 5)
L 07/14/2008 - 17:24:55: [AMXX] Displaying debug trace (plugin "point_system.amxx")
L 07/14/2008 - 17:24:55: [AMXX] Run time error 25: parameter error
L 07/14/2008 - 17:24:55: [AMXX]    [0] motd.inl::format_motd_points (line 7)
L 07/14/2008 - 17:24:55: [AMXX]    [1] handle.inl::show_top_points (line 44)
L 07/14/2008 - 17:30:27: String formatted incorrectly - parameter 6 (total 5)
L 07/14/2008 - 17:30:27: [AMXX] Displaying debug trace (plugin "point_system.amxx")
L 07/14/2008 - 17:30:27: [AMXX] Run time error 25: parameter error
L 07/14/2008 - 17:30:27: [AMXX]    [0] motd.inl::format_motd_points (line 7)
L 07/14/2008 - 17:30:27: [AMXX]    [1] handle.inl::show_top_points (line 44)


B3N4K 07-14-2008 10:38

Re: Point System 1.2 || [6/14/2008]
 
please add this at name, not at steamID, becouse i have LAN server and i want thi there TO!! PLEASE MAKE IT BY NAMES!

atomen 07-14-2008 10:52

Re: Point System 1.2 || [6/14/2008]
 
Quote:

Originally Posted by dekken (Post 652631)
[...]

well with Kick rights
it says every player has Immunity. so i cant kick anyone
Also could you do it so you could vote maps only from Mapcycle.txt?
Instead of all the maps?
[...]

Problems fixed in version 1.3, will upload asap.
And about the mapcycle, I'll fix that and try to get it in this release.

And about the immunity problem, are you playing lan or Internet with only bots ?
Quote:

Originally Posted by B3N4K (Post 652636)
please add this at name, not at steamID, becouse i have LAN server and i want thi there TO!! PLEASE MAKE IT BY NAMES!

I will try to add this feature, but It wont be in the next release.

sekos 07-14-2008 10:57

Re: Point System 1.2 || [6/14/2008]
 
- I have immunity problem too, im playing on internet
- mapvote dont work
- when i muted someone all ppl see "you have been muted ..."

atomen 07-14-2008 11:12

Re: Point System 1.2 || [6/14/2008]
 
Quote:

Originally Posted by sekos (Post 652641)
- I have immunity problem too, im playing on internet [1]
- mapvote dont work [2]
- when i muted someone all ppl see "you have been muted ..." [3]

[1] I will look through the code and try to fix it, but are you playing against bots ?
[2] Has worked for everyone else, though the system is updated in version 1.3
[3] This is fixed now, thanks for the report.

EDIT : Immunity Problem Fixed

dekken 07-14-2008 12:09

Re: Point System 1.2 || [6/14/2008]
 
when will 1.3 will be out?

atomen 07-14-2008 12:38

Re: Point System 1.3 || [6/14/2008]
 
Version 1.3 is out :
Quote:

* V 1.3
* - Added Votemap message
* - Added cvar for map file
* - Fixed motd error
* - Fixed Immunity Problem
* - Fixed message displayed to everyone
* - Changed Map System
PHP Code:

For maps.ini ps_map_file "maps"
For mapcycle.txt ps_map_file "mapcycle" 


Blubb 07-14-2008 12:54

Re: Point System 1.3 || [6/14/2008]
 
very nice plugin atomen
i think i will use it for my server ^^

+karma

EvolDay 07-14-2008 12:59

Re: Point System 1.3 || [6/14/2008]
 
Atomen, could you possibly add a feature that you can recieve points for time spent in the server. like 5 points for every 10mins you stay in the server something like that.

sekos 07-14-2008 13:06

Re: Point System 1.3 || [6/14/2008]
 
ML dont work ?
Can u make it colored?
[IMG]http://img362.**************/img362/2988/asdvf4.th.jpg[/IMG]

And i have problem with models, im doing everythink ok, but it dont work..
Quote:

"models\player\laalaa\laalaa.mdl" "Laalaa"


All times are GMT -4. The time now is 15:00.

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