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


Raised This Month: $ Target: $400
 0% 

Requst Edite SMA


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mohanad_2022
Member
Join Date: Jan 2022
Location: Palestine
Old 02-01-2022 , 09:01   Requst Edite SMA
Reply With Quote #1

Good Evening All , hope all are well

i have here sma file of Zombie escape mod converted from zp4.3 , and i want add :
1 - Add sniper mod
2 - [COLOR="darkolivegreen"]Add Imposter mod { imposter mod is same of nemesis mod , but just changed the name and the skine of the nemesis , but don't replace it at nemesis mod on the sma bcz i want keep it }
3 - Add Sniper Vs Imposter MoD .

Here the Sma file of Zombie escape file and i will attach the zombieplague.inc which used too .
Attached Files
File Type: inc zombieplague.inc (19.4 KB, 51 views)
File Type: sma Get Plugin or Get Source (RoyalZ_Zombie_Escape.sma - 107 views - 342.8 KB)

Last edited by mohanad_2022; 02-01-2022 at 09:05.
mohanad_2022 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 02-01-2022 , 09:35   Re: Requst Edite SMA
Reply With Quote #2

To be honest this is quite boring to do and will take some time as well, not sure if you'll find someone with the will to help. It's actually quite simple tough, all you've to do is find all words that contain nemesis, then copy and replace it with imposter. Same for sniper, but you would copy and replace survivor instead. This will be a lot "easier" if you're using a nice and spicy text editor, as sublime text, where you can replace and keep the case sensitivity of the word you're replacing.

As for the Sniper vs Imposter, you could copy and replace plague mode, but will need a few tweaks

You still have the option to wait for someone, it's your decision.
__________________








CrazY. is offline
mohanad_2022
Member
Join Date: Jan 2022
Location: Palestine
Old 02-01-2022 , 12:27   Re: Requst Edite SMA
Reply With Quote #3

Quote:
Originally Posted by CrazY. View Post
To be honest this is quite boring to do and will take some time as well, not sure if you'll find someone with the will to help. It's actually quite simple tough, all you've to do is find all words that contain nemesis, then copy and replace it with imposter. Same for sniper, but you would copy and replace survivor instead. This will be a lot "easier" if you're using a nice and spicy text editor, as sublime text, where you can replace and keep the case sensitivity of the word you're replacing.

As for the Sniper vs Imposter, you could copy and replace plague mode, but will need a few tweaks

You still have the option to wait for someone, it's your decision.
i understand you sir , and u completly right , but i have idea may it help you , why not make it as outside plugin , like [imposter.sma] and i have amxx of a that plugin so i can decompile it just to see how the system of the sma codes and how u will make the sma , and about how to active the mod on the game , u can add a command which open menu to choose the players , like "/imp" on chat or "amx_imp" on console [ command for admin immunity access only] , and then will open menu tp choose the player which i want make him .

here the decompile code [ imposter.amxx ]

PHP Code:
#pragma semicolon 1
#pragma ctrlchar '\'

new __dhud_color;
new 
__dhud_x;
new 
__dhud_y;
new 
__dhud_effect;
new 
__dhud_fxtime;
new 
__dhud_holdtime;
new 
__dhud_fadeintime;
new 
__dhud_fadeouttime;
new 
__dhud_reliable;
new 
Float:impostor_ambiance_repeat 126.000/*1123811328*/;
new 
Float:s_vs_impostors_ambiance_repeat 112.000/*1121976320*/;
new 
impostor_start_sound[34] =
{
    
1141111229510111599971121014711411112295115116971141169510510911211111511610111446119971180
}
new 
impostor_ambiance_sound[27] =
{
    
11411112295101115999711210147114111122959710911111010311711546109112510
}
new 
s_vs_impostors_start_sound[45] =
{
    
11411112295101115999711210147114111122951151169711411695115110105112101114951181159510510911211111511610111411546119971180
}
new 
s_vs_impostors_ambiance_sound[46] =
{
    
1141111229510111599971121014711411112295971099810510111099101951151101051121011141159510510911211111511610111411546109112510
}
new 
a[7] =
{
    
115111117110100470
}
new 
cvar_impostors_ratio;
new 
cvar_repsawn_time;
new 
cvar_snipers_vs_impostors_ratio;
new 
g_iStartSoundMp3;
new 
g_iAmbianceSoundMp3;
new 
g_iStartSoundMp32;
new 
g_iAmbianceSoundMp32;
new 
g_Smoke;
new 
g_Lightning;
new 
m_spriteTexture;
new 
msgScreenFade;
new 
g_iMenuPosition[33];
new 
g_iImpostorMode;
new 
g_iSnipersVsImpostors;
new 
g_iRoundEnd;
new 
g_iTime;

Float:operator*(Float:,_:)(Float:oper1oper2)
{
    return 
oper1 float(oper2);
}

public 
__fatal_ham_error(Ham:idHamError:errString:reason[])
{
    !!! 
Removed Phi
    
if (func != -&& callfunc_begin_i(func, -1) == 1)
    {
        
callfunc_push_int(id);
        
callfunc_push_int(err);
        
callfunc_push_str(reasonfalse);
        if (
callfunc_end() == 1)
        {
            
fail 0;
        }
    }
    if (
fail)
    {
        
set_fail_state(reason);
    }
    return 
0;
}

set_dhudmessage(redgreenblueFloat:xFloat:yeffectsFloat:fxtimeFloat:holdtimeFloat:fadeintimeFloat:fadeouttimebool:reliable)
{
    
__dhud_color clamp(red0255) << 16 clamp(green0255) << clamp(blue0255);
    
__dhud_x x;
    
__dhud_y y;
    
__dhud_effect effects;
    
__dhud_fxtime fxtime;
    
__dhud_holdtime holdtime;
    
__dhud_fadeintime fadeintime;
    
__dhud_fadeouttime fadeouttime;
    
__dhud_reliable reliable;
    return 
1;
}

show_dhudmessage(indexString:message[])
{
    !!! 
Removed Phi
    
new buffer[128];
    new 
numArguments numargs();
    if (
numArguments == 2)
    {
        
send_dhudMessage(indexmessage);
    }
    else
    {
        if (
index || numArguments == 3)
        {
            
vformat(buffer127message3);
            
send_dhudMessage(indexbuffer);
        }
        new 
playersList[32];
        new 
numPlayers 0;
        
get_players(playersListnumPlayers"ch""");
        if (!
numPlayers)
        {
            return 
0;
        }
        new Array:
handleArrayML ArrayCreate(132);
        new 
2;
        new 
0;
        while (
numArguments)
        {
            if (
getarg(i0) == -1)
            {
                do {
                    
j++;
                    new 
var2 getarg(1j);
                    
buffer[j] = var2;
                } while (
var2);
                
0;
                if (
GetLangTransKey(buffer) != -1)
                {
                    
i++;
                    
ArrayPushCell(handleArrayMLi);
                    
i++;
                }
                
i++;
            }
            
i++;
        }
        new 
size ArraySize(handleArrayML);
        if (!
size)
        {
            
vformat(buffer127message3);
            
send_dhudMessage(indexbuffer);
        }
        else
        {
            new 
0;
            new 
0;
            while (
numPlayers)
            {
                
index playersList[i];
                
0;
                while (
size)
                {
                    
setarg(ArrayGetCell(handleArrayMLj), 0index);
                    
j++;
                }
                
vformat(buffer127message3);
                
send_dhudMessage(indexbuffer);
                
i++;
            }
        }
        
ArrayDestroy(handleArrayML);
    }
    return 
1;
}

send_dhudMessage(indexString:message[])
{
    new 
var2;
    if (
__dhud_reliable)
    {
        new 
var1;
        if (
index)
        {
            
var1 1;
        }
        else
        {
            
var1 2;
        }

/ * 
ERRORUnable to cast object of type 'Lysis.DSentinel' to type 'Lysis.DReturn'. * /
 function 
"send_dhudMessage"
send_dhudMessage(indexString:message[])

public 
plugin_precache()
{
    new 
szText[64];
    
copy(szText63"roz_escape/roz_start_imposter.wav");
    if (
equal(szText[strlen(szText) - 4], ".mp3"0))
    {
        
g_iStartSoundMp3 1;
        
format(szText63"%s%s"aszText);
        
precache_generic(szText);
    }
    else
    {
        
precache_sound(impostor_start_sound);
    }
    
copy(szText63"roz_escape/roz_amongus.mp3");
    if (
equal(szText[strlen(szText) - 4], ".mp3"0))
    {
        
g_iAmbianceSoundMp3 1;
        
format(szText63"%s%s"aszText);
        
precache_generic(szText);
    }
    else
    {
        
precache_sound(impostor_ambiance_sound);
    }
    
copy(szText63"roz_escape/roz_start_sniper_vs_imposters.wav");
    if (
equal(szText[strlen(szText) - 4], ".mp3"0))
    {
        
g_iStartSoundMp32 1;
        
format(szText63"%s%s"aszText);
        
precache_generic(szText);
    }
    else
    {
        
precache_sound(s_vs_impostors_start_sound);
    }
    
copy(szText63"roz_escape/roz_ambience_snipers_imposters.mp3");
    if (
equal(szText[strlen(szText) - 4], ".mp3"0))
    {
        
g_iAmbianceSoundMp32 1;
        
format(szText63"%s%s"aszText);
        
precache_generic(szText);
    }
    else
    {
        
precache_sound(s_vs_impostors_ambiance_sound);
    }
    
g_Smoke precache_model("sprites/steam1.spr");
    
g_Lightning precache_model("sprites/lgtning.spr");
    
m_spriteTexture precache_model("sprites/dot.spr");
    return 
0;
}

public 
plugin_natives()
{
    
register_native("zp_is_impostor_round""native_is_impostor_round"1);
    
register_native("zp_is_svi_round""native_is_svi_round"1);
    return 
0;
}

public 
native_is_impostor_round()
{
    return 
g_iImpostorMode;
}

public 
native_is_svi_round()
{
    return 
g_iSnipersVsImpostors;
}

public 
plugin_init()
{
    
register_plugin("Impostor mode""0.0.1"".NovA.");
    
cvar_impostors_ratio register_cvar("roz_impostor_ratio""0.3"00.000);
    
cvar_repsawn_time register_cvar("roz_auto_respawn_time""60"00.000);
    
cvar_snipers_vs_impostors_ratio register_cvar("roz_snipers_vs_impostors_ratio""0.3"00.000);
    
msgScreenFade get_user_msgid("ScreenFade");
    
register_event("HLTV""event_new_round""a""1=0""2=0");
    
register_logevent("logevent_round_end"2"1=Round_End");
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage"0);
    
RegisterHam(Ham_Killed"player""fw_PlayerKilled"0);
    
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_awp""Fw_WeaponPrimaryAttack"1);
    
register_clcmd("say /imp""cmd_impostor", -1"", -1);
    return 
0;
}

public 
event_new_round()
{
    
remove_task(6969690);
    
remove_task(7878780);
    
g_iImpostorMode 0;
    
g_iSnipersVsImpostors 0;
    
g_iRoundEnd 0;
    return 
0;
}

public 
logevent_round_end()
{
    
remove_task(6969690);
    
remove_task(7878780);
    
g_iRoundEnd 1;
    return 
0;
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    !!! 
Removed Phi
    
if (attacker != victim && !var4 <= 32 <= var4 && !g_iSnipersVsImpostors)
    {
        return 
1;
    }
    if (
zp_get_user_survivor(attacker) && get_user_weapon(attacker00) == 18)
    {
        
ExecuteHamB(Ham_Killedvictimattacker2);
        return 
2;
    }
    if (
zp_get_user_impostor(attacker) && zp_get_user_survivor(victim))
    {
        if (
g_iSnipersVsImpostors == 1)
        {
            
ExecuteHamB(Ham_Killedvictimattacker2);
            return 
2;
        }
    }
    return 
1;
}

public 
fw_PlayerKilled(victimattackershouldgib)
{
    !!! 
Removed Phi
    
if (attacker != victim && !var4 <= 32 <= var4)
    {
        
var2 1;
    }
    else
    {
        
var2 0;
    }
    
selfkill var2;
    if (!
selfkill)
    {
        if (
zp_get_user_survivor(attacker) && get_user_weapon(attacker00) == 18 && zp_get_user_impostor(victim))
        {
            
SetHamParamInteger(32);
            static 
coord[3];
            static 
origin[3];
            
get_user_origin(victimorigin0);
            
message_begin(423origin0);
            
write_byte(10);
            
write_coord(origin[0][0]);
            
write_coord(origin[1][0]);
            
write_coord(origin[2][0] - 26);
            
message_end();
            
coord[0] = origin[0][0] + 150;
            
coord[1] = origin[1][0] + 150;
            
coord[2] = origin[2][0] + 800;
            
message_begin(023920);
            
write_byte(0);
            
write_coord(coord[0][0]);
            
write_coord(coord[1][0]);
            
write_coord(coord[2][0]);
            
write_coord(origin[0][0]);
            
write_coord(origin[1][0]);
            
write_coord(origin[2][0]);
            
write_short(g_Lightning);
            
write_byte(1);
            
write_byte(5);
            
write_byte(2);
            
write_byte(20);
            
write_byte(30);
            
write_byte(200);
            
write_byte(200);
            
write_byte(200);
            
write_byte(200);
            
write_byte(200);
            
message_end();
            
message_begin(423origin0);
            
write_byte(9);
            
write_coord(origin[0][0]);
            
write_coord(origin[1][0]);
            
write_coord(origin[2][0]);
            
message_end();
            
message_begin(023origin0);
            
write_byte(5);
            
write_coord(origin[0][0]);
            
write_coord(origin[1][0]);
            
write_coord(origin[2][0]);
            
write_short(g_Smoke);
            
write_byte(10);
            
write_byte(10);
            
message_end();
        }
        if (
task_exists(7878780))
        {
            
set_task(0.100"do_respawn"victim""0""0);
        }
    }
    return 
0;
}

public 
do_respawn(id)
{
    !!! 
Removed Phi
    
if (g_iRoundEnd)
    {
        return 
0;
    }
    new 
survivor 0;
    if (
zp_get_user_survivor(id))
    {
        
survivor 1;
    }
    
ExecuteHam(Ham_CS_RoundRespawnid);
    if (
survivor)
    {
        
zp_make_user_survivor(id"");
    }
    else
    {
        
make_user_impostor(id);
    }
    return 
0;
}

public 
Fw_WeaponPrimaryAttack(ent)
{
    new 
id get_pdata_cbase(ent4145);
    if (!
zp_get_user_survivor(id))
    {
        return 
1;
    }
    static 
vec2[3];
    static 
vec1[3];
    
get_user_origin(idvec11);
    
get_user_origin(idvec23);
    
message_begin(023920);
    
write_byte(0);
    
write_coord(vec1[0][0]);
    
write_coord(vec1[1][0]);
    
write_coord(vec1[2][0]);
    
write_coord(vec2[0][0]);
    
write_coord(vec2[1][0]);
    
write_coord(vec2[2][0]);
    
write_short(m_spriteTexture);
    
write_byte(1);
    
write_byte(5);
    
write_byte(2);
    
write_byte(10);
    
write_byte(0);
    
write_byte(255);
    
write_byte(255);
    
write_byte(255);
    
write_byte(200);
    
write_byte(150);
    
message_end();
    return 
1;
}

public 
cmd_impostor(id)
{
    if (!
get_user_flags(id0) & 1)
    {
        return 
0;
    }
    new 
menu menu_create("\rImposter Menu""handler_impostor"0);
    
menu_additem(menu"Start Imposter Mode"""0, -1);
    
menu_additem(menu"Turn Specific Player Into Imposter"""0, -1);
    
menu_additem(menu"Start Snipers (RATIO) vs Imposters"""0, -1);
    
menu_additem(menu"Start Snipers Vs Imposters (Half) (Auto Respawn)"""0, -1);
    
menu_additem(menu"Start Snipers Vs Imposters (Half) (Normal)"""0, -1);
    
menu_additem(menu"\dTurn Specific Player Into Sniper (soon)"""0, -1);
    
menu_display(idmenu0);
    return 
0;
}

public 
handler_impostor(idmenuitem)
{
    !!! 
Removed Phi
    
if (item == -3)
    {
        
menu_destroy(menu);
        return 
0;
    }
    if (
item)
    {
        if (
item == 1)
        {
            
g_iMenuPosition[id] = 0;
            
players_menu(id0);
        }
        if (
item == 2)
        {
            if (
zp_allowed_impostor_mode())
            {
                if (
ratio >= num || !ratio)
                {
                    
ratio 1;
                }
                new 
0;
                new 
randomid 0;
                while (
ratio)
                {
                    
randomid players[random(num)][0][0];
                    while (
zp_get_user_survivor(randomid))
                    {
                        
randomid players[random(num)][0][0];
                    }
                    
zp_make_user_survivor(randomid0);
                    
i++;
                }
                
num--;
                while (
<= num)
                {
                    
players[num][0][0];
                    if (!(
zp_get_user_survivor(i)))
                    {
                        
make_user_impostor(i);
                    }
                    
num--;
                }
                if (
g_iStartSoundMp32)
                {
                    
client_cmd(0"mp3 play %s%s"as_vs_impostors_start_sound);
                }
                else
                {
                    
client_cmd(0"spk %s"s_vs_impostors_start_sound);
                }
                if (
g_iAmbianceSoundMp32)
                {
                    
client_cmd(0"mp3 play %s%s"as_vs_impostors_ambiance_sound);
                }
                else
                {
                    
client_cmd(0"spk %s"s_vs_impostors_ambiance_sound);
                }
                
set_hudmessage(2552550, -1.0000.10006.0003.0000.1000.2004);
                
show_hudmessage(0"Snipers VS Imposters Mode !");
                
set_task(s_vs_impostors_ambiance_repeat"repeat_ambiance2"696969""0""0);
                static 
szName[32];
                
get_user_name(idszName31);
                
client_print(03"ADMIN %s - Has started mode snipers vs imposters (Ratio)"szName);
            }
        }
        if (
item == 3)
        {
            if (
zp_allowed_impostor_mode())
            {
                if (
ratio >= num || !ratio)
                {
                    
ratio 1;
                }
                new 
0;
                new 
randomid 0;
                while (
ratio)
                {
                    
randomid players[random(num)][0][0];
                    while (
zp_get_user_impostor(randomid))
                    {
                        
randomid players[random(num)][0][0];
                    }
                    
make_user_impostor(randomid);
                    
i++;
                }
                
num--;
                while (
<= num)
                {
                    
players[num][0][0];
                    if (!(
zp_get_user_impostor(i)))
                    {
                        
zp_make_user_survivor(i0);
                    }
                    
num--;
                }
                if (
g_iStartSoundMp32)
                {
                    
client_cmd(0"mp3 play %s%s"as_vs_impostors_start_sound);
                }
                else
                {
                    
client_cmd(0"spk %s"s_vs_impostors_start_sound);
                }
                if (
g_iAmbianceSoundMp32)
                {
                    
client_cmd(0"mp3 play %s%s"as_vs_impostors_ambiance_sound);
                }
                else
                {
                    
client_cmd(0"spk %s"s_vs_impostors_ambiance_sound);
                }
                
set_hudmessage(2552550, -1.0000.10006.0003.0000.1000.2004);
                
show_hudmessage(0"Snipers VS Imposters Mode !");
                
set_task(s_vs_impostors_ambiance_repeat"repeat_ambiance2"696969""0""0);
                static 
szName[32];
                
get_user_name(idszName31);
                
client_print(03"ADMIN %s - Has started mode snipers vs imposters"szName);
                
g_iTime get_pcvar_num(cvar_repsawn_time);
                if (
g_iTime)
                {
                    
set_task(1.000"auto_respawn"787878""0"a"g_iTime);
                }
            }
        }
        if (
item == 4)
        {
            if (
zp_allowed_impostor_mode())
            {
                if (
ratio >= num || !ratio)
                {
                    
ratio 1;
                }
                new 
0;
                new 
randomid 0;
                while (
ratio)
                {
                    
randomid players[random(num)][0][0];
                    while (
zp_get_user_impostor(randomid))
                    {
                        
randomid players[random(num)][0][0];
                    }
                    
make_user_impostor(randomid);
                    
i++;
                }
                
num--;
                while (
<= num)
                {
                    
players[num][0][0];
                    if (!(
zp_get_user_impostor(i)))
                    {
                        
zp_make_user_survivor(i0);
                    }
                    
num--;
                }
                if (
g_iStartSoundMp32)
                {
                    
client_cmd(0"mp3 play %s%s"as_vs_impostors_start_sound);
                }
                else
                {
                    
client_cmd(0"spk %s"s_vs_impostors_start_sound);
                }
                if (
g_iAmbianceSoundMp32)
                {
                    
client_cmd(0"mp3 play %s%s"as_vs_impostors_ambiance_sound);
                }
                else
                {
                    
client_cmd(0"spk %s"s_vs_impostors_ambiance_sound);
                }
                
set_hudmessage(2552550, -1.0000.10006.0003.0000.1000.2004);
                
show_hudmessage(0"Snipers VS Imposters Mode !");
                
set_task(s_vs_impostors_ambiance_repeat"repeat_ambiance2"696969""0""0);
                static 
szName[32];
                
get_user_name(idszName31);
                
client_print(03"ADMIN %s - Has started mode snipers vs imposters"szName);
            }
        }
    }
    else
    {
        if (
zp_allowed_impostor_mode())
        {
            if (
ratio >= num || !ratio)
            {
                
ratio 1;
            }
            new 
0;
            new 
randomid 0;
            while (
ratio)
            {
                
randomid players[random(num)][0][0];
                while (
zp_get_user_impostor(randomid))
                {
                    
randomid players[random(num)][0][0];
                }
                
make_user_impostor(randomid);
                
i++;
            }
            
start_sounds();
            static 
szName[32];
            
get_user_name(idszName31);
            
client_print(03"ADMIN %s - Has Started Imposter Mode"szName);
        }
    }
    
menu_destroy(menu);
    return 
0;
}

public 
auto_respawn()
{
    
g_iTime += -1;
    
set_dhudmessage(199511, -1.0000.17000.0001.1000.0000.000false);
    
show_dhudmessage(0"Auto respawn ends in %02d"g_iTime);
    return 
0;
}

public 
repeat_ambiance2()
{
    if (!
g_iSnipersVsImpostors)
    {
        return 
0;
    }
    if (
g_iAmbianceSoundMp3)
    {
        
client_cmd(0"mp3 play %s%s"as_vs_impostors_ambiance_sound);
    }
    else
    {
        
emit_sound(00"roz_escape/roz_ambience_snipers_imposters.mp3"1.0000.8000100);
    }
    
set_task(s_vs_impostors_ambiance_repeat"repeat_ambiance2"696969""0""0);
    return 
0;
}

players_menu(idposition)
{
    new 
menu menu_create("\rTurn Specific Player Into Imposter""handler_pimpostor"0);
    new 
num 0;
    new 
0;
    static 
szName[32];
    static 
user_id[2];
    static 
players[32];
    
get_players(""num"ac""");
    
num--;
    while (
<= num)
    {
        new 
var2 players;
        
var2[num][0][0];
        new 
var1;
        if (
zp_get_user_impostor(i))
        {
            
var1 var2;
        }
        else
        {
            
user_id[0] = i;
            new 
var3 user_id[1];
            
var3 0;
            
get_user_name(iszName31);
            
menu_additem(menuszNameuser_id0, -1);
            
var1 var3;
        }
        
num--;
    }
    
menu_display(idmenuposition);
    return 
0;
}

public 
handler_pimpostor(idmenuitem)
{
    !!! 
Removed Phi
    
if (item == -|| g_iSnipersVsImpostors)
    {
        
menu_destroy(menu);
        return 
0;
    }
    new 
0;
    
player_menu_info(idiig_iMenuPosition[id]);
    static 
user_id[2];
    new 
var2 Heap_4;
    
var2[0] = 7576;
    
menu_item_getinfo(menuitemiuser_id1var20i);
    
user_id[0][0];
    if (
zp_allowed_nemesis(i))
    {
        
make_user_impostor(i);
        if (!
g_iImpostorMode)
        {
            
start_sounds();
        }
        static 
szName2[32];
        static 
szName[32];
        
get_user_name(idszName31);
        
get_user_name(iszName231);
        
client_print(03"ADMIN %s - %s Turned into Imposter"szNameszName2);
        
players_menu(idg_iMenuPosition[id][0][0]);
    }
    
menu_destroy(menu);
    return 
0;
}

public 
handler_psniper(idmenuitem)
{
    !!! 
Removed Phi
    
if (item == -|| g_iSnipersVsImpostors)
    {
        
menu_destroy(menu);
        return 
0;
    }
    new 
0;
    
player_menu_info(idiig_iMenuPosition[id]);
    static 
user_id[2];
    new 
var2 Heap_4;
    
var2[0] = 7576;
    
menu_item_getinfo(menuitemiuser_id1var20i);
    
user_id[0][0];
    
menu_destroy(menu);
    return 
0;
}

make_user_impostor(id)
{
    
zp_make_user_nemesis(id0"");
    
message_begin(8msgScreenFade7984id);
    
write_short(2);
    
write_short(0);
    
write_short(0);
    
write_byte(0);
    
write_byte(0);
    
write_byte(0);
    
write_byte(255);
    
message_end();
    return 
0;
}

start_sounds()
{
    
g_iImpostorMode 1;
    if (
g_iStartSoundMp3)
    {
        
client_cmd(0"mp3 play %s%s"aimpostor_start_sound);
    }
    else
    {
        
client_cmd(0"spk %s"impostor_start_sound);
    }
    if (
g_iAmbianceSoundMp3)
    {
        
client_cmd(0"mp3 play %s%s"aimpostor_ambiance_sound);
    }
    else
    {
        
client_cmd(0"spk %s"impostor_ambiance_sound);
    }
    
set_hudmessage(2552550, -1.0000.17006.0005.0000.1000.2004);
    
show_hudmessage(0"Imposter Mode !");
    
set_task(impostor_ambiance_repeat"repeat_ambiance"696969""0""0);
    return 
0;
}

public 
repeat_ambiance()
{
    if (!
g_iImpostorMode)
    {
        return 
0;
    }
    if (
g_iAmbianceSoundMp3)
    {
        
client_cmd(0"mp3 play %s%s"aimpostor_ambiance_sound);
    }
    else
    {
        
emit_sound(00"roz_escape/roz_amongus.mp3"1.0000.8000100);
    }
    
set_task(impostor_ambiance_repeat"repeat_ambiance"696969""0""0);
    return 
0;


Last edited by mohanad_2022; 02-01-2022 at 12:28.
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 13:13.


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