AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ]Deathrun Shop (https://forums.alliedmods.net/showthread.php?t=173874)

iReaL 12-11-2011 16:06

[REQ]Deathrun Shop
 
The shop will works on $
-----------------------
---Deagle----10000$--- (have just 2 bullets)
--Low Gravity--9000$-- (player will have 300 gravity)
--Hight Speed--9000$-- (player will have 380 speed)
-Grenades Pack-12000$- (he granade & smoke grenades)
-HP&Vest+helm-10000$- (300 HP & 200 Vest and helmet)
-----------------------

say /shop and show that

joshknifer 12-13-2011 12:41

Re: [REQ]Deathrun Shop
 
You bump every thread you create. When are you going to learn the rules?

iReaL 12-14-2011 15:19

Re: [REQ]Deathrun Shop
 
can somebody do this plugin for me? please?

kramesa 12-14-2011 15:23

Re: [REQ]Deathrun Shop
 
Search, have some plugins.

iReaL 12-15-2011 08:29

Re: [REQ]Deathrun Shop
 
i want to be this plugin , not that , that are diffrent's

rubee 12-15-2011 15:48

Re: [REQ]Deathrun Shop
 
try this

Code:
#include < amxmodx > #include < hamsandwich > #include < cstrike > #include < fun > enum _:OptionsData {     INFO[ 20 ],     COST } new const g_Options[ ][ OptionsData ] = {     { "Deagle", 10000 },     { "Low Gravity", 9000 },     { "Hight Speed", 9000 },     { "Grenades Pack", 12000 },     { "HP & Vest + Helm", 10000 } } new g_MenuID new g_HasSpeed[ 33 ] new Ham:Ham_Player_ResetMaxSpeed = Ham_Item_PreFrame public plugin_init( ) {     register_plugin( "Deathrun Shop", "1.0", "rube" )         RegisterHam( Ham_Spawn, "player", "HamPlayerSpawnPost", 1 )     // joaquimandrade set speed method     RegisterHam( Ham_Player_ResetMaxSpeed, "player", "HamPlayerResetMaxSpeedPost", 1 )         register_clcmd( "say /shop", "ClcmdShop" )         g_MenuID = menu_create( "Deathrun Shop", "ShopHandler" )         new Data[ 64 ]         for ( new i; i < sizeof g_Options; i++ )     {         formatex( Data, charsmax( Data ), "%s %d$", g_Options[ i ][ INFO ], g_Options[ i ][ COST ])         menu_additem( g_MenuID, Data, _, _, menu_makecallback( "CheckMoney" ) )     } } public ClcmdShop( id ) {     if ( is_user_alive( id ) )         menu_display( id, g_MenuID ) } public CheckMoney( id, menu, item ) return cs_get_user_money( id ) >= g_Options[ item ][ COST ] ? ITEM_ENABLED : ITEM_DISABLED public ShopHandler( id, menu, item ) {     if ( item == MENU_EXIT || !is_user_alive( id ) )         return PLUGIN_HANDLED             switch( item )     {         case 0: cs_set_weapon_ammo( give_item( id, "weapon_deagle" ), 2 )         case 1: set_user_gravity( id, 0.4 )         case 2:         {             g_HasSpeed[ id ] = 1             ExecuteHamB( Ham_Player_ResetMaxSpeed, id )         }         case 3:         {             give_item( id, "weapon_hegrenade")             give_item( id, "weapon_smokegrenade")         }         case 4:         {             set_user_health( id, 300 )             cs_set_user_armor( id, 200, CS_ARMOR_VESTHELM )         }     }         client_print( id, print_chat,"You have bought: %s", g_Options[ item ][ INFO ] )     cs_set_user_money( id, cs_get_user_money( id ) - g_Options[ item ][ COST ] )         return PLUGIN_HANDLED } public HamPlayerSpawnPost(id) g_HasSpeed[ id ] = 0 public HamPlayerResetMaxSpeedPost( id ) {     if ( is_user_alive( id ) && g_HasSpeed[ id ] )         set_user_maxspeed( id, 380.0 ) }

iReaL 12-16-2011 18:09

Re: [REQ]Deathrun Shop
 
thanks


All times are GMT -4. The time now is 20:49.

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