Raised This Month: $ Target: $400
 0% 

ignored owner


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 06-27-2017 , 21:03   ignored owner
Reply With Quote #1

Hi
How can I ignore the owner after being selected in these cases?

1) first one solved

2)

PHP Code:
public monsters_touch(monstertarget)
{
   new array[
32]
   new 
owner pev(monsterpev_owner)
   
   
pev(targetpev_classname, array, charsmax(array))
      
   if(
equal(array, "func_door") || equal(array, "func_door_rotating") || equal(array, "func_button"))
      
use_func(targetowner)

   else if(
equal(array, "func_pushable"))
      
velocity_func(monstertarget1)
      
   else if(
equal(array, "player"))
   {   
      if(!
is_user_alive(target)) return
      
      new 
skip
      
      pev
(monsterpev_model, array, charsmax(array))
      
      if(
equal(array, "models/w_grenade.mdl"))   set_pev(monsterpev_solidSOLID_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(target != owner && get_pcvar_num(drop)) // here but no luck ( 
         
console_cmd(target"drop")
      
      
velocity_func(monstertarget2)
      
      if(!
skip)
         
hurt_func(ownertargetget_pcvar_num(pain), monster)      
   }

__________________

Last edited by abdobiskra; 06-28-2017 at 06:20.
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 22:56.


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