AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   request sma edit help (https://forums.alliedmods.net/showthread.php?t=317952)

newstartnewbegin2 08-05-2019 23:34

request sma edit help
 
can someone make this for a public MOD. its np if sound/jb_engine/round_sound models/jb_engine/v_round_sound.mdl if they stay the same np


PHP Code:

    }

    for(new 
isizeof(g_iHamHookForwards); i++) EnableHamForward(g_iHamHookForwards[i]);

    
g_bRoundEnd true;

    if(
g_iRoundSoundSize)

    {

        new 
aDataRoundSound[DATA_ROUND_SOUND], iTrack random_num(0g_iRoundSoundSize 1);

        
ArrayGetArray(g_aDataRoundSoundiTrackaDataRoundSound);

        for(new 
1<= g_iMaxPlayersi++)

        {

            if(
IsNotSetBit(g_iBitUserConnectedi) || IsNotSetBit(g_iBitUserRoundSoundi)) continue;

            
client_cmd(i"mp3 play sound/jb_engine/round_sound/%s.mp3"aDataRoundSound[FILE_NAME]);

            
UTIL_SayText(i"!g[Elijah - JailBreak]!y %L: !t%s"i"JBE_CHAT_ID_NOW_PLAYING"aDataRoundSound[TRACK_NAME]);

            if(
IsNotSetBit(g_iBitUserAlivei)) continue;

            static 
iszViewModel 0;

            if(
iszViewModel || (iszViewModel engfunc(EngFunc_AllocString"models/jb_engine/v_round_sound.mdl"))) set_pev_string(ipev_viewmodel2iszViewModel);

            
set_pdata_float(im_flNextAttack5.0);

            
UTIL_WeaponAnimation(i0);

        } 

I cant compile it idk why

i just need sounds ads. or if someone have background ads plugin please.

DarkDeviL 08-06-2019 20:32

Re: request sma edit help
 
1. SMA? That is AMXMOD, ...? Definitely does not belong to the SourceMod -> Scripting section, where you posted this, ...

-> Thread moved to AMX -> Scripting Help.


2. Your code starts with "}", which typically indicate the end of some sort of code, meaning you have only shared a partial piece of code...

-> Share the full code (100%!) of what you are trying to compile, if you want anyone to have a try at helping you troubleshoot why it won't compile.


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

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