Thread: [DELETED]
View Single Post
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 08-16-2018 , 05:54   Re: [help] golden m4
Reply With Quote #5

Quote:
Originally Posted by Shadowless View Post
//// GoldenM4a1.sma
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\G oldenM4a1.sma(121) : error 017: undefined symbol "id"
//
// 1 Error.
// Could not locate output file compiled\GoldenM4a1.amx (compile failed).
//
// Compilation Time: 0,3 sec
// ----------------------------------------


line 121 = if(!g_HasM4[id])
Code:
public fw_SetModel(entity, model[])
{
    if(!is_valid_ent(entity)) 
        return FMRES_IGNORED

    static id; id = pev(entity, pev_owner)

    if(!g_HasM4[id])
        return FMRES_IGNORED

    if(!equali(model, OLD_M4_W_MODEL)) 
        return FMRES_IGNORED

    new className[33]
    entity_get_string(entity, EV_SZ_classname, className, 32)
    
    if(equal(className, "weaponbox") || equal(className, "armoury_entity") || equal(className, "grenade"))
    {
        engfunc(EngFunc_SetModel, entity, M4_W_MODEL)
        return FMRES_SUPERCEDE
    }
    return FMRES_IGNORED
}
Quote:
Originally Posted by Ghosted View Post
Yes that won't work, part of code for W model is missing even if you detect PlayerIndex & g_HasM4 it wont still work, cause dropped weapon requires key. I would suggest my weapon mod.
Who said it won't work?
__________________
My plugin:

Last edited by Celena Luna; 08-16-2018 at 05:57.
Celena Luna is offline