Raised This Month: $ Target: $400
 0% 

give grenades when used.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 04-15-2005 , 23:05   give grenades when used.
Reply With Quote #1

how do i make a plugin when someone uses a grenade then 3 seconds later he gets another?

like he throws a Smoke Grenade...den 3 seconds later he gets another
n0obie4life is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-15-2005 , 23:38  
Reply With Quote #2

Use get_user_weapons, a loop, and some if statements. ;)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-16-2005 , 03:04  
Reply With Quote #3

Code:
#include <amxmodx> #include <csx> #include <fun> #define WAIT_TIME 3.0 public grenade_throw(index,greindex,wId) {    new parms[2];    parms[0] = index;    parms[1] = wId;    set_task(WAIT_TIME,"regive_weapon",index,parms,2); } public regive_weapon(parms[]) {    new id = parms[0];    new wId = parms[1];    if(is_user_alive(id)) {       new weaponname[32];       get_weaponname(wId,weaponname,31);       give_item(id,weaponname);    } }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 04-16-2005 , 03:06  
Reply With Quote #4

o.O. THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Now, look at V3x's topic. give him the most difficult ideas
to do ever!

whats csx btw?
n0obie4life is offline
Reply


Thread Tools
Display Modes

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 09:57.


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