Raised This Month: $ Target: $400
 0% 

Shooting Block


Post New Thread Reply   
 
Thread Tools Display Modes
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 03-04-2007 , 12:21   Re: Shooting Block
Reply With Quote #11

I think PlayerPreThink is ok
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-04-2007 , 12:21   Re: Shooting Block
Reply With Quote #12

Quote:
Originally Posted by SAMURAI16 View Post
Also instead of prethink, use "FM_CmdStart" forward to hook attack.
Prethink make lag
No, then the animations wouldn't be played, and you wouldn't be able to shoot at all.

Quote:
Originally Posted by FormulaZero View Post
Also, wouldn't you need to find the users name before displaying the chat?

PHP Code:
public OldRound()
{
    
shoot=0
    
new name[32]
    
get_user_name(idname31)
    
client_print(0print_chat"[Attention] Shooting is not allowed right now!"
I honestly don't know what made you think that, but it's by far the most absurd suggestion I've ever seen.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
FormulaZero
BANNED
Join Date: Feb 2007
Location: Sector 7G
Old 03-04-2007 , 13:04   Re: Shooting Block
Reply With Quote #13

One of my plugins didn't work without it for some reason.
FormulaZero is offline
amxx4life
BANNED
Join Date: Mar 2007
Old 03-05-2007 , 06:31   Re: Shooting Block
Reply With Quote #14

thankx i like it
amxx4life is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-05-2007 , 18:54   Re: Shooting Block
Reply With Quote #15

Poor Formula is getting Hawks PWnage
-Sorry Off-Topic
__________________
bmann_420 is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-05-2007 , 22:38   Re: Shooting Block
Reply With Quote #16

Quote:
Originally Posted by Hawk552 View Post
No, then the animations wouldn't be played, and you wouldn't be able to shoot at all.
The animation would be played & you can't shoot, but thats the purpose of this plugin.

Code:
#include <amxmodx> #include <fakemeta> #define PLUGIN "Shooting Blocker" #define VERSION "1.2" #define AUTHOR "Toster v 2.1" new shoot = 1 public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_logevent("NewRound",2,"1=Round_Start")     register_logevent("EndRound",2,"1=Round_End")     register_forward(FM_CmdStart,"fwd_CmdStart")     register_cvar("amx_shotblock","1") } public fwd_CmdStart(id, uc_handle, seed) {         if ( ! shoot || ! get_cvar_num("amx_shotblock") || ! is_user_alive(id) )         return FMRES_IGNORED         new weapon, buttons = get_uc(uc_handle, UC_Buttons)         if ( buttons & IN_ATTACK )         buttons &= ~IN_ATTACK     else if ( buttons & IN_ATTACK2 && get_user_weapon(id, weapon, weapon) == CSW_KNIFE )         buttons &= ~IN_ATTACK2     else return FMRES_IGNORED         set_uc(uc_handle,UC_Buttons,buttons)         return FMRES_HANDLED } public EndRound() shoot = 0 public NewRound() shoot = 1

Last edited by [ --<-@ ] Black Rose; 03-05-2007 at 22:51.
[ --<-@ ] Black Rose is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-06-2007 , 09:05   Re: Shooting Block
Reply With Quote #17

Quite poorly coded plugin. You could at least read some tutorials, etc.

Unapproved. You can request to move this plugin back to the "new plugins" after some learning/improving.
VEN 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 08:41.


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