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

Purchase Mod - v1.4.1


Post New Thread Reply   
 
Thread Tools Display Modes
Khamul
New Member
Join Date: Dec 2008
Old 12-23-2008 , 07:38   Re: Purchase Mod - v1.3 [Parachute Added!]
Reply With Quote #41

what should i add in the cvars.ini? the amx_pmod didnt work
Khamul is offline
Arex
New Member
Join Date: Dec 2008
Old 01-10-2009 , 07:56   Re: Purchase Mod - v1.3 [Parachute Added!]
Reply With Quote #42

cool i download it right now
Arex is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 06-25-2009 , 17:17   Re: Purchase Mod - v1.3 [Parachute Added!]
Reply With Quote #43

Where can i go to change the CVARS. Like how many times they can jump, how invisible they are.
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
deadman909
Veteran Member
Join Date: Oct 2008
Old 06-25-2009 , 22:47   Re: Purchase Mod - v1.3 [Parachute Added!]
Reply With Quote #44

Sup everybody. If everybody is wondering how to CHANGE the PRICES I figured it OUT. You have to look in the .SMA file.
IT TAKES A WHILE TO CHANGE THE PRICES. SO IF YOUR LAZY DONT BOTHER READING THIS.
Quote:
Steps to Changing Prices
1. Open File with NotePad or WordPad: purchasemod.sma
2. Press Ctrl+F: Now Search for "new money = cs_get_user_money(id);"
Without the QUOTES "" just new money = cs_get_user_money(id);
3. Right UNDERNEATH that it should say: if(3500 > money)
Thats the Very first one. The number 3500 is not the same price for ALL
4. Ok when u find that PART.Change 3500 to what ever you want the MOD to COST.All the ones that have 3500 need to be change to the NEW PRICE you want.
5. You will have to SEARCH for: new money = cs_get_user_money(id);
To find all of them. Just change the NUMBERS.
***NOTE THAT ONLY THE NUMBERS CHANGE NOTHING ELSE.***
Quote:
***This is for GRAVITY***
---"EXAMPLE I CHANGED MINE FROM"---
new money = cs_get_user_money(id);
if(3500 > money)
{
client_print(id, print_chat, "[Purchase Mod]: You have insufficient funds!");
client_cmd(id,"spk purchasemod/sorry");
return PLUGIN_HANDLED;
}
cs_set_user_money(id, (money - 3500), 1);
client_cmd(id,"spk purchasemod/buy");
client_print(id, print_chat, "[Purchase Mod]: You purchased gravity for $3500!");
CHANGED IT TO THIS
new money = cs_get_user_money(id);
if(12000 > money)
{
client_print(id, print_chat, "[Purchase Mod]: You have insufficient funds!");
client_cmd(id,"spk purchasemod/sorry");
return PLUGIN_HANDLED;
}
cs_set_user_money(id, (money - 12000), 1);
client_cmd(id,"spk purchasemod/buy");
client_print(id, print_chat, "[Purchase Mod]: You purchased gravity for $12000!");
_____________________________________________ _____________________________________________ _______________________________
********************************************* ********************************************* *******************************
Quote:
***This is for SPEED***
Heres another EXAMPLE of another one I CHANGED
CHANGE IT FROM
new money = cs_get_user_money(id);
if(4000 > money)
{
client_print(id, print_chat, "[Purchase Mod]: You have insufficient funds!");
client_cmd(id,"spk purchasemod/sorry");
return PLUGIN_HANDLED;
}
cs_set_user_money(id, (money - 4000), 1);
client_cmd(id,"spk purchasemod/buy");
client_print(id, print_chat, "[Purchase Mod]: You purchased speed for $4000!");
TO THIS
new money = cs_get_user_money(id);
if(12000 > money)
{
client_print(id, print_chat, "[Purchase Mod]: You have insufficient funds!");
client_cmd(id,"spk purchasemod/sorry");
return PLUGIN_HANDLED;
}
cs_set_user_money(id, (money - 12000), 1);
client_cmd(id,"spk purchasemod/buy");
client_print(id, print_chat, "[Purchase Mod]: You purchased speed for $12000!");
__________________


Last edited by deadman909; 06-25-2009 at 22:54.
deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
JPe
Junior Member
Join Date: Nov 2009
Old 11-23-2009 , 19:11   Re: Purchase Mod - v1.3.1
Reply With Quote #45

Purchase Mod v1.3.1

What:
This version is only extending version 1.3 by Dizzy ... thank you very much

added:
- new cvars : amx_pmod_timer4info ... time (in seconds) for repeat say help (default = 120)

this will disable or enable ability
amx_pmod_gravity (0|1) (off|on)
amx_pmod_speed (0|1) (off|on)
amx_pmod_stealth (0|1) (off|on)
amx_pmod_laser (0|1) (off|on)
amx_pmod_flashglasses (0|1) (off|on)
amx_pmod_multijump (0|1) (off|on)
amx_pmod_bunnyhop (0|1) (off|on)
amx_pmod_health (0|1) (off|on)
amx_pmod_parachute (0|1) (off|on)

this will set
needful money for purchase

amx_pmod_gravity_money (default = $3500)
amx_pmod_speed_money (default = $4000)
amx_pmod_stealth_money (default = $5000)
amx_pmod_laser_money (default = $2000)
amx_pmod_flashglasses_money (default = $5000)
amx_pmod_multijump_money (default = $3000)
amx_pmod_bunnyhop_money (default = $6000)
amx_pmod_health_money (default = $5000)
amx_pmod_parachute_money (default = $4000)

- new menu :
you can see, what can you purchase
menu stay open

-
multilang :
added support for more languages (now is [cz] and [en] defined ... you can add more into file amxmodx/data/lang/purchasemod.txt )

- if player survive round then hold his purchased abilities (except health)

An outlook for the future
The player can drop his purchased abilities
Attached Files
File Type: zip purchasemod.zip (37.8 KB, 137 views)

Last edited by JPe; 11-26-2009 at 17:05.
JPe is offline
brainiac080195
BANNED
Join Date: Nov 2009
Location: Belgrade
Old 11-24-2009 , 13:41   Re: Purchase Mod - v1.3 [Parachute Added!]
Reply With Quote #46

Thank you I am testing it now!!!!
brainiac080195 is offline
Send a message via MSN to brainiac080195 Send a message via Skype™ to brainiac080195
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 03-04-2010 , 20:21   Re: Purchase Mod - v1.3 [Parachute Added!]
Reply With Quote #47

Hey everyone, haven't been online for quite some time now!

I've stared at this plugin for awhile now and have read some of your posts about altercations and questions and wish I could have gotten back sooner. There are a few bugs in the plugin that I am aware of and plan to get on this as soon as possible. Need to create a dedicated server to test on and filter out bugs, stay tuned
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 03-07-2010 , 13:11   Re: Purchase Mod - v1.4 BETA [TONS ADDED]
Reply With Quote #48

Purchase Mod v1.4 BETA

[Status:] WORKS... Bug Testing Time!

**What's New?**

v1.4 - BETA - Huge update to increase user functionality (you can edit stuff via cvars - YAY!), replaced menu with JPe's menu, added individual ability disabling, how long abilities last, god damn, just read the amount of cvars BELOW!
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance

Last edited by Dizzy; 03-09-2010 at 21:53.
Dizzy is offline
Send a message via AIM to Dizzy
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 03-07-2010 , 13:13   Re: Purchase Mod - v1.4.1
Reply With Quote #49

Purchase Mod v1.4.1

[Status:] WORKS... Bug Testing Time!

**What's New?**

v1.4.1 - Added a drop feature and upgraded to the new menu system.. Much more stable than the previous version.

Code:
//////////////////////////////////////////// //AMXMOD[X]                               // //Purchase Mod v1.4.1                     // //By: Dizzy                               // //(©)All rights reserved                  // //                                        // //Cvars:                                  // //  amx_pmod                (0|1) (off|on)// //     -Plugin off/on                     // //  amx_pmod_multi          (0|1) (off|on)// //     -Multi abilities off/on            // //  amx_pmod_menu           (0|1) (off|on)// //     -Menu stays open                   // //  amx_pmod_rounds         (1    DEFAULT)// //     -How many rounds Ability lasts     // //  amx_pmod_dropallow      (0|1) (off|on)// //     -Allow players to drop ability     // //  amx_pmod_droprate       (25  %DEFAULT)// //     -Droprate in %                     // //                                        // // (Disable Individual Abilities)         // //  amx_pmod_gravity        (0|1) (off|on)// //  amx_pmod_speed          (0|1) (off|on)// //  amx_pmod_stealth        (0|1) (off|on)// //  amx_pmod_laser          (0|1) (off|on)// //  amx_pmod_glasses        (0|1) (off|on)// //  amx_pmod_multijump      (0|1) (off|on)// //  amx_pmod_bunnyhop       (0|1) (off|on)// //  amx_pmod_health         (0|1) (off|on)// //  amx_pmod_parachute      (0|1) (off|on)// //                                        // // (Individual Ability Cost)              // //  amx_pmod_gravityCost    (3500 DEFAULT)// //  amx_pmod_speed          (4000 DEFAULT)// //  amx_pmod_stealth        (5000 DEFAULT)// //  amx_pmod_laser          (2000 DEFAULT)// //  amx_pmod_glasses        (5000 DEFAULT)// //  amx_pmod_multijump      (3000 DEFAULT)// //  amx_pmod_bunnyhop       (6000 DEFAULT)// //  amx_pmod_health         (5000 DEFAULT)// //  amx_pmod_parachute      (4000 DEFAULT)// //                                        // // (Value Settings)                       // //  amx_pmod_playerspeed    (320  DEFAULT)// //  amx_pmod_playergravity  (200  DEFAULT)// //  amx_pmod_playerhealth   (200  DEFAULT)// //  amx_pmod_playerarmor    (200  DEFAULT)// //     -How much given back (in cash)     // //                                        // // (Parachute Options)                    // //  amx_pmod_parafallSpeed  (100  DEFAULT)// //  amx_pmod_paraDetach     (1    DEFAULT)// //                                        // // (Multi Jump Number - How many jumps)   // //  amx_pmod_multijumpnumber(3    DEFAULT)// //                                        // //Client Commands:                        // //  pmodmenu                              // //                                        // //Code Credits:                           // //  Multi-Jump(twistedeuphoria)           // //  Anti-Flash Glasses(AssKicR)           // //  BunnyHop(CheesyPeteza)                // //  Parachute(KRoTaL/JTP10181)            // //                                        // //  Big thanks to JPe for help with: one, // //getting me off my ass to make another   // //release for this thing, two, menus with // //dimming values, etc, three, ideas for   // //individual ability disabling, making    // //abilities last for a specificed round   // //value, and the menu stay open idea.     // //(helps for when multi abilities is      // //enabled)                                // ////////////////////////////////////////////
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance

Last edited by Dizzy; 03-09-2010 at 21:53.
Dizzy is offline
Send a message via AIM to Dizzy
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 03-09-2010 , 21:55   Re: Purchase Mod - v1.4.1
Reply With Quote #50

With this version release there were many updates to the menu system making it work better and be more stable.. Lots of crashing and menu redirect errors in 1.4..

Things to test, plugin's reactions to cvar value changing..

i.e. Does the plugins allow multi abilities when amx_pmod_multi == 1?

Thanks for testing guys
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
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 05:25.


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