Raised This Month: $ Target: $400
 0% 

[ZP] Extra Item: Sawn-Off Shotgun v0.4.5


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-08-2009 , 18:58   Re: [ZP] Extra Item: Sawn-Off Shotgun v0.2
Reply With Quote #11

Quote:
Originally Posted by fezh View Post
Do you have enabled the fakemeta module on modules.ini?
That's not the problem.
The problem is the code:

PHP Code:
public fw_Touch(entitytoucher)
{
    
// Entity is not valid
    
if(!pev_valid(entity))
        return 
FMRES_IGNORED;
        
    
// Get model, toucher classname, and entity classname
    
new model[33], toucherclass[33], entityclass[33]
    
pev(entitypev_modelmodelcharsmax(model))
    
pev(entitypev_classnameentityclasscharsmax(entityclass))
    
pev(toucherpev_classnametoucherclasscharsmax(toucherclass))
    
    if(!
equali(toucherclass"player") || !equali(entityclass"weaponbox"))
        return 
FMRES_IGNORED;
        
    if(
equali(modelsawnoff_model_w))
        if(
allowed_touch(toucher))
            
g_sawnoff_shotgun[toucher] = true;
    
    return 
FMRES_IGNORED;

Line 218:
PHP Code:
pev(toucherpev_classnametoucherclasscharsmax(toucherclass)) 
Should be:
PHP Code:
public fw_Touch(entitytoucher)
{
    
// Entity is not valid
    
if(!pev_valid(entity) || !pev_valid(toucher))
        return 
FMRES_IGNORED;
        
    
// Get model, toucher classname, and entity classname
    
new model[33], toucherclass[33], entityclass[33]
    
pev(entitypev_modelmodelcharsmax(model))
    
pev(entitypev_classnameentityclasscharsmax(entityclass))
    
pev(toucherpev_classnametoucherclasscharsmax(toucherclass))
    
    if(!
equali(toucherclass"player") || !equali(entityclass"weaponbox"))
        return 
FMRES_IGNORED;
        
    if(
equali(modelsawnoff_model_w))
        if(
allowed_touch(toucher))
            
g_sawnoff_shotgun[toucher] = true;
    
    return 
FMRES_IGNORED;

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
 



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 06:16.


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