Raised This Month: $ Target: $400
 0% 

[HELP] How to Make Free grenades


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NesQu
Member
Join Date: Feb 2014
Old 12-06-2014 , 16:55   [HELP] How to Make Free grenades
Reply With Quote #1

That every player can buy SMOKE Grenade free in all maps. Even awp_india, 35hp
NesQu is offline
Old 12-06-2014, 17:07
BaD CopY
This message has been deleted by BaD CopY.
NesQu
Member
Join Date: Feb 2014
Old 12-06-2014 , 17:15   Re: [HELP] How to Make Free grenades
Reply With Quote #2

No, I need to Smoke Grenade was free on all maps.
No chat commands please...
NesQu is offline
Old 12-06-2014, 17:21
BaD CopY
This message has been deleted by BaD CopY.
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-06-2014 , 17:21   Re: [HELP] How to Make Free grenades
Reply With Quote #3

Not tested, requires AMXX 1.8.3+

Code:
#include <amxmodx>
#include <cstrike>

public CS_OnBuyAttempt(id, item)
{
	if (item == CSI_SMOKEGRENADE)
	{
		cs_set_user_money(id, cs_get_user_money(id)+300);
		return PLUGIN_CONTINUE;
	}
}
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
NesQu
Member
Join Date: Feb 2014
Old 12-06-2014 , 17:36   Re: [HELP] How to Make Free grenades
Reply With Quote #4

YamiKaitou
/tmp/textDTSqJS.sma(6) : error 017: undefined symbol "CSI_SMOKEGRENADE"
/tmp/textDTSqJS.sma(11) : warning 209: function "CS_OnBuyAttempt" should return a value
NesQu is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-06-2014 , 17:43   Re: [HELP] How to Make Free grenades
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
requires AMXX 1.8.3+
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
NesQu
Member
Join Date: Feb 2014
Old 12-06-2014 , 17:44   Re: [HELP] How to Make Free grenades
Reply With Quote #6

1.8.2 can do to please ?
NesQu is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-06-2014 , 17:50   Re: [HELP] How to Make Free grenades
Reply With Quote #7

Not tested, requires https://forums.alliedmods.net/showthread.php?t=149380

Code:
#include <amxmodx>
#include <cstrike>
#include <cl_buy>

public client_buy(id, item)
{
	if (item == CSW_SMOKEGRENADE)
	{
		cs_set_user_money(id, cs_get_user_money(id)+300);
		
	}
	return PLUGIN_CONTINUE;
}
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-06-2014 , 19:30   Re: [HELP] How to Make Free grenades
Reply With Quote #8

Quote:
Originally Posted by YamiKaitou View Post
Nice sharing. This forward will be very useful. ;)
zmd94 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 11:19.


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