AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission Zombie No Crosshair (https://forums.alliedmods.net/showthread.php?t=325683)

AnimalMonster 07-02-2020 13:19

Zombie No Crosshair
 
Hey, in this post i will show you a code from someone else fixed :)))

PHP Code:

#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()
    }
}
public 
zp_user_humanized_post(id,survivor)
{
    
message_begin(MSG_ONE_UNRELIABLEHideWeapon_id)
    
write_byte(2<<6)
    
message_end()


This is for the ones who didn't know to fix for they're self.
this will make the zombie gameplaty a little more interesting, it's my opinion:)

AnimalMonster 07-02-2020 13:26

Re: Zombie No Crosshair
 
I know it's copy paste but atleast it's something:)

sayf118 07-08-2020 16:23

Re: Zombie No Crosshair
 
well done nice plugin (always be happy even you copy/paste or do any stupid thing..)


All times are GMT -4. The time now is 01:08.

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