Raised This Month: $ Target: $400
 0% 

owner weapon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 12-08-2015 , 11:19   owner weapon
Reply With Quote #1

I want to change the function of the owner of the weapon (snark) can not be dropped his weapon

Code:
public monsters_touch(monster, target) {    new array[32]    new owner = pev(monster, pev_owner)        pev(target, pev_classname, array, charsmax(array))          if(equal(array, "func_door") || equal(array, "func_door_rotating") || equal(array, "func_button"))       use_func(target, owner)    else if(equal(array, "func_pushable"))       velocity_func(monster, target, 1)          else if(equal(array, "player"))    {         if(!is_user_alive(target)) return             new skip             pev(monster, pev_model, array, charsmax(array))             if(equal(array, "models/w_grenade.mdl"))   set_pev(monster, pev_solid, SOLID_NOT)       else if(equal(array, "models/w_squeak.mdl"))   skip = 1       else if(equal(array, "models/w_satchel.mdl"))   skip = 0       else return // HLW_MP5(grenade) has NO model "o_O"             if(get_pcvar_num(drop))          console_cmd(target, "drop")             velocity_func(monster, target, 2)             if(!skip)          hurt_func(owner, target, get_pcvar_num(pain), monster)          } }
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
 



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 18:15.


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