Raised This Month: $ Target: $400
 0% 

Flashbang


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
keVn
Member
Join Date: Jun 2006
Old 07-09-2006 , 15:06   Flashbang
Reply With Quote #1

Hey I've found the flashbang item that I've been looking for but you have to be next to the person to flashbang them. And it only works for about 2 seconds.

Quote:
// Item flashbang
public item_flashbang()
{
new arg[32], origin[3], id
read_argv(1,arg,31)
id = str_to_num(arg)
get_user_origin(id,origin)
new players[32], num
get_players(players,num,"ac")
for(new i = 0; i < num;i++)
{
new p_origin[3]
get_user_origin(players[i],p_origin)

if(get_distance(origin,p_origin) <= 70.0)
{
message_begin(MSG_ONE,gmsgFade,{0,0,0},player s[i])
write_short( 1<<15 )
write_short( 1<<12 )
write_short( 1<<12 )
write_byte( 255 )
write_byte( 255 )
write_byte( 255 )
write_byte( 255 )
message_end()
}
}
emit_sound(id,CHAN_BODY, "weapons/sfire-inslow.wav", 1.0, ATTN_NORM, 0, PITCH_HIGH)
return PLUGIN_HANDLED
Can someone edit it to make it work in like a 5 feet radius or something.
And make it last somewhat 10 seconds?
keVn 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 08:01.


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