This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Requst Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mohanad_2022
Member
Join Date: Jan 2022
Location: Palestine
Old 01-31-2022 , 06:14   Requst Plugin
Reply With Quote #1

guys i have this sma and can't fix the error on it .. hope one help me to fix it

PHP Code:
#include <amxmodx>
#include <zombieplague>
#include <hamsandwich>
#include <levels>
//#include <cromchat>

#define PLUGIN  "[ZE] Nemesis sound kill"
#define VERSION "1.0"
#define AUTHOR  "NaDa"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Killed"player""HamHook_Killed")
}

public 
plugin_precache()
{
    
precache_sound("ze_royalz/die_bitch.wav")
    
precache_sound("ze_royalz/ohgod.wav")
    
precache_sound("ze_royalz/cantbelieve.wav")
    return 
0;
}

public 
Ham_CBasePlayer_Killed_Post(victimattackershouldgib)
{
    !!! 
Removed Phi
    
if (attacker != victim && !is_user_connected(attacker))
    {
        return 
0;
    }
    if (!
zp_get_user_zombie(attacker))
    {
        if (
zp_get_zombie_count() < && !zp_get_user_nemesis(victim))
        {
            
client_cmd(0"spk \"%s\"""die_nemesis/ohgod.wav");
        }
        else
        {
            if (
zp_get_user_nemesis(victim))
            {
                
client_cmd(0"spk \"%s\"""die_nemesis/die_bitch.wav");
                new 
SzVName[32];
                new 
SzAName[32];
                
get_user_name(attackerSzAName31);
                
get_user_name(victimSzVName31);
                
client_print_color(0"!g[RoZ] !yPlayer !t%s !yKilled Nemesis !t%s !yHe GoT !g%d !yEXP"SzANameSzVName150);
                
set_user_xp(attackerget_user_xp(attacker) + 150);
            }
        }
    }
    else
    {
        if (
zp_get_human_count())
        {
            
client_cmd(0"spk \"%s\"""die_nemesis/cantbelieve.wav");
        }
    }
    return 
0;
}

zp_colored_print(target, const message[], any:...)
{
    static 
buffer[512], iargscount
    argscount 
numargs()
    
    
// Send to everyone
    
if (!target)
    {
        static 
player
        
for (player 1player <= g_maxplayersplayer++)
        {
            
// Not connected
            
if (!g_isconnected[player])
                continue;
            
            
// Remember changed arguments
            
static changed[5], changedcount // [5] = max LANG_PLAYER occurencies
            
changedcount 0
            
            
// Replace LANG_PLAYER with player id
            
for (2argscounti++)
            {
                if (
getarg(i) == LANG_PLAYER)
                {
                    
setarg(i0player)
                    
changed[changedcount] = i
                    changedcount
++
                }
            }
            
            
// Format message for player
            
vformat(buffercharsmax(buffer), message3)
            
            
// Send it
            
message_begin(MSG_ONE_UNRELIABLEg_msgSayText_player)
            
write_byte(player)
            
write_string(buffer)
            
message_end()
            
            
// Replace back player id's with LANG_PLAYER
            
for (0changedcounti++)
                
setarg(changed[i], 0LANG_PLAYER)
        }
    }
    
// Send to specific target
    
else
    {
        
/*
        // Not needed since you should set the ML argument
        // to the player's id for a targeted print message
        
        // Replace LANG_PLAYER with player id
        for (i = 2; i < argscount; i++)
        {
            if (getarg(i) == LANG_PLAYER)
                setarg(i, 0, target)
        }
        */
        
        // Format message for player
        
vformat(buffercharsmax(buffer), message3)
        
        
// Send it
        
message_begin(MSG_ONEg_msgSayText_target)
        
write_byte(target)
        
write_string(buffer)
        
message_end()
    }


Last edited by mohanad_2022; 01-31-2022 at 06:18.
mohanad_2022 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-31-2022 , 14:25   Re: Requst Plugin
Reply With Quote #2

That's not a .sma file. Stop posting decompiled plugins and expect people to "fix" them.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
mohanad_2022
Member
Join Date: Jan 2022
Location: Palestine
Old 02-01-2022 , 08:04   Re: Requst Plugin
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
That's not a .sma file. Stop posting decompiled plugins and expect people to "fix" them.
lol !!! i did not decompile this ! , i just downloaded it from a site !
mohanad_2022 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-01-2022 , 09:38   Re: Requst Plugin
Reply With Quote #4

Does it matter if you decompiled it personally or some random person?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 18:07.


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