Raised This Month: $ Target: $400
 0% 

grenade event


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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