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

[CS1.6|CZ] Random C4 Time


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 11-02-2011 , 17:52   [CS1.6|CZ] Random C4 Time
Reply With Quote #1

[Description]
This plugin set a random time for c4 explode by map/round.

[Read this first]
Minimun original CS time: 10 seconds.
Maximun original CS time: 90 seconds.
If you want to hack this original time use this plugin: Server Cvars Unlocker

[Cvars]
Code:
// 1 by round, 0 by map (Default: 1)
amxx_random_c4time <1 or 0>
// Min time for random c4 time (Default: 10)
amxx_random_c4time_mintime <value>
// Max time for random c4 time (Default: 35)
amxx_random_c4time_maxtime <value>
[Modules]
Fakemeta.

[Messages Screenshots]
No bomb target at the map.


Random C4 Time by map.


Random C4 Time by round.


[Instaling]
- Put the file random_c4_time.amxx in: amxmodx/plugins/
- Open the file amxmodx/configs/plugins.ini and write random_c4_time.amxx

[Credits]
Dark Style(me) - Idea and creation.

[Changelog]
Code:
0.0.1b 	- 	First release playable.
0.0.2	-	Removed fm_random_time,
Added difference between second and seconds.
0.0.3	-	Added a new event metod,
Added a search of bomb target on map.
0.0.4	-	Remove search of bomb target,
Changed some functions.
0.0.5	-	Optimized functions.
0.0.6	-	Change some things.
Attached Thumbnails
Click image for larger version

Name:	log.png
Views:	1090
Size:	9.8 KB
ID:	95522   Click image for larger version

Name:	map.png
Views:	1019
Size:	6.7 KB
ID:	95523   Click image for larger version

Name:	round2.png
Views:	980
Size:	29.5 KB
ID:	95524  
Attached Files
File Type: sma Get Plugin or Get Source (random_c4_time.sma - 1022 views - 2.1 KB)

Last edited by Dark Style; 11-19-2011 at 17:38. Reason: Version 0.0.6
Dark Style is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 11-02-2011 , 17:59   Re: Random C4 Time
Reply With Quote #2

#define fm_random_time(%1,%2) random_num(%1,%2)

lol


Pretty sure mp_c4timer already has a hard-coded minimum btw.
__________________

Last edited by DarkGod; 11-02-2011 at 18:00.
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 11-02-2011 , 18:04   Re: Random C4 Time
Reply With Quote #3

what the problem using a define fm ?

Last edited by Dark Style; 11-02-2011 at 18:04.
Dark Style is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-03-2011 , 15:10   Re: Random C4 Time
Reply With Quote #4

Quote:
Originally Posted by Dark Style View Post
what the problem using a define fm ?
What is the point to use such macro ?
__________________
Arkshine is offline
capozblack
Member
Join Date: Mar 2011
Location: Portugal
Old 11-02-2011 , 18:25   Re: Random C4 Time
Reply With Quote #5

Very good, served me on my servers
__________________
capozblack is offline
Send a message via MSN to capozblack
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-03-2011 , 15:01   Re: [CS1.6|CZ] Random C4 Time
Reply With Quote #6

Nice plugin man
__________________
kramesa is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-03-2011 , 15:42   Re: [CS1.6|CZ] Random C4 Time
Reply With Quote #7

https://forums.alliedmods.net/showthread.php?t=42320
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-03-2011 , 15:59   Re: [CS1.6|CZ] Random C4 Time
Reply With Quote #8

Quote:
Originally Posted by Emp` View Post
Author is banned + c4 timer is set at round start, after the game has taken the time in account and put it in memory, so i think that a well coded plugin could be considerated.




PHP Code:
    register_logevent("event_newround"2"1=Round_Start"); 
This is not new round, this is round start, set the time at new round, before the game checks its value.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-03-2011 at 16:01.
ConnorMcLeod is offline
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 11-03-2011 , 16:39   Re: [CS1.6|CZ] Random C4 Time
Reply With Quote #9

I think in register HLTV event, but it will be godd ?
Dark Style is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 11-03-2011 , 19:01   Re: [CS1.6|CZ] Random C4 Time
Reply With Quote #10

Quote:
Originally Posted by Dark Style View Post
I think in register HLTV event, but it will be godd ?
http://forums.alliedmods.net/showthread.php?t=42159
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
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 10:07.


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