Raised This Month: $ Target: $400
 0% 

grenade event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 04-14-2005 , 03:29   grenade event
Reply With Quote #1

can any help me with a nade event? So far i got this but its not working

Code:
public plugin_init() { 

register_event("TextMsg", "throw_nade", "be", "2&#Game_radio", "4&#Fire_in_the_hole")

}


public throw_nade() {

	new name[32]
	read_data(3, name, 31)
	new id = get_user_index(name)

	if(!is_user_alive(id) && !is_user_connected(id)) {

	new clip, ammo
	new weapon = get_user_weapon(id, clip, ammo)
	
	if(weapon == CSW_HEGRENADE) {
	
	//codes
   
	}
    }
	return PLUGIN_HANDLED
}
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-14-2005 , 16:46  
Reply With Quote #2

Why do you guys still use that lame, old-fashioned method?

Code:
#include <csx> public grenade_throw(index, greindex, wId) {    // index == player id    // greindex == entity id    // wId == weapon id (CSW_*) }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 04-15-2005 , 05:25  
Reply With Quote #3

Quote:
Originally Posted by XxAvalanchexX
Why do you guys still use that lame, old-fashioned method?

Code:
#include <csx> public grenade_throw(index, greindex, wId) {    // index == player id    // greindex == entity id    // wId == weapon id (CSW_*) }
is this called automaticly?
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-15-2005 , 14:01  
Reply With Quote #4

Yes, it's a forward, but you have to include csx.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 04-16-2005 , 04:44  
Reply With Quote #5

forgot to say thank you
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-17-2005 , 21:11  
Reply With Quote #6

Are these valid radio messages?
Quote:
Cover_me
You_take_the_point
Hold_this_position
Regroup_team
Follow_me
Taking_fire
Go_go_go
Team_fall_back
Stick_together_team
Get_in_position_and_wait
Storm_the_front
Report_in_team
Affirmative
Roger_that
Enemy_spotted
Need_backup
Sector_clear
In_position
Reporting_in
Get_out_of_there
Negative
Enemy_down
Hostage_down
Fire_in_the_hole
__________________
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
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 10:03.


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