Raised This Month: $ Target: $400
 0% 

[ANY|ZR] Buy weapons by commands (!he, !smoke, etc) used in zombie servers


Post New Thread Reply   
 
Thread Tools Display Modes
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 05-23-2016 , 18:13   Re: [ANY] Buy weapons by commands (!he, !smoke, etc) used in zombie servers
Reply With Quote #21

it's possible to change "SDKHooks_DropWeapon" to another entity? SDKHooks_DropWeapon don't work on my server.
NanoC is offline
Send a message via Skype™ to NanoC
Cooky
Veteran Member
Join Date: Jun 2010
Location: 127.0.0.1
Old 06-02-2016 , 07:06   Re: [ANY] Buy weapons by commands (!he, !smoke, etc) used in zombie servers
Reply With Quote #22

If I use the command it's just saying: You have bought a weapon_negev. Is there a way to print the normal name? Something with phrases I think?
Cooky is offline
shtspk
Junior Member
Join Date: Dec 2015
Old 06-04-2016 , 15:58   Re: [ANY] Buy weapons by commands (!he, !smoke, etc) used in zombie servers
Reply With Quote #23

Any simple change i can do with the code for use "only with admin flag"?
shtspk is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 06-05-2016 , 17:30   Re: [ANY] Buy weapons by commands (!he, !smoke, etc) used in zombie servers
Reply With Quote #24

Quote:
Originally Posted by shtspk View Post
Any simple change i can do with the code for use "only with admin flag"?
Quote:
Originally Posted by Cooky View Post
If I use the command it's just saying: You have bought a weapon_negev. Is there a way to print the normal name? Something with phrases I think?
Quote:
Originally Posted by NanoC View Post
it's possible to change "SDKHooks_DropWeapon" to another entity? SDKHooks_DropWeapon don't work on my server.
Support please.

Last edited by NanoC; 06-05-2016 at 17:32.
NanoC is offline
Send a message via Skype™ to NanoC
Abusador
Member
Join Date: Sep 2015
Old 06-08-2016 , 19:54   Re: [ANY] Buy weapons by commands (!he, !smoke, etc) used in zombie servers
Reply With Quote #25

How to use /flash ?
Abusador is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 06-09-2016 , 19:22   Re: [ANY] Buy weapons by commands (!he, !smoke, etc) used in zombie servers
Reply With Quote #26

Quote:
Originally Posted by Abusador View Post
How to use /flash ?
weapon_flashbang

for smoke and fire grenade:

weapon_smokegrenade
weapon_hegrenade
NanoC is offline
Send a message via Skype™ to NanoC
Cooky
Veteran Member
Join Date: Jun 2010
Location: 127.0.0.1
Old 06-18-2016 , 11:13   Re: [ANY] Buy weapons by commands (!he, !smoke, etc) used in zombie servers
Reply With Quote #27

Quote:
Originally Posted by Cooky View Post
If I use the command it's just saying: You have bought a weapon_negev. Is there a way to print the normal name? Something with phrases I think?
Any news yet?
Cooky is offline
Sw33T3R
AlliedModders Donor
Join Date: Mar 2014
Old 09-02-2016 , 18:52   Re: [ANY] Buy weapons by commands (!he, !smoke, etc) used in zombie servers
Reply With Quote #28

@Franc1sco
How can i hide chat triggers in this plugin?
Its a bit annoying
Sw33T3R is offline
InfoTheRalle
Member
Join Date: Sep 2016
Old 10-25-2016 , 03:38   Re: [ANY] Buy weapons by commands (!he, !smoke, etc) used in zombie servers
Reply With Quote #29

How we can hide the chat trigger mate?.

greetings!
InfoTheRalle is offline
entervoid
Junior Member
Join Date: Jul 2017
Old 07-14-2017 , 09:16   Re: [ANY] Buy weapons by commands (!he, !smoke, etc) used in zombie servers
Reply With Quote #30

Quote:
If I use the command it's just saying: You have bought a weapon_negev. Is there a way to print the normal name? Something with phrases I think?
Although, you posted it a long time ago, maybe you lost interest or found the solution. I will post my solution here in case someone wants to customize those chat-messages, too:


PHP Code:
char names[64];
KvGetString(kv"name"namessizeof(names));// Gets the string stored in "name" from the config and stores it in "names". You have to add "name" manually to the config (look below).

PrintToChat(client"buy message here %s buy message there"names);// Prints the name of that weapon stored in "names". Write your buy message here 
This is how the config should look like:
Code:
	"!he" // the command to use in chat
	{
		"name" "HEGrenade" <--- Actual weaponname to display in the chat-message
		"weapon" "weapon_hegrenade" // weapon name (only for GivePlayerItem())
		"price" "300" // weapon price
		"times" "1" // number of times that you can buy this weapon in the round
	}

Oh, and @Frans1sco: There's a problem with the command itself. It prints the chat message when I write nothing but press enter. It shows the message but without the values (i.e weaponname). How can it be fixed?

And another question: Is it possible to write that plugin with RegConsoleCmd() instead of AddCommandListener()?

Last edited by entervoid; 07-14-2017 at 09:17.
entervoid 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 15:14.


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