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

C4 plant delay


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-16-2016 , 19:44   C4 plant delay
Reply With Quote #1

DESCRIPTION:
This plugin blocks planting C4 for a certain time (controlled by cvar), when you select the c4 one hud appears telling how long before you plant it, when you select any other weapon this menu closes.

CVARS:
c4_time // default 56

INCLUDES:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

DEFINE:
#define Weapon CSW_C4 // When you choosed the c4, the hud show
Attached Files
File Type: sma Get Plugin or Get Source (C4_delay.sma - 797 views - 1.3 KB)
File Type: txt c4_delay.txt (121 Bytes, 261 views)

Last edited by EFFx; 02-16-2016 at 20:04. Reason: My first topic, ahaha sorry
EFFx is offline
Old 02-16-2016, 19:47
EFFx
This message has been deleted by EFFx. Reason: Two auto message -.-
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 02-23-2016 , 11:51   Re: C4 plant delay
Reply With Quote #2

That won't work, I can tell you by just looking at the plugin_init section.
Don't post plugins before you test them
__________________
simanovich is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-25-2016 , 16:20   Re: C4 plant delay
Reply With Quote #3

I tested, worked with me, but i founded a error in show_hudmessage, others players that's terrorist and havent the c4, receive the hud. i want only for me, but with [id] the hud doenst work.
And i dont know delete the post, im junior member.

Last edited by EFFx; 02-25-2016 at 16:21.
EFFx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-11-2016 , 10:45   Re: C4 plant delay
Reply With Quote #4

Please learn more before creating plugins. Task_NoPlant pass no "id", but you are trying to use it :O
__________________
HamletEagle is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-11-2016 , 20:34   Re: C4 plant delay
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
Please learn more before creating plugins. Task_NoPlant pass no "id", but you are trying to use it :O
Sorry man, when i tested was working, but later i dont know why, no Works anymore.

I already tryied CantPlant[id] But the hud crash, not show.
EFFx 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 22:05.


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