Raised This Month: $ Target: $400
 0% 

Is this possible?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-16-2012 , 13:08   Is this possible?
Reply With Quote #1

Is it possible that when a player get hitted, it shows a model for 0.5 seconds then it goes back to invinsible i, i think it is. But what am i needing to use for this?
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 04-16-2012 , 13:20   Re: Is this possible?
Reply With Quote #2

use ham_takedamage , make him visible then after 0.5 seconds make him invisible using set_task

Last edited by EpicMonkey; 04-16-2012 at 13:20.
EpicMonkey is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-16-2012 , 13:24   Re: Is this possible?
Reply With Quote #3

At the moment im using:
PHP Code:
if (HasNightcrawler == true && is_user_alive(id) && get_user_team(id) == 1)
    {
        
cs_set_user_model(id"nightcrawler")
        
set_task(1.0"RemoveModel")
    }

But it wont show the model/ wont remove it
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.

Last edited by Bilal Pro; 04-16-2012 at 13:44.
Bilal Pro is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-16-2012 , 14:05   Re: Is this possible?
Reply With Quote #4

Then, try this:

PHP Code:
public OnPlayerHurtVictimInflictorAttacker )
{
  if( 
Attacker && Attacker 33 && IsNightCrawlerAttacker ] && !IsModelledAttacker ] )
  {
    
IsModelledAttacker ] = true;

    
set_user_modelAttacker"nightcrawler" );

    
set_task1.0"Task_RemoveModel"Attacker );
  }
}

public 
Task_RemoveModelAttacker )
{
  if( 
is_user_aliveAttacker ) )
  {
    
IsModelledAttacker ] = false;

    
set_user_model"YourWantedModel" );
  }

And why don't you use set_pev( iPlayer, pev_effects, pev( iPlayer, pev_effects ) | EF_NODRAW ) and set_pev( iPlayer, pev_effects, pev( iPlayer, pev_effects ) &~ EF_NODRAW )?

http://forums.alliedmods.net/showthread.php?t=164453

Last edited by claudiuhks; 04-16-2012 at 14:15.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 04-16-2012 , 21:44   Re: Is this possible?
Reply With Quote #5

set_user_rendering..............
__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
wickedd
Veteran Member
Join Date: Nov 2009
Old 04-16-2012 , 21:53   Re: Is this possible?
Reply With Quote #6

Take a look at this.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Reply


Thread Tools
Display Modes

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 07:54.


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