Raised This Month: $ Target: $400
 0% 

[REQ] Laser (NightCrawler)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiceGuyx
Senior Member
Join Date: Nov 2011
Old 12-23-2011 , 18:23   [REQ] Laser (NightCrawler)
Reply With Quote #1

Hello, i want know why after i say /lg the laser show in 1sec and disappear
I want it to disappear only if player is dead

PHP Code:
register_clcmd("say /lg""laser_green")                

public 
laser_greenid )
    {
        if( !
is_user_aliveid ) )
            return;

                static 
iRediGreeniBlueiWeapon;                
            
                
iWeapon get_user_weaponid );
            
                if( 
IsPrimaryWeaponiWeapon ) || IsSecondaryWeaponiWeapon ) )


                        {
                        
iRed 0;
                        
iGreen 255;
                        
iBlue 0;
                    }
                    
                    static 
iOrigin];
                    
get_user_originidiOrigin);
                    
                    
message_beginMSG_BROADCASTSVC_TEMPENTITY );
                    
write_byteTE_BEAMENTPOINT );
                    
write_shortid 0x1000 );
                    
write_coordiOrigin] );
                    
write_coordiOrigin] );
                    
write_coordiOrigin] );
                    
write_shortg_iLaserSprite );
                    
write_byte);
                    
write_byte10 );
                    
write_byte);
                    
write_byte);
                    
write_byte);
                    
write_byteiRed );
                    
write_byteiGreen );
                    
write_byteiBlue );
                    
write_byte150 );
                    
write_byte25 );
                    
message_end( );

NiceGuyx is offline
NiceGuyx
Senior Member
Join Date: Nov 2011
Old 12-24-2011 , 05:04   Re: [REQ] Laser (NightCrawler)
Reply With Quote #2

Help please
NiceGuyx is offline
OxfordL
Member
Join Date: Nov 2011
Location: Paris
Old 12-24-2011 , 05:30   Re: [REQ] Laser (NightCrawler)
Reply With Quote #3

Don't bump before 2 weeks ... Read the rules..
OxfordL is offline
Larcyn
Senior Member
Join Date: Oct 2010
Old 12-24-2011 , 05:56   Re: [REQ] Laser (NightCrawler)
Reply With Quote #4

Add this:

When typing /lg, set a boolean status to true, and then use the code in prethink.

In prethink:

Add a check for if boolean status is set to true, and if the player is alive, if it's correct show laser, else return.

Edit: Take a look at this plugin:
https://forums.alliedmods.net/showthread.php?t=138572
__________________

Taking private requests, PM me for information.
Selling HideNSeek & Jailbreak plugins.

Selling Achievement API System (PHP &
MySQL / nVault)

Last edited by Larcyn; 12-24-2011 at 05:57. Reason: Added a link
Larcyn is offline
Reply



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 20:52.


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