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.