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

Deathrun Shop 1.0 by Rejack


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
yan1255
Senior Member
Join Date: Jul 2011
Old 03-03-2013 , 17:03   Deathrun Shop 1.0 by Rejack
Reply With Quote #1

Deathrun Shop
Version 0.1
by 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 <nick> - You can check the points that other players have.
  • Say /gamble <amount> - 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 <nick> <amount> - You can transfer your points to someone else!

Admin Commands:
  • drshop_add_points <nick> <points> - To add points to a specific player.
  • drshop_remove_points <nick> <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 <Points>
    - 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 <Points>
    - Set how much points a player will lose if he suicide.
    - Default: 1
  • drshop_killt <Points>
    - Set how much points a player will get for killing a Counter-Terrorist.
    - Default: 6
  • drshop_godmode <Cost>
    - Set the price on Godmode per 1.0 Seconds.
    - Default: 3
  • drshop_speed <Cost>
    - Set the price on Speed per 1.0 Seconds.
    - Default: 2
  • drshop_gravity <Cost>
    - Set the price on Gravity per 1.0 Seconds.
    - Default: 3
  • drshop_stealth <Cost>
    - Set the price on Stealth per 1.0 Seconds.
    - Default: 3
  • drshop_glow <Cost>
    - Set the price on Random Glow for One Round.
    - Default: 2
  • drshop_nosteps <Cost>
    - Set the price on No Footsteps
    - Default: 1
  • drshop_grenade <Cost>
    - Set the price of One HEGrenade
    - Default: 4
  • drshop_flash <Cost>
    - Set the price of One Flashbang
    - Default: 3
  • drshop_smoke <Cost>
    - Set the price of One Smokegrenade
    - Default: 2
  • drshop_m4a1 <Cost>
    - Set the price of M4A1 per 1 Bullet.
    - Default: 3
  • drshop_ak47 <Cost>
    - Set the price of AK47 per 1 Bullet.
    - Default: 3
  • drshop_awp <Cost>
    - Set the price of AWP per 1 Bullet.
    - Default: 4
  • drshop_deagle <Cost>
    - Set the price of Deagle per 1 Bullet.
    - Default: 2
  • drshop_famas <Cost>
    - Set the price of Famas per 1 Bullet.
    - Default: 2
  • drshop_galil <Cost>
    - Set the price of Galil per 1 Bullet.
    - Default: 2
  • drshop_m3 <Cost>
    - Set the price of M3 per 1 Bullet.
    - Default: 1
  • drshop_mp5 <Cost>
    - Set the price of MP5Navy per 1 Bullet.
    - Default: 1

Includes:
PHP Code:
#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 );

Changelog:
Code:
  • v1.0
    • Initial release.
Notes:
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
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.
Attached Files
File Type: sma Get Plugin or Get Source (DRShop.sma - 2351 views - 33.2 KB)
__________________

Last edited by yan1255; 03-03-2013 at 17:08.
yan1255 is offline
roymor
Senior Member
Join Date: Apr 2012
Old 03-04-2013 , 06:33   Re: Deathrun Shop 1.0 by Rejack
Reply With Quote #2

Looks pretty dope
but I think most fun is playing DR without shop
roymor is offline
yan1255
Senior Member
Join Date: Jul 2011
Old 03-04-2013 , 14:50   Re: Deathrun Shop 1.0 by Rejack
Reply With Quote #3

Thanks, I think the same but someone has asked me to make him a plugin like that so i decided to make it and publish it...
__________________
yan1255 is offline
FanatikSVK
Member
Join Date: Aug 2012
Location: Slovakia
Old 03-04-2013 , 15:52   Re: Deathrun Shop 1.0 by Rejack
Reply With Quote #4

good job...it's pretty good .. I hope that it will be some kind of update: D
sry mi bad ENG... i am slovakia
FanatikSVK is offline
Send a message via Skype™ to FanatikSVK
yan1255
Senior Member
Join Date: Jul 2011
Old 03-05-2013 , 06:47   Re: Deathrun Shop 1.0 by Rejack
Reply With Quote #5

Quote:
Originally Posted by FanatikSVK View Post
good job...it's pretty good .. I hope that it will be some kind of update: D
sry mi bad ENG... i am slovakia
thanks...
I will update soon, but do you have any reason to want an update?
I mean did you find any bug or something isn't looking right?
__________________
yan1255 is offline
FanatikSVK
Member
Join Date: Aug 2012
Location: Slovakia
Old 03-05-2013 , 14:07   Re: Deathrun Shop 1.0 by Rejack
Reply With Quote #6

Quote:
Originally Posted by yan1255 View Post
thanks...
I will update soon, but do you have any reason to want an update?
I mean did you find any bug or something isn't looking right?
No, no. . I mean for example, if something comes up touches something uric ladies know but can not see anything while there
__________________
FanatikSVK is offline
Send a message via Skype™ to FanatikSVK
quilhos
Veteran Member
Join Date: Jun 2010
Old 03-05-2013 , 18:14   Re: Deathrun Shop 1.0 by Rejack
Reply With Quote #7

Soon dont take me bad, but I will swear that I already seen this code some where in this forum, but I dont care about that, if you are able to support the plugin, thanks mate, you just help improving cs 1.6

Suggestion, in the main post, do some sorte of quote in cvars, it's more easy to read
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!

Last edited by quilhos; 03-05-2013 at 18:15.
quilhos is offline
yan1255
Senior Member
Join Date: Jul 2011
Old 03-06-2013 , 09:21   Re: Deathrun Shop 1.0 by Rejack
Reply With Quote #8

Quote:
Originally Posted by quilhos View Post
Soon dont take me bad, but I will swear that I already seen this code some where in this forum, but I dont care about that, if you are able to support the plugin, thanks mate, you just help improving cs 1.6

Suggestion, in the main post, do some sorte of quote in cvars, it's more easy to read
Thanks for the comment and what do you mean by quote in the cvars?
like that?
Code:
  • drshop_enabled <1/0>
- Enable/Disable the plugin. - Default: 1[/PHP]
__________________
yan1255 is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 03-07-2013 , 08:51   Re: Deathrun Shop 1.0 by Rejack
Reply With Quote #9

yes
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
yan1255
Senior Member
Join Date: Jul 2011
Old 03-09-2013 , 06:59   Re: Deathrun Shop 1.0 by Rejack
Reply With Quote #10

Quote:
Originally Posted by quilhos View Post
yes
Okay, I will consider that
For now i'm not doing anything about the plugin but ina few days i'll start working on it ^_^
__________________
yan1255 is offline
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 08:26.


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