Raised This Month: $ Target: $400
 0% 

Need help with custom block!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Callesson
Member
Join Date: Jan 2010
Old 01-29-2010 , 18:31   Need help with custom block!
Reply With Quote #1

Hey guys!

I have been trying to fix my own custom block ( Flashbang block, if you walk on it it will give you one flash).

I tried this one ----> http://forums.alliedmods.net/showthread.php?t=112757
but the only thing i got was errors...

So i used this one instead to help me ----> http://forums.alliedmods.net/showthr...t=86907&page=3
and it did work, i changes this code ---->

(here its gives CT one hegranade)

if(hegiven[id] == 0){
give_item(id, "weapon_hegranade");
hegiven[id] = 1;

To ---->

(here its gives T one flashbang)

if(hegiven[id] == 0){
give_item(id, "weapon_flashbang");
hegiven[id] = 32;

but here is the problem!

I can only use the block once in one round! If there is two terrorist only one can use it :S
Also if you already have 2 flash, it wont give you another one and after that you cant use it more...

What i wanna add to this block is!
* I want it to have cool down!
* I want it to give you flash even tho you have 2 of them.
* I want more then just one to use it.
* I want it to have this text like "cooldown 50,49,48 sec" if you already used it!
* Only T should be able to use it!

And YES i have search a long time for answer and i also asked my friend but he couldn't figure it out...
And i also tried to copy the Invisible code and modify it so it would work, but i do not have much experiences so it didn't work ^^

So I'm very happy if someone could help me with this, it would be very great.
Callesson is offline
 



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 07:28.


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