Raised This Month: $ Target: $400
 0% 

Requst help on making plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mohanad_2022
Member
Join Date: Jan 2022
Location: Palestine
Old 01-22-2022 , 09:43   Requst help on making plugin
Reply With Quote #1

Hello Guys ! , Hope all are well

Gys i searched for plugin for zombie Escape mod on nemesis mod which " play specific sound [ .wav ] when a player kill nemesis + give him 150 Exp" , but unfortunatly i did not find !

so guys i am sure you are the best and i will find the help here , so plz guys could help to make one ?

note : the ze mod which dp mod i use
mohanad_2022 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-22-2022 , 09:54   Re: Requst help on making plugin
Reply With Quote #2

So where is the mod you're using?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
mohanad_2022
Member
Join Date: Jan 2022
Location: Palestine
Old 01-22-2022 , 09:56   Re: Requst help on making plugin
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
So where is the mod you're using?
Dp Zombie Escape mod 4.3 version

Last edited by mohanad_2022; 01-22-2022 at 09:57.
mohanad_2022 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-22-2022 , 09:58   Re: Requst help on making plugin
Reply With Quote #4

Don't write random names, attach the required .sma file(s).
__________________

Last edited by OciXCrom; 01-22-2022 at 09:58.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
mohanad_2022
Member
Join Date: Jan 2022
Location: Palestine
Old 01-22-2022 , 10:40   Re: Requst help on making plugin
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
Don't write random names, attach the required .sma file(s).
Attached Files
File Type: sma Get Plugin or Get Source (RoyalZ_Zombie_Escape.sma - 62 views - 342.6 KB)
mohanad_2022 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-22-2022 , 14:16   Re: Requst help on making plugin
Reply With Quote #6

Attach levels.inc.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
mohanad_2022
Member
Join Date: Jan 2022
Location: Palestine
Old 01-23-2022 , 00:32   Re: Requst help on making plugin
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
Attach levels.inc.
Attached Files
File Type: inc levels.inc (296 Bytes, 34 views)
mohanad_2022 is offline
mohanad_2022
Member
Join Date: Jan 2022
Location: Palestine
Old 01-23-2022 , 00:57   Re: Requst help on making plugin
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
Attach levels.inc.
hello Sir , i used LysisDecompile tool and i got the codes of the plugin which i need but it's not complete and miss somethings

so i hope this help you to make it complete

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <fakemeta>
#include <engine>
#include <zombieplague>
#include <xs>


 
replace_all(string[], lenwhat[], with[])
{
    new 
pos;
    if ((
pos contain(stringwhat)) == -1)
    {
        return 
0;
    }
    new 
total;
    new 
with_len strlen(with);
    new 
diff strlen(what) - with_len;
    new 
total_len strlen(string);
    new 
temp_pos;
    while (
replace(string[pos], len poswhatwith))
    {
        
total++;
        
pos with_len pos;
        
total_len -= diff;
        if (!(
pos >= total_len))
        {
            
temp_pos contain(string[pos], what);
            if (!(
temp_pos == -1))
            {
                
pos temp_pos pos;
            }
            return 
total;
        }
        return 
total;
    }
    return 
total;
}

public 
__fatal_ham_error(Ham:idHamError:errreason[])
{
    new 
func get_func_id("HamFilter", -1);
    new 
bool:fail 1;
    new 
var1;
    if (
func != -&& callfunc_begin_i(func, -1) == 1)
    {
        
callfunc_push_int(id);
        
callfunc_push_int(err);
        
callfunc_push_str(reason"HamFilter");
        if (
callfunc_end() == 1)
        {
            
fail false;
        }
    }
    if (
fail)
    {
        
set_fail_state(reason);
    }
    return 
0;
}

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

public 
plugin_init()
{
    
register_plugin("Die Bitch""1.0""Asshole");
    
RegisterHam(11"player""Ham_CBasePlayer_Killed_Post"1);
    return 
0;
}

public 
Ham_CBasePlayer_Killed_Post(victimattackershouldgib)
{
    new 
var1;
    if (
attacker != victim && !is_user_connected(attacker))
    {
        return 
0;
    }
    if (!
zp_get_user_zombie(attacker))
    {
        new 
var2;
        if (
zp_get_zombie_count() < && !zp_get_user_nemesis(victim))
        {
            
client_cmd("HamFilter""spk \"%s\"""die_nemesis/ohgod.wav");
        }
        else
        {
            if (
zp_get_user_nemesis(victim))
            {
                
client_cmd("HamFilter""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[RoyalZ] !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("HamFilter""spk \"%s\"""die_nemesis/cantbelieve.wav");
        }
    }
    return 
0;
}

client_print_color(idinput[])
{
    new 
count 1;
    new 
players[32];
    static 
SayText;
    static 
msg[191];
    
vformat(msg190input"");
    if (!
SayText)
    {
        
SayText get_user_msgid("SayText");
    }
    
replace_all(msg190"!g"2052);
    
replace_all(msg190"!y"2072);
    
replace_all(msg190"!t"2092);
    if (
id)
    {
        
players[0] = id;
    }
    else
    {
        
get_players(playerscount"ch"2112);
    }
    new 
i;
    while (
count)
    {
        if (
is_user_connected(players[i]))
        {
            
message_begin(8get_user_msgid("SayText"), 2148players[i]);
            
write_byte(players[i]);
            
write_string(msg);
            
message_end();
        }
        
i++;
    }
    return 
0;
}
    }


Last edited by mohanad_2022; 01-23-2022 at 02:08.
mohanad_2022 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 00:18.


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