Raised This Month: $32 Target: $400
 8% 

Admin Flash


Post New Thread Reply   
 
Thread Tools Display Modes
datwinkle
BANNED
Join Date: May 2006
Location: Virginia
Old 06-04-2007 , 22:16   Re: Admin Flash
Reply With Quote #31

Quote:
Originally Posted by unseenghost View Post
how do i make it NOT show that im doing it to someone
amx_cvar amx_show_activity 0
datwinkle is offline
Send a message via AIM to datwinkle
Tiny
Senior Member
Join Date: Jun 2004
Location: France
Old 06-05-2007 , 17:53   Re: Admin Flash
Reply With Quote #32

Meaby you should add a cvar for the flashbang time. That would be great.
__________________
KiKoo et Bisous
Tiny is offline
Lisa
Senior Member
Join Date: Jan 2007
Old 06-17-2007 , 03:01   Re: Admin Flash
Reply With Quote #33

Is there anyway to remove the flash sound from being played on their screen? So they don't know someone is repeatedly flashing them jut by sound so they can fake being blind.
Lisa is offline
MasterAdy
Junior Member
Join Date: Mar 2008
Location: In a galaxy far , far aw
Old 08-24-2009 , 19:04   Re: Admin Flash
Reply With Quote #34

Quote:
Originally Posted by Gung Ho View Post
AssKicR are you going to extend the flash time on this plugin?
Code:
#include <amxmodx>
#include <amxmisc>

new gMsgScreenFade 

public admin_flash(id,level,cid) { 
   if (!cmd_access(id,level,cid,2)) { 
      return PLUGIN_HANDLED 
   } 

   new victim[32] 
   read_argv(1,victim,31) 
//   new arg2[32]
//   read_argv(2,arg2,31)
//   new number=strtonum(arg2)
//   if (number==0) number=1

   if (victim[0]=='@') { 
      new team[32], inum 
      get_players(team,inum,"e",victim[1]) 
      if (inum==0) { 
         console_print(id,"[AMX] No clients found on such team.") 
         return PLUGIN_HANDLED 
      } 
      for (new i=0;i<inum;++i) { 
         Flash(team[i]) 
         client_print(id,print_chat,"[AMX] You Flashed all %s's.",victim[1]) 
         //client_print(id,print_chat,"[AMX] You Flashed all %s's for %i secs.",victim[1],number) 
      } 
   } 
   else if (victim[0]=='*') { 
      new all[32], inum 
      get_players(all,inum) 
      for (new i=0;i<inum;++i) { 
         Flash(all[i])
         client_print(id,print_chat,"[AMX] You Flashed everyone.")
         //client_print(id,print_chat,"[AMX] You Flashed everyone for %i secs.",number) 
      } 
   } 
   else { 
      new player = cmd_target(id,victim,0) 
      new playername[32] 
      get_user_name(player,playername,31) 

      if (!player) {  
         return PLUGIN_HANDLED
      } 
      Flash(player)
      client_print(id,print_chat,"[AMX] You Flashed %s.",playername)
      //client_print(id,print_chat,"[AMX] You Flashed %s for %i secs.",playername,number) 
   } 

   return PLUGIN_HANDLED 
} 

public Flash(id) {
    message_begin(MSG_ONE,gMsgScreenFade,{0,0,0},id) 
    write_short( 1<<15 ) 
    write_short( 1<<10 )
    write_short( 1<<64 )
    write_byte( 255 ) 
    write_byte( 255 ) 
    write_byte( 255 ) 
    write_byte( 255 ) 
    message_end()
    emit_sound(id,CHAN_BODY, "weapons/flashbang-2.wav", 1.0, ATTN_NORM, 0, PITCH_HIGH)
}

public plugin_init() { 
   register_plugin("Admin Flash","1.0","AssKicR") 
   register_concmd("amx_flash","admin_flash",ADMIN_LEVEL_A,"< Nick, UniqueID, #userid, @TEAM, or * > flashes selected client(s)") 
   gMsgScreenFade = get_user_msgid("ScreenFade") 
   return PLUGIN_CONTINUE 
}

public plugin_precache()
{
    // FLASHBANG SOUND
    precache_sound( "weapons/flashbang-2.wav" )
}
Try this , it must last at least 7 seconds .
MasterAdy is offline
Rosenstein
Senior Member
Join Date: Feb 2008
Location: Serbia
Old 06-12-2010 , 13:05   Re: Admin Flash
Reply With Quote #35

PHP Code:
write_short1<<15 
write_short1<<14 )
write_short1<<12 
This is the sweet spot.
__________________
+1
Rosenstein is offline
Agoo
New Member
Join Date: Nov 2011
Old 11-04-2011 , 11:54   Re: Admin Flash
Reply With Quote #36

#include <amxmod>.
#include <amxmisc>
new gMsgScreenFade
public admin_flash(id,level,cid) {
if (!cmd_access(id,level,cid,3)) {
return PLUGIN_HANDLED
}
new victim[32]
read_argv(1,victim,31)
new arg2[32]
read_argv(2,arg2,31)
new number=strtonum(arg2)
if (number==0) number=1

if (victim[0]=='@') {
new team[32], inum
get_players(team,inum,"e",victim[1])
if (inum==0) {
console_print(id,"[AMX] No clients found on such team.")
return PLUGIN_HANDLED
}
for (new i=0;i<inum;++i) {
new ids[1]
ids[0] = team
Flash(ids)
if(number > 1)
set_task(1.0, "Flash", 5145102+team, ids, 1, "a", number-2)
emit_sound(team,CHAN_BODY, "weapons/flashbang-2.wav", 1.0, ATTN_NORM, 0, PITCH_HIGH)
//client_print(id,print_chat,"[AMX] You Flashed all %s's.",victim[1])
client_print(id,print_chat,"[OGYAi] A{u{FH %s's `@ %i .",victim[1],number)
}
}
else if (victim[0]=='*') {
new all[32], inum
get_players(all,inum)
for (new i=0;i<inum;++i) {
new ids[1]
ids[0] = all
Flash(ids)
if(number > 1)
set_task(1.0, "Flash", 2422141+all, ids, 1, "a", number-2)
emit_sound(all,CHAN_BODY, "weapons/flashbang-2.wav", 1.0, ATTN_NORM, 0, PITCH_HIGH)
//client_print(id,print_chat,"[AMX] You Flashed everyone.")
client_print(id,print_chat,"[OGYAi] A{u{FC@H %i .",number)
}
}
else {
new player = cmd_target(id,victim,0)
new playername[32]
get_user_name(player,playername,31)
if (!player) {
return PLUGIN_HANDLED
}
new ids[1]
ids[0] = player
Flash(ids)
if(number > 1)
set_task(1.0, "Flash", 34571124+player, ids, 1, "a", number-2)
emit_sound(player,CHAN_BODY, "weapons/flashbang-2.wav", 1.0, ATTN_NORM, 0, PITCH_HIGH)
//client_print(id,print_chat,"[AMX] You Flashed %s.",playername)8 s!
client_print(id,print_chat,"[OGYAi] A{u{F %s `@ %i .",playername,number)
}
return PLUGIN_HANDLED
}
public Flash(ids[]) {
new id = ids[0]"
message_begin(MSG_ONE,gMsgScreenFade,{0,0,0}, id)
write_short( 1<<15 )
write_short( 3600 )
write_short( 1<<12 )
write_byte( 255 )
write_byte( 255 )
write_byte( 255 )
write_byte( 255 )
message_end()
}
public plugin_init() {
register_plugin("Admin Flash","1.1","AssKicR")
register_concmd("amx_flash","admin_flash",ADM IN_LEVEL_A,"< Wr, #s, @, * > <time in sec> flashes selected client(s)")
gMsgScreenFade = get_user_msgid("ScreenFade")
return PLUGIN_CONTINUE
}
public plugin_precache()
{
// FLASHBANG SOUND
precache_sound( "weapons/flashbang-2.wav" )

where's wrong???????????????
Agoo is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 11-04-2011 , 12:09   Re: Admin Flash
Reply With Quote #37

Quote:
Originally Posted by Agoo View Post
where's wrong???????????????
What do you mean? Is your plugin not working?
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Agoo
New Member
Join Date: Nov 2011
Old 11-04-2011 , 13:10   Re: Admin Flash
Reply With Quote #38

yes,can you modify??
Agoo is offline
Agoo
New Member
Join Date: Nov 2011
Old 11-09-2011 , 00:12   Re: Admin Flash
Reply With Quote #39

who can help me?? http://www.dt-club.net/forum/?fromuid=35308
Agoo is offline
Reply



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 15:36.


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