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

Buy Menu v1.8 Final [UPDATED!]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
imindfreak
Senior Member
Join Date: Oct 2007
Location: 127.0.0.1
Old 01-31-2008 , 21:22   Buy Menu v1.8 Final [UPDATED!]
Reply With Quote #1

Code:
/////////////////////////
//                     //
//       Credits       //
//      iMiNDFREAK     //
//       FXFighter     //
//      crysisclan     //
//    onfirenburin420  //
//                     //
/////////////////////////

===
====================================


This plugin started off with the user name onfirenburin420.
http://forums.alliedmods.net/member.php?u=3710

It was later recoded by crysisclan
http://forums.alliedmods.net/member.php?u=34182

Now it has been recoded again with the help of iMiNDFREAK & FXFighter.
Mind - http://forums.alliedmods.net/member.php?u=31364
FX - http://forums.alliedmods.net/member.php?u=25100

This plugin is just a basic command to open up a list of "powers" you can buy with your CS Money.

Features:
A simple Buy Menu.
A usage message will display for new clients that join the server.

=======================================

Powers:
Silent Walk (No one can hear you walk!)
No clip (Freely roam around through walls like a ghost.)
Chameleon (Your model will be changed to look like the enemy.)
Unlimited Ammo (Unlimited Bullets, Endless Bullets, Keep-Shooting!)
Invisibility (Turn invisible.)
No Flash (You will not be effected by flash bangs.)
No Recoil (Your crosshair will have no recoil.)
Speed (You will move faster then everyone else.)

=======================================

CVAR:
Buy_menu 0/1 (Turns on the buy menu plugin. Default-1)
Buy_showusage 0/1 (Shows the usage in a client chat. Default - 1)
--------------
Replace the $ with the cost of the power you wish to choose.
Buy_silentwalk $ | Default - 1000
Buy_noclip $ | Default - $6000
Buy_chameleon $ |Default - $8000
Buy_unlimitedammo $ | Default - $3500
Buy_invisibility $ | Default - $16000
Buy_noflash $ | Default - $1500
Buy_norecoil $ | Default - $4500
Buy_speed $ | Default - $10000

=======================================

Commands:
say /buy - Displays the buy menu.
say_team /buy - Displays the buy menu.

bind v "say /buymenu" - Simple bind. If you press v, the buymenu appears.
Note: You can replace v to whatever key you wish. This is an example.

=======================================

Installation:
1. Download the buy_menu.amxx file.
2. Go to your configs folder located in cstrike\addons\amxmodx\configs\
3. Find plugins.ini and open it.
4. Go to the last part of it and type, "buy_menu.amxx" without the quotes.
5. If your server is up, you must restart your server or change the map.
for it to take effect.

=======================================

To do:
Add more powers.
Add more cvars.
Fix bugs.

Logs:
2/9/08 09:22 P.M - Final Version Up.
2/3/08 06:28 P.M - Readded silent walk. Bug Fixed.
2/2/08 06:11 P.M - "Silent Walk" is effected to everyone on the server. Power Removed.
2/2/08 058 P.M - Plugin experienced bugs. Fixed.
2/1/08 05:13 P.M - Rewrote whole plugin and much shorter. (fxfighter!)
2/1/08 03:54 P.M - Rewrote speed & showusage plugin. (Special thanks to fxfighter!)
2/1/08 12:52 A.M - Reread the script once more and fixed all errors.
2/1/08 127 A.M - Update the script with the show usage command/cvar.

Current Version:
v1.8

=======================================

Enjoy, this is my second plugin release!


Attached Files
File Type: sma Get Plugin or Get Source (Buy_Menu.sma - 2996 views - 5.0 KB)
__________________
BeastGaming Community - Map Maker & Coder.

Last edited by imindfreak; 04-04-2010 at 14:26.
imindfreak is offline
Killer12201
Senior Member
Join Date: Dec 2007
Old 01-31-2008 , 21:34   Re: Buy Menu v1.0 [UPDATED]
Reply With Quote #2

Nice and I have played in your server before. I played under Ibringpain.
__________________
Killer12201 is offline
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 01-31-2008 , 22:20   Re: Buy Menu v1.0 [UPDATED]
Reply With Quote #3

nice, ill look at the code later . i wish i could test but my server is down atm.
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
Old 02-01-2008, 00:28
imindfreak
This message has been deleted by Emp`. Reason: No karma whoring.
Old 02-01-2008, 01:17
fxfighter
This message has been deleted by fxfighter. Reason: gfaw
imindfreak
Senior Member
Join Date: Oct 2007
Location: 127.0.0.1
Old 02-01-2008 , 13:26   Re: Buy Menu v1.2 [UPDATED]
Reply With Quote #4

yes, that one has alot of spam on your server and some of the spelling is misspelt, grammer is wrong, and some functions are bad. one last thing is it doesn't state the price of the item on the menu which is bad too.

cheers
__________________
BeastGaming Community - Map Maker & Coder.
imindfreak is offline
Old 02-01-2008, 15:10
fxfighter
This message has been deleted by fxfighter. Reason: gfaw
imindfreak
Senior Member
Join Date: Oct 2007
Location: 127.0.0.1
Old 02-01-2008 , 15:15   Re: Buy Menu v1.2 [UPDATED]
Reply With Quote #5

for his chat/hud message displaying info on how to use, it says that same thing for every new round you play, so lets say you start a new round, it says it, then once the round is over, and you go back to spawn, it spams it again for each players. so if theres 5 players on the map, it will say that 5 times on the server side chat. it basicly it spams. hope that helps
__________________
BeastGaming Community - Map Maker & Coder.
imindfreak is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 02-01-2008 , 15:25   Re: Buy Menu v1.2 [UPDATED]
Reply With Quote #6

just print it on the log event for round start instead of removing it completely.....
And can you tell me what this is good for? dosent make eny sense-.-
PHP Code:
public showUsage(id) {
 if ( !
get_cvar_num("buy_menu") || !get_cvar_num("buy_showusage") )
  return 
PLUGIN_HANDLED
 
if ( !get_cvar_num("buy_menu") ) {
  
client_print(idprint_chat"[BUY] Type /buy to open up the buy menu!")
 } else {
  
client_print(idprint_chat"[BUY] Type /buy to open up the buy menu!")
 }
 return 
PLUGIN_HANDLED

cheek this once before the switch instead of doing it in every case
Quote:
if(get_cvar_num("buy_menu") == 0)
{
client_print(id, print_chat, "[Buy] This Plugin Is Disabled.")
return PLUGIN_HANDLED
}
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 02-01-2008 at 15:29.
fxfighter is offline
Send a message via MSN to fxfighter
imindfreak
Senior Member
Join Date: Oct 2007
Location: 127.0.0.1
Old 02-01-2008 , 15:28   Re: Buy Menu v1.2 [UPDATED]
Reply With Quote #7

yes, its for once u join the server, it will display that chat only once for the whole time you play in the server, if you reconnect, it will display it again. it works, try it yourself
__________________
BeastGaming Community - Map Maker & Coder.

Last edited by imindfreak; 02-01-2008 at 15:28. Reason: bleh
imindfreak is offline
Old 02-01-2008, 15:31
fxfighter
This message has been deleted by fxfighter. Reason: gfaw
imindfreak
Senior Member
Join Date: Oct 2007
Location: 127.0.0.1
Old 02-01-2008 , 15:33   Re: Buy Menu v1.2 [UPDATED]
Reply With Quote #8

oh yeah, i see what you mean. forgot about that.
__________________
BeastGaming Community - Map Maker & Coder.
imindfreak is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 02-01-2008 , 15:38   Re: Buy Menu v1.2 [UPDATED]
Reply With Quote #9

This is just insane each 0.1 sec you make a loop that set sv_maxspeed to 1000 and you do that Times*players on server.
and not only that you change thare maxspeed aswell this shuld lagg as XXX or krash the server.

PHP Code:
public plugin_init() {
set_task(0.1,"fast",0,"",0,"b")
}
 
public 
fast() 

 for(new 
i=0;i<=32;i++) 
 { 
  if(
is_user_connected(i)) 
  { 
   if(
speed[i]) 
   { 
    
server_cmd("sv_maxspeed 1000"
    
set_user_maxspeed(i,1000.0
   } 
  } 
 } 
 return 
PLUGIN_HANDLED 

so if 30 players are playing then you do server_cmd("sv_maxspeed 1000")
30times each 0.1 sec
300times each 1.0sec
but you did at least cheek if speed was 0 so not 300 times each second but its still god dam high
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 02-01-2008 at 15:44.
fxfighter is offline
Send a message via MSN to fxfighter
imindfreak
Senior Member
Join Date: Oct 2007
Location: 127.0.0.1
Old 02-01-2008 , 15:54   Re: Buy Menu v1.2 [UPDATED]
Reply With Quote #10

k updated. v1.3, view front page and uh, +karma for helping
__________________
BeastGaming Community - Map Maker & Coder.

Last edited by imindfreak; 02-01-2008 at 15:58.
imindfreak is offline
Old 02-01-2008, 15:59
fxfighter
This message has been deleted by fxfighter. Reason: gfaw
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 20:36.


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