Deathrun ShopVersion 0.1by Rejack
Introduction:This is a Shop Plugin for the plugin Deathrun.If you kill an enemy you get Points! Points are saved by NVault.I started building this plugin today (03/03/2013) and it wasn't really tested on a server with people... So I'm sure some bugs will pop up..This is my first plugin ever posted on Alliedmodders. When opening the shop (by /shop) You get a menu with two selections The first is to enter to a players points menu, And the second is to enter to your team shop (The shops are limited for each teams. for CT you have all the options and for T's you have only Powers and Fun).
Chat Commands:- Say /shop - Used to open the shop main menu.
- Say /points
- You can check the points that other players have.
- Say /gamble
- You can gamble and double the amount of points you have!Notice that the maximum amount to gamble on is 50 Points to prevent bugs.
- Say /send
- drshop_add_points
- To add points to a specific player.
- drshop_remove_points
- To remove points from a specific player.
note: You need a RCON access (L) you can change it by changing the PHP Code:
#define CmdAccess ADMIN_RCON
Cvars:- drshop_enabled <1/0>
- Enable/Disable the plugin.- Default: 1
- drshop_prefix "Deathrun"
- Set the prefix of the ColorPrint messages.- Default: Deathrun
- drshop_save <0/1/2>
- Set the type of save to the NVault.- 0 = Name | 1 = IP Address | 2 = Steam ID- Default: 2
- drshop_kill
- Set how much points a player will get for killing the Terrorist.- If set to 0 the player who kills a terrorist will get the same amount of points as the amount of players in the server (minus himself)- Default: 3
- drshop_suicide
- Set how much points a player will lose if he suicide.- Default: 1
- drshop_killt
- Set how much points a player will get for killing a Counter-Terrorist.- Default: 6
- drshop_godmode
- Set the price on Godmode per 1.0 Seconds.- Default: 3
- drshop_speed
- Set the price on Speed per 1.0 Seconds.- Default: 2
- drshop_gravity
- Set the price on Gravity per 1.0 Seconds.- Default: 3
- drshop_stealth
- Set the price on Stealth per 1.0 Seconds.- Default: 3
- drshop_glow
- Set the price on Random Glow for One Round.- Default: 2
- drshop_nosteps
- Set the price on No Footsteps- Default: 1
- drshop_grenade
- Set the price of One HEGrenade- Default: 4
- drshop_flash
- Set the price of One Flashbang- Default: 3
- drshop_smoke
- Set the price of One Smokegrenade- Default: 2
- drshop_m4a1
- Set the price of M4A1 per 1 Bullet.- Default: 3
- drshop_ak47
- Set the price of AK47 per 1 Bullet.- Default: 3
- drshop_awp
- Set the price of AWP per 1 Bullet.- Default: 4
- drshop_deagle
- Set the price of Deagle per 1 Bullet.- Default: 2
- drshop_famas
- Set the price of Famas per 1 Bullet.- Default: 2
- drshop_galil
- Set the price of Galil per 1 Bullet.- Default: 2
- drshop_m3
- Set the price of M3 per 1 Bullet.- Default: 1
- drshop_mp5
- Set the price of MP5Navy per 1 Bullet.- Default: 1
#include < amxmodx >#include < amxmisc >#include < cstrike >#include < fun >#include < hamsandwich >#include < engine >#include < nvault >
Natives:- get_user_points( client );
- set_user_points( client, g_Points );
- v1.0
- Initial release.
Please post suggestions, comments, improvements or bug you may have found.I do not support Non-Steam.This is my first plugin on alliedmodders so go easy on me :oops:If you find any typo please let me know and I will soon upload the next version supporting few other languages (Need translators).
Credits:- Rejack - Me, For creating the plugin.
- Exolent[jNr] - Because it's my first time posting i copied the style of his HNS XP Mod thread.

Wyświetl pełny artykuł