Raised This Month: $66 Target: $400
 16% 

Point System 1.6.2 || [14/10/2008]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   v3x (159)
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 07-13-2008 , 12:02   Point System 1.6.2 || [14/10/2008]
Reply With Quote #1

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
Attached Files
File Type: zip point_system.zip (245.1 KB, 10556 views)
__________________

Last edited by atomen; 10-15-2008 at 02:36. Reason: 1.6.2
atomen is offline
Send a message via MSN to atomen
sekos
Member
Join Date: May 2007
Location: Poland
Old 07-13-2008 , 12:04   Re: Point System 1.0
Reply With Quote #2

great, karma 4u
sekos is offline
Send a message via MSN to sekos Send a message via Skype™ to sekos
`666
AlliedModders Donor
Join Date: Jan 2006
Location: UK
Old 07-13-2008 , 12:13   Re: Point System 1.0
Reply With Quote #3

Nice plugin
`666 is offline
point.blank
Member
Join Date: Oct 2007
Old 07-13-2008 , 12:16   Re: Point System 1.0
Reply With Quote #4

nice, i'm testing this now
__________________
point.blank is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 07-13-2008 , 12:40   Re: Point System 1.0
Reply With Quote #5

Team Allstars-United must also be credited for the original :/
__________________
I am out of order!
grimvh2 is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 07-13-2008 , 12:41   Re: Point System 1.0
Reply With Quote #6

Thanks for pointing that out, fixing it now.
__________________
atomen is offline
Send a message via MSN to atomen
point.blank
Member
Join Date: Oct 2007
Old 07-13-2008 , 12:52   Re: Point System 1.0
Reply With Quote #7

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
__________________
point.blank is offline
stylez1337
Junior Member
Join Date: Aug 2007
Old 07-13-2008 , 12:55   Re: Point System 1.0
Reply With Quote #8

Good job there.
__________________
stylez1337 is offline
diviqt
Senior Member
Join Date: Jul 2007
Location: Bulgaria
Old 07-13-2008 , 13:02   Re: Point System 1.0
Reply With Quote #9

CooL finally out !!! gj Atomen +karma
diviqt is offline
Send a message via ICQ to diviqt Send a message via Skype™ to diviqt
sekos
Member
Join Date: May 2007
Location: Poland
Old 07-13-2008 , 13:05   Re: Point System 1.0
Reply With Quote #10

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....
__________________
rzulf





Last edited by sekos; 07-13-2008 at 13:16.
sekos is offline
Send a message via MSN to sekos Send a message via Skype™ to sekos
Reply


Thread Tools
Display Modes

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 04:29.


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