AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP][Addon] No crosshair for zombies (https://forums.alliedmods.net/showthread.php?t=91842)

Sn!ff3r 05-06-2009 10:46

[ZP][Addon] No crosshair for zombies
 
1 Attachment(s)
Simple plugin.

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

#define PLUGIN "No crosshair for zombies"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

new HideWeapon

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)    
    
    
register_event("CurWeapon""CurWeapon""be""1!0""2=29")
    
HideWeapon get_user_msgid("HideWeapon")
}

public 
CurWeapon(id
{
    if(
zp_get_user_zombie(id) || zp_get_user_nemesis(id))
    {
        
message_begin(MSG_ONE_UNRELIABLEHideWeapon_id)
        
write_byte(1<<6)
        
message_end()
    }



meTaLiCroSS 05-06-2009 17:14

Re: [ZP][Addon] No crosshair for zombies
 
Nice. Only with Knifes or All weapons?

Sn!ff3r 05-06-2009 17:16

Re: [ZP][Addon] No crosshair for zombies
 
All weapons. ;>

TheKidz 05-06-2009 17:23

Re: [ZP][Addon] No crosshair for zombies
 
nice, tested here and works fine :up:

meTaLiCroSS 05-06-2009 17:29

Re: [ZP][Addon] No crosshair for zombies
 
Quote:

Originally Posted by Sn!ff3r (Post 822545)
All weapons. ;>

Ok. Good job :). But use only with Knife, some extra items for zombie are weapons.

Sn!ff3r 05-06-2009 17:33

Re: [ZP][Addon] No crosshair for zombies
 
Okayy, so changed ;)

meTaLiCroSS 05-06-2009 17:35

Re: [ZP][Addon] No crosshair for zombies
 
Quote:

Originally Posted by Sn!ff3r (Post 822559)
Okayy, so changed ;)

Code:

if(get_user_weapon(id) == CSW_KNIFE)
{
  // Code...


Sn!ff3r 05-06-2009 17:39

Re: [ZP][Addon] No crosshair for zombies
 
Not needed - this is already filtered in register_event().

meTaLiCroSS 05-06-2009 20:38

Re: [ZP][Addon] No crosshair for zombies
 
PHP Code:

"2=29" 

Sorry :)

Nice plugin man, +karma for you and Thanks.



ƒa†es™ 05-07-2009 06:11

Re: [ZP][Addon] No crosshair for zombies
 
There is something wrong with the crosshair when the zombie use antidone then crosshair doesn't come back.


All times are GMT -4. The time now is 16:53.

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