AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Is this possible? (https://forums.alliedmods.net/showthread.php?t=183049)

Bilal Pro 04-16-2012 13:08

Is this possible?
 
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?

EpicMonkey 04-16-2012 13:20

Re: Is this possible?
 
use ham_takedamage , make him visible then after 0.5 seconds make him invisible using set_task

Bilal Pro 04-16-2012 13:24

Re: Is this possible?
 
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

claudiuhks 04-16-2012 14:05

Re: Is this possible?
 
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

rak 04-16-2012 21:44

Re: Is this possible?
 
set_user_rendering..............

wickedd 04-16-2012 21:53

Re: Is this possible?
 
Take a look at this.


All times are GMT -4. The time now is 07:54.

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