Raised This Month: $ Target: $400
 0% 

Events request [SOLVED!]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 08-27-2008 , 21:34   Re: Events request
Reply With Quote #7

@ PrEn1umz : it's something like this:
PHP Code:
public fw_setmodel(ent,const model[])
{
    if(!
pev_valid(ent))
        return 
FMRES_IGNORED;
    static 
classname[32]
    
pev(ent,pev_classname,classname,31);
    if(!
strcmp(classname"weaponbox") || !strcmp(classname"armoury_entity") || !strcmp(classname"grenade"))
    {
        
// change model
        
return FMRES_SUPERCEDE;
    }
    
    return 
FMRES_IGNORED;

but is not what i'm looking for...i want an event/function when a player has drop a weapon...and check if the weapon is x for example.
__________________

anakin_cstrike 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 03:13.


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