AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [REQ] Player Glow for 2 seconds with get_gametime() (https://forums.alliedmods.net/showthread.php?t=221879)

Shockblade 07-27-2013 12:03

[REQ] Player Glow for 2 seconds with get_gametime()
 
How can I set player Glow for 2 seconds with
PHP Code:

new Float:flTime get_gametime() 


akcaliberg 07-27-2013 12:25

Re: [REQ] Player Glow for 2 seconds with get_gametime()
 
I think it is the best to use set_task with small numbers like that

Shockblade 07-27-2013 13:31

Re: [REQ] Player Glow for 2 seconds with get_gametime()
 
i dont know how to make it...

UchihaSkills 07-27-2013 13:39

Re: [REQ] Player Glow for 2 seconds with get_gametime()
 
set_task is pretty much the whole code

DWIGHTpN 07-27-2013 16:19

Re: [REQ] Player Glow for 2 seconds with get_gametime()
 
Don't use get_gametime() for set render 2 sec
Is complicated for a simple thing :)

With set_task..
PHP Code:

public SetROnPlayerid ) {
        if( 
is_user_aliveid ) )
           
set_user_rendering(idkRenderFxGlowShellcolor_REDcolor_GREENcolor_BLUEkRenderNormal25);
           
// color_RED -> 0/255
           // color_GREEN -> 0/255
           // color_BLUE -> 0/255
     
set_task2.0"RemoveROnPlayer"id );
}

public 
RemoveROnPlayertask ) {
       new 
id task;
        
set_user_rendering(idkRenderFxGlowShell000kRenderNormal25);
       
// remove render...




All times are GMT -4. The time now is 15:57.

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