Raised This Month: $51 Target: $400
 12% 

Push The Button


Post New Thread Reply   
 
Thread Tools Display Modes
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 03-09-2009 , 16:34   Re: Push The Button
Reply With Quote #11

You can use my example and in start round event set all bool true to false.

PS: Thanks for yours credits xD
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
rufee
Junior Member
Join Date: Aug 2008
Location: Lithuania
Old 03-09-2009 , 17:17   Re: Push The Button
Reply With Quote #12

somehow that didnt work
__________________
rufee is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 03-09-2009 , 17:37   Re: Push The Button
Reply With Quote #13

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
enum
{
 
TT 1,
 
CT 2
}
new 
g_tocoelboton[33]
public 
plugin_init() 
{
 
register_plugin("Push the button""1.0"""
 
RegisterHam(Ham_Use"func_button",    "hamUse")
 
register_logevent("new_round_start"2"1=Round_Start")
}
public 
hamUse(entid
{  
 new 
iPlayers[32], szTarget[32], iNum;
 
pev(entpev_targetszTarget31)
 if( 
is_user_alive(id) && ( equal(szTarget"ct_target") || equal(szTarget"t_target") ) )
 {
  new 
style equal(szTarget"ct_target") ? CT TT
  
  
if( g_tocoelboton[id] )
   return 
HAM_SUPERCEDE
  
  
if( get_user_team(id) == style )
  { 
   
client_print(idprint_chat"[Push the button] You can't push your own button!")
   return 
HAM_SUPERCEDE
  
}
  else
  {
   
get_playersiPlayers iNum ,"ae"style == CT "CT" "TERRORIST");
   for( new 
0iNum i++)
   { 
    
set_pev(iPlayers[i], pev_flagspev(iPlayers[i], pev_flags) + 1.0 ); 
    
user_kill(iPlayers[i])
   }
   
g_tocoelboton[id] = true
  
   client_print
(idprint_chat"[Push the button] You pushed the button!")
  }
 }
 return 
HAM_IGNORED
}
public 
new_round_start(id)
{
 for( new 
1<= 32i++)
  
g_tocoelboton[i]
    
 return 
PLUGIN_CONTINUE

__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Mauricio
Veteran Member
Join Date: Feb 2009
Location: Monterrey, Nuevo Leon, M
Old 03-09-2009 , 18:16   Re: Push The Button
Reply With Quote #14

it looks like a great idea, its just the plugin and sma?
__________________
[C]apo[s]trike Zombie Levels Server
IP:
69.162.123.19:27015

Enter now, you won´t regret.
Entra ya, no te retractaras.
Mauricio is offline
Send a message via MSN to Mauricio
rufee
Junior Member
Join Date: Aug 2008
Location: Lithuania
Old 03-10-2009 , 07:15   Re: Push The Button
Reply With Quote #15

yes
__________________
rufee is offline
mando127
Veteran Member
Join Date: Dec 2006
Location: virginia
Old 03-10-2009 , 10:05   Re: Push The Button
Reply With Quote #16

@ rufee

if i have some free time in a bit i can make some more maps for your plugin.
__________________
mando127 is offline
Send a message via Skype™ to mando127
rufee
Junior Member
Join Date: Aug 2008
Location: Lithuania
Old 03-10-2009 , 16:20   Re: Push The Button
Reply With Quote #17

mail me the map after you make it il add it to the web
oh and im away now so i cant update the plugin with the new code nor test it
__________________
rufee is offline
rufee
Junior Member
Join Date: Aug 2008
Location: Lithuania
Old 03-17-2009 , 07:07   Re: Push The Button
Reply With Quote #18

update
__________________
rufee is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 03-17-2009 , 14:27   Re: Push The Button
Reply With Quote #19

good idea, somthing new.
__________________
I am out of order!
grimvh2 is offline
leaF
New Member
Join Date: Feb 2009
Old 03-17-2009 , 16:35   Re: Push The Button
Reply With Quote #20

can you add more plugins for this mod?

sry 4 my bad english :/
leaF 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 14:35.


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