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

[CS][Forward] client_buy


Post New Thread Reply   
 
Thread Tools Display Modes
Oddeye
Member
Join Date: Mar 2010
Old 02-07-2011 , 15:12   Re: [CS][Forward] client_buy
Reply With Quote #21

Quote:
Originally Posted by Arkshine View Post
@Oddeye: plugin updated.
hehe it works, only problem I had though wasn't with the compile of your script but with my compile, it kept saying that CSW_SHIELD did not exist...

So I figured it had something to do with your global variables so I just merge you script into mine and it worked.

Really big thanks for your help on making the forward, definately posting credit thats due ^^

I would post my script to show you what I done but its only half assed at best now... still got to develop a menu, add in the rest of the "items" now that i can, add a few more cvars to allow restrictions and disable the buy system.

Basically when it done it would complete replace the buy system in cs and add in the following abilities

change cost of any item
sell any item (single or all), except shield I cant seem to get it removed from player..
restrict any item based on teams
restrict the normal buy system for custom buy systems

lol you probably would look at it and say you can make it more efficent with orpheu...

so i'll post it using the oprheu forward instead of connor forward ^^

that way you or anyone else can help me streamline it down to a bare minimum

Last edited by Oddeye; 02-07-2011 at 15:40.
Oddeye is offline
Oddeye
Member
Join Date: Mar 2010
Old 02-07-2011 , 15:26   Re: [CS][Forward] client_buy
Reply With Quote #22

Quote:
Originally Posted by ConnorMcLeod View Post
Autobuy et rebuy both trigger the cstrike forward Cs_Internal_Command, i guess you didn't use it in your plugin and that's why you were not able to catch it.
Thanks for the info I didn't even realize that forward existed, I looked through the cstrike include file didnt see it in their.

P.S. Hahaha Found It!!! it blends in at the bottom of the include file lol^^

hmm ..... interesting I wonder if it is posible to block autobuy cmd and redirect it to a different command within the cs_internal_command forward...

Last edited by Oddeye; 02-07-2011 at 15:32.
Oddeye is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-07-2011 , 15:47   Re: [CS][Forward] client_buy
Reply With Quote #23

PLEASE USE THE "EDIT" BUTTON.

Yes, you can block the forward and send engclient_cmd(id, ...) there.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-07-2011 , 16:08   Re: [CS][Forward] client_buy
Reply With Quote #24

Quote:
change cost of any item
The most efficient method is to make memory patches. I will make it some day.

The others things listed are easy to do.
Anyway, that's something you should talk in the scripting section.
__________________
Arkshine is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 02-07-2011 , 16:27   Re: [CS][Forward] client_buy
Reply With Quote #25

Nice job, Connor and Arkshine.
__________________
Hi.
Kreation is offline
Oddeye
Member
Join Date: Mar 2010
Old 02-07-2011 , 16:37   Re: [CS][Forward] client_buy
Reply With Quote #26

Quote:
Originally Posted by ConnorMcLeod View Post
PLEASE USE THE "EDIT" BUTTON.

Yes, you can block the forward and send engclient_cmd(id, ...) there.
kk thanks sry about that was thinking I should keep the post towards specifc users but i could of just used edit there^^
Oddeye is offline
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 02-09-2011 , 10:51   Re: [CS][Forward] client_buy
Reply With Quote #27

I do not really get to understand amxx and stuff because I do not speak English.
do not get to understand simple things.
I leave here my request that I think is missing in aliedmoders,
someone please make a tutorial on how to speak English, thank you.
__________________
rx1983 is offline
Send a message via MSN to rx1983
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-09-2011 , 11:51   Re: [CS][Forward] client_buy
Reply With Quote #28

Spinhack detected.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Oddeye
Member
Join Date: Mar 2010
Old 02-10-2011 , 09:10   TO: ConnorMcLeod
Reply With Quote #29

Thanks for your help the other day regarding CS_InternalCommand...

Because of that I was able to create a numerical engine of your client_buy forward for use in my CS Buy Manger that I'm developing..

You can check it out in a another script I posted specifically made toward weapon restrictions. Also gave credit to you and arkshine on the script^^

http://forums.alliedmods.net/showthread.php?t=149675
Oddeye is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-26-2011 , 08:05   Re: [CS][Forward] client_buy
Reply With Quote #30

You should include celltrie in client_buy.sma. When I try to compile I get this since it is missing:

Code:
Line: static Trie:tAliasesIds = Invalid_Trie
*Solved, turns out my includes are old :-B

Also, install instructions would be nice. This is the first forward\lib of this type that I installed and it took me a minute to figure out. Good job though, it works great.
__________________

Last edited by Bugsy; 10-26-2011 at 08:28.
Bugsy 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 21:37.


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