AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Beacon stock (https://forums.alliedmods.net/showthread.php?t=252183)

Snitch 11-27-2014 16:25

Beacon stock
 
i have this Beacon, but i want change it to another i dont know how..
Code:

stock MakeBeacon( const index )
{
    static iOrigin[ 3 ];
    get_user_origin( index, iOrigin );
   
    message_begin( MSG_BROADCAST, SVC_TEMPENTITY);
    write_byte( TE_BEAMTORUS );
    write_coord( iOrigin[ 0 ] );
    write_coord( iOrigin[ 1 ] );
    write_coord( iOrigin[ 2 ] );
    write_coord( iOrigin[ 0 ] );
    write_coord( iOrigin[ 1 ] );
    write_coord( iOrigin[ 2 ] + 100 );
    write_short( g_iBeaconBeam );
    write_byte( 0 );
    write_byte( 1 );
    write_byte( 7 );
    write_byte( 80 );       
    write_byte( 1 );
    write_byte( 0 );    // Red
    write_byte( 250 );    // Green
    write_byte( 17 );    // Blue
    write_byte( 200 );
    write_byte( 0 );
   
    message_end();
}

to this >
someone can help me?
http://up413.siz.co.il/up3/jlmjw2mjyzlv.png

Snitch 12-13-2014 11:35

Re: Beacon stock
 
bump

zmd94 12-13-2014 11:56

Re: Beacon stock
 
Change into what?

Snitch 12-13-2014 12:38

Re: Beacon stock
 
Quote:

Originally Posted by zmd94 (Post 2234864)
Change into what?

My beacon code have agreen color when i hit the ct, but i want change it to like picture.

zmd94 12-13-2014 12:53

Re: Beacon stock
 
Just edit this part:
PHP Code:

    write_byte);    // Red
    
write_byte250 );    // Green
    
write_byte17 );    // Blue 


Snitch 12-13-2014 15:40

Re: Beacon stock
 
Quote:

Originally Posted by zmd94 (Post 2234891)
Just edit this part:
PHP Code:

    write_byte);    // Red
    
write_byte250 );    // Green
    
write_byte17 );    // Blue 


but how can i do like this:
http://up413.siz.co.il/up3/jlmjw2mjyzlv.png

YamiKaitou 12-13-2014 15:43

Re: Beacon stock
 
There is multiple things in that photo, you need to describe what you want with words, not photos

meTaLiCroSS 12-13-2014 19:10

Re: Beacon stock
 
Quote:

Originally Posted by YamiKaitou (Post 2234956)
There is multiple things in that photo, you need to describe what you want with words, not photos

It's redirecting to a site lol

zmd94 12-13-2014 21:28

Re: Beacon stock
 
Please describe the photo with words first.

Snitch 12-15-2014 04:49

Re: Beacon stock
 
I mean if you hit the cops so he would look like the picture, and the code itself that shows him with a big green!.!.!
I want to be like the picture.


All times are GMT -4. The time now is 17:30.

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