Resolved ZE trail Plugin

Unpaid Requests, Public Plugins
Post Reply
johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 2 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 22
Contact:

ZE trail Plugin

#1

Post by johnnysins2000 » 2 Years Ago

Request to ZE DEV Team to make a compatible plugin

What I want is to have a Random color Trail Plugin
For ZE ADMINS only

Optimized version !
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1972
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 22
Contact:

#2

Post by Raheem » 2 Years Ago

Bro, Give me the plugin then.
You don't know? Learn and you will know.

User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 626
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

#3

Post by Mohamed Alaa » 2 Years Ago

Code: Select all

#include <zombie_escape>

#pragma semicolon 1

#define TASKID        81732519124

#define TRAIL_ACTIVE 1
#define TRAIL_INACTIVE 0
#define TRAIL_LIFE 15
#define ACCES_FLAG  ADMIN_LEVEL_G

new gTrailSprite;
new gTrailRandomColor[ 33 ][ 3 ];
new bPlayerTrailStatus[ 33 ];
new Float:bflNextCheck[ 33 ];
new const gTrailSpriteIndex[] = "sprites/zbeam2.spr";

const IN_MOVING = IN_FORWARD | IN_BACK | IN_MOVELEFT | IN_MOVERIGHT | IN_JUMP;

public plugin_init()
{ 
    register_plugin( "Owner Trail", "1.0.0", "tuty" );  
    register_forward( FM_CmdStart, "forward_cmdstart" );
    register_clcmd( "say trail", "cmdMakeOwnerTrail" ); 
    register_clcmd( "say_team trail", "cmdMakeOwnerTrail" );
    
    RegisterHam(Ham_Spawn, "player", "Fwd_Spawn", 1);
}

public plugin_precache()
{ 
    gTrailSprite = precache_model( gTrailSpriteIndex );
}

public client_connect( id )
{ 
    bPlayerTrailStatus[ id ] = TRAIL_INACTIVE;
}

public Fwd_Spawn(id)
{
    if(get_user_flags(id) & ACCES_FLAG)
    {
        bPlayerTrailStatus[id] = TRAIL_ACTIVE;
        
        gTrailRandomColor[ id ][ 0 ] = random_num( 0, 255 );  
        gTrailRandomColor[ id ][ 1 ] = random_num( 0, 255 );  
        gTrailRandomColor[ id ][ 2 ] = random_num( 0, 255 );
        
        set_task(10.0, "change_color", id + TASKID, .flags="b");
    }
}

public change_color(taskid)
{
    new id = taskid - TASKID;
    
    if(!is_user_alive(id))
    {
        remove_task(taskid);
        return;
    }
    
    gTrailRandomColor[ id ][ 0 ] = random_num( 0, 255 );  
    gTrailRandomColor[ id ][ 1 ] = random_num( 0, 255 );  
    gTrailRandomColor[ id ][ 2 ] = random_num( 0, 255 );    
}

public cmdMakeOwnerTrail( id )
{ 
    if( !is_user_alive( id ) )
    {  
        client_print( id, print_chat, "[PRemium ZM] You need to be alive!" );  
        return PLUGIN_HANDLED; 
    }  
    if( !( get_user_flags( id ) & ACCES_FLAG ) )
    {  
        client_print( id, print_chat, "[PRemium ZM] You don't have access!" );   
        return PLUGIN_HANDLED; 
    } 
    
    if( bPlayerTrailStatus[ id ] == TRAIL_ACTIVE )
    {  
        
        client_print( id, print_chat, "[PRemium ZM] Trail has been disabled!" );  
        
        bPlayerTrailStatus[ id ] = TRAIL_INACTIVE;  
        
        UTIL_KillBeamFollow( id );  
        
        bflNextCheck[ id ] = -5000.0;    
        
        return PLUGIN_HANDLED; 
    }  
    
    if( bPlayerTrailStatus[ id ] == TRAIL_INACTIVE ) 
    {  
        client_print( id, print_chat, "[Trail] Trail has been enabled!" );  
        
        bPlayerTrailStatus[ id ] = TRAIL_ACTIVE;    
        
        gTrailRandomColor[ id ][ 0 ] = random_num( 0, 255 );  
        gTrailRandomColor[ id ][ 1 ] = random_num( 0, 255 );  
        gTrailRandomColor[ id ][ 2 ] = random_num( 0, 255 );    
        
        return PLUGIN_HANDLED; 
    }  
    
    return PLUGIN_CONTINUE;
}

public forward_cmdstart( id, handle )
{ 
    if( !is_user_alive( id ) || bPlayerTrailStatus[ id ] == TRAIL_INACTIVE ) 
    {  
        return FMRES_IGNORED; 
    } 
    
    new iButton = get_uc( handle, UC_Buttons ); 
    
    if( !( iButton & IN_MOVING ) ) 
    {
        new Float:flGameTime = get_gametime();   
        if( bflNextCheck[ id ] < flGameTime )
        {   
            UTIL_KillBeamFollow( id );   
            UTIL_BeamFollow( id );
            bflNextCheck[ id ] = flGameTime + ( TRAIL_LIFE / 8 );  
        } 
    } 
    return FMRES_IGNORED;
}  

stock UTIL_BeamFollow( const iClient )
{
    message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
    write_byte( TE_BEAMFOLLOW )
    write_short( iClient )
    write_short( gTrailSprite )
    write_byte( TRAIL_LIFE)
    write_byte( 20 )
    write_byte( gTrailRandomColor[ iClient ][ 0 ] )
    write_byte( gTrailRandomColor[ iClient ][ 1 ] )
    write_byte( gTrailRandomColor[ iClient ][ 2 ] )
    write_byte(255)
    message_end()
}
    
stock UTIL_KillBeamFollow(const iClient)
{ 
    message_begin( MSG_BROADCAST, SVC_TEMPENTITY)
    write_byte(TE_KILLBEAM)     
    write_short(iClient)
    message_end()
}
Want your own mod edition? PM me.
Accepting web projects.
CS 1.6 hosting: powergamingtech.com

johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 2 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 22
Contact:

#4

Post by johnnysins2000 » 2 Years Ago

Jack GamePlay wrote:
2 Years Ago

Code: Select all

#include <zombie_escape>

#pragma semicolon 1

#define TASKID        81732519124

#define TRAIL_ACTIVE 1
#define TRAIL_INACTIVE 0
#define TRAIL_LIFE 15
#define ACCES_FLAG  ADMIN_LEVEL_G

new gTrailSprite;
new gTrailRandomColor[ 33 ][ 3 ];
new bPlayerTrailStatus[ 33 ];
new Float:bflNextCheck[ 33 ];
new const gTrailSpriteIndex[] = "sprites/zbeam2.spr";

const IN_MOVING = IN_FORWARD | IN_BACK | IN_MOVELEFT | IN_MOVERIGHT | IN_JUMP;

public plugin_init()
{ 
    register_plugin( "Owner Trail", "1.0.0", "tuty" );  
    register_forward( FM_CmdStart, "forward_cmdstart" );
    register_clcmd( "say trail", "cmdMakeOwnerTrail" ); 
    register_clcmd( "say_team trail", "cmdMakeOwnerTrail" );
    
    RegisterHam(Ham_Spawn, "player", "Fwd_Spawn", 1);
}

public plugin_precache()
{ 
    gTrailSprite = precache_model( gTrailSpriteIndex );
}

public client_connect( id )
{ 
    bPlayerTrailStatus[ id ] = TRAIL_INACTIVE;
}

public Fwd_Spawn(id)
{
    if(get_user_flags(id) & ACCES_FLAG)
    {
        bPlayerTrailStatus[id] = TRAIL_ACTIVE;
        
        gTrailRandomColor[ id ][ 0 ] = random_num( 0, 255 );  
        gTrailRandomColor[ id ][ 1 ] = random_num( 0, 255 );  
        gTrailRandomColor[ id ][ 2 ] = random_num( 0, 255 );
        
        set_task(10.0, "change_color", id + TASKID, .flags="b");
    }
}

public change_color(taskid)
{
    new id = taskid - TASKID;
    
    if(!is_user_alive(id))
    {
        remove_task(taskid);
        return;
    }
    
    gTrailRandomColor[ id ][ 0 ] = random_num( 0, 255 );  
    gTrailRandomColor[ id ][ 1 ] = random_num( 0, 255 );  
    gTrailRandomColor[ id ][ 2 ] = random_num( 0, 255 );    
}

public cmdMakeOwnerTrail( id )
{ 
    if( !is_user_alive( id ) )
    {  
        client_print( id, print_chat, "[PRemium ZM] You need to be alive!" );  
        return PLUGIN_HANDLED; 
    }  
    if( !( get_user_flags( id ) & ACCES_FLAG ) )
    {  
        client_print( id, print_chat, "[PRemium ZM] You don't have access!" );   
        return PLUGIN_HANDLED; 
    } 
    
    if( bPlayerTrailStatus[ id ] == TRAIL_ACTIVE )
    {  
        
        client_print( id, print_chat, "[PRemium ZM] Trail has been disabled!" );  
        
        bPlayerTrailStatus[ id ] = TRAIL_INACTIVE;  
        
        UTIL_KillBeamFollow( id );  
        
        bflNextCheck[ id ] = -5000.0;    
        
        return PLUGIN_HANDLED; 
    }  
    
    if( bPlayerTrailStatus[ id ] == TRAIL_INACTIVE ) 
    {  
        client_print( id, print_chat, "[Trail] Trail has been enabled!" );  
        
        bPlayerTrailStatus[ id ] = TRAIL_ACTIVE;    
        
        gTrailRandomColor[ id ][ 0 ] = random_num( 0, 255 );  
        gTrailRandomColor[ id ][ 1 ] = random_num( 0, 255 );  
        gTrailRandomColor[ id ][ 2 ] = random_num( 0, 255 );    
        
        return PLUGIN_HANDLED; 
    }  
    
    return PLUGIN_CONTINUE;
}

public forward_cmdstart( id, handle )
{ 
    if( !is_user_alive( id ) || bPlayerTrailStatus[ id ] == TRAIL_INACTIVE ) 
    {  
        return FMRES_IGNORED; 
    } 
    
    new iButton = get_uc( handle, UC_Buttons ); 
    
    if( !( iButton & IN_MOVING ) ) 
    {
        new Float:flGameTime = get_gametime();   
        if( bflNextCheck[ id ] < flGameTime )
        {   
            UTIL_KillBeamFollow( id );   
            UTIL_BeamFollow( id );
            bflNextCheck[ id ] = flGameTime + ( TRAIL_LIFE / 8 );  
        } 
    } 
    return FMRES_IGNORED;
}  

stock UTIL_BeamFollow( const iClient )
{
    message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
    write_byte( TE_BEAMFOLLOW )
    write_short( iClient )
    write_short( gTrailSprite )
    write_byte( TRAIL_LIFE)
    write_byte( 20 )
    write_byte( gTrailRandomColor[ iClient ][ 0 ] )
    write_byte( gTrailRandomColor[ iClient ][ 1 ] )
    write_byte( gTrailRandomColor[ iClient ][ 2 ] )
    write_byte(255)
    message_end()
}
    
stock UTIL_KillBeamFollow(const iClient)
{ 
    message_begin( MSG_BROADCAST, SVC_TEMPENTITY)
    write_byte(TE_KILLBEAM)     
    write_short(iClient)
    message_end()
}
Yes i have same plugin bro this one


Raheem is this code optimized
Nobody Is That Busy If They Make Time :roll:

johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 2 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 22
Contact:

#5

Post by johnnysins2000 » 2 Years Ago

It is not working
Nobody Is That Busy If They Make Time :roll:

johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 2 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 22
Contact:

#6

Post by johnnysins2000 » 2 Years Ago

Code: Select all

#include < amxmodx >
#include < amxmisc >
#include < fakemeta >
#include < hamsandwich >

#pragma semicolon 1

#define PLUGIN_VERSION "1.0.0"

#define TASKID        81732519124

#define TRAIL_ACTIVE 1
#define TRAIL_INACTIVE 0
#define TRAIL_LIFE 15
#define ACCES_FLAG  ADMIN_KICK

new gTrailSprite; 
new gTrailRandomColor[ 33 ][ 3 ];
new bPlayerTrailStatus[ 33 ];
new Float:bflNextCheck[ 33 ];
new const gTrailSpriteIndex[] = "sprites/zbeam2.spr";

const IN_MOVING = IN_FORWARD | IN_BACK | IN_MOVELEFT | IN_MOVERIGHT | IN_JUMP;

public plugin_init()
{ 
    register_plugin( "Owner Trail", PLUGIN_VERSION, "tuty" );  
    register_forward( FM_CmdStart, "forward_cmdstart" );
    register_clcmd( "say trail", "cmdMakeOwnerTrail" ); 
    register_clcmd( "say_team trail", "cmdMakeOwnerTrail" );
    
    RegisterHam(Ham_Spawn, "player", "Fwd_Spawn", 1);
}

public plugin_precache()
{ 
    gTrailSprite = precache_model( gTrailSpriteIndex );
}

public client_connect( id )
{ 
    bPlayerTrailStatus[ id ] = TRAIL_INACTIVE;
}

public Fwd_Spawn(id)
{
    if(get_user_flags(id) & ACCES_FLAG)
    {
        bPlayerTrailStatus[id] = TRAIL_ACTIVE;
        
        gTrailRandomColor[ id ][ 0 ] = random_num( 0, 255 );  
        gTrailRandomColor[ id ][ 1 ] = random_num( 0, 255 );  
        gTrailRandomColor[ id ][ 2 ] = random_num( 0, 255 );
        
        set_task(10.0, "change_color", id + TASKID, .flags="b"); 
    }
}

public change_color(taskid)
{
    new id = taskid - TASKID;
    
    if(!is_user_alive(id))
    {
        remove_task(taskid);
        return;
    }
    
    gTrailRandomColor[ id ][ 0 ] = random_num( 0, 255 );  
    gTrailRandomColor[ id ][ 1 ] = random_num( 0, 255 );  
    gTrailRandomColor[ id ][ 2 ] = random_num( 0, 255 );    
}

public cmdMakeOwnerTrail( id )
{ 
    if( !is_user_alive( id ) )
    {  
        client_print( id, print_chat, "[Trail] Nu poti folosi aceasta comanda cand esti mort!" );  
        return PLUGIN_HANDLED; 
    }  
    if( !( get_user_flags( id ) & ACCES_FLAG ) )
    {  
        client_print( id, print_chat, "[Trail] Nu ai acces la aceasta comanda!" );   
        return PLUGIN_HANDLED; 
    } 
    
    if( bPlayerTrailStatus[ id ] == TRAIL_ACTIVE )
    {  
        
        client_print( id, print_chat, "[Trail] Trailul tau a fost dezactivat!" );  
        
        bPlayerTrailStatus[ id ] = TRAIL_INACTIVE;  
        
        UTIL_KillBeamFollow( id );  
        
        bflNextCheck[ id ] = -5000.0;    
        
        return PLUGIN_HANDLED; 
    }  
    
    if( bPlayerTrailStatus[ id ] == TRAIL_INACTIVE ) 
    {  
        client_print( id, print_chat, "[Trail] Trail activat! Acum ai trail!" );  
        
        bPlayerTrailStatus[ id ] = TRAIL_ACTIVE;    
        
        gTrailRandomColor[ id ][ 0 ] = random_num( 0, 255 );  
        gTrailRandomColor[ id ][ 1 ] = random_num( 0, 255 );  
        gTrailRandomColor[ id ][ 2 ] = random_num( 0, 255 );    
        
        return PLUGIN_HANDLED; 
    }  
    
    return PLUGIN_CONTINUE;
}

public forward_cmdstart( id, handle )
{ 
    if( !is_user_alive( id ) || bPlayerTrailStatus[ id ] == TRAIL_INACTIVE ) 
    {  
        return FMRES_IGNORED; 
    } 
    
    new iButton = get_uc( handle, UC_Buttons ); 
    
    if( !( iButton & IN_MOVING ) ) 
    {
        new Float:flGameTime = get_gametime();   
        if( bflNextCheck[ id ] < flGameTime )
        {   
            UTIL_KillBeamFollow( id );   
            UTIL_BeamFollow( id );
            bflNextCheck[ id ] = flGameTime + ( TRAIL_LIFE / 8 );  
        } 
    }  
    
    return FMRES_IGNORED;
}  

stock UTIL_BeamFollow( const iClient )
{
    message_begin( MSG_BROADCAST, SVC_TEMPENTITY ); 
    write_byte( TE_BEAMFOLLOW ); 
    write_short( iClient );
    write_short( gTrailSprite ); 
    write_byte( TRAIL_LIFE );
    write_byte( 20 ); 
    write_byte( gTrailRandomColor[ iClient ][ 0 ] ); 
    write_byte( gTrailRandomColor[ iClient ][ 1 ] ); 
    write_byte( gTrailRandomColor[ iClient ][ 2 ] ); 
    write_byte( 255 ); 
    message_end();
}
    
stock UTIL_KillBeamFollow( const iClient )
{ 
    message_begin( MSG_BROADCAST, SVC_TEMPENTITY ); 
    write_byte( TE_KILLBEAM );     
    write_short( iClient ); 
    message_end();
}
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1972
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 22
Contact:

#7

Post by Raheem » 2 Years Ago

I'll optimize it when i get time, Sorry but i have exams this week.
You don't know? Learn and you will know.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1972
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 22
Contact:

#8

Post by Raheem » 2 Years Ago

Code optimized, I tested it and it's working:

  1. #include < zombie_escape >
  2.  
  3. #define PLUGIN_VERSION "1.0.0"
  4.  
  5. #define TASKID        81732519124
  6.  
  7. #define TRAIL_ACTIVE 1
  8. #define TRAIL_INACTIVE 0
  9. #define TRAIL_LIFE 15
  10. #define ACCES_FLAG  ADMIN_KICK
  11.  
  12. new gTrailSprite;
  13. new gTrailRandomColor[ 33 ][ 3 ];
  14. new bPlayerTrailStatus[ 33 ];
  15. new Float:bflNextCheck[ 33 ];
  16. new const gTrailSpriteIndex[] = "sprites/zbeam2.spr";
  17.  
  18. const IN_MOVING = IN_FORWARD | IN_BACK | IN_MOVELEFT | IN_MOVERIGHT | IN_JUMP;
  19.  
  20. public plugin_init()
  21. {
  22.     register_plugin( "Owner Trail", PLUGIN_VERSION, "tuty" );  
  23.     register_forward( FM_CmdStart, "forward_cmdstart" );
  24.     register_clcmd( "say trail", "cmdMakeOwnerTrail" );
  25.     register_clcmd( "say_team trail", "cmdMakeOwnerTrail" );
  26.    
  27.     RegisterHookChain(RG_CBasePlayer_Spawn, "Fw_PlayerSpawn_Post", 1);
  28. }
  29.  
  30. public plugin_precache()
  31. {
  32.     gTrailSprite = precache_model( gTrailSpriteIndex );
  33. }
  34.  
  35. public client_connect( id )
  36. {
  37.     bPlayerTrailStatus[ id ] = TRAIL_INACTIVE;
  38. }
  39.  
  40. public Fw_PlayerSpawn_Post(id)
  41. {
  42.     if(get_user_flags(id) & ACCES_FLAG)
  43.     {
  44.         bPlayerTrailStatus[id] = TRAIL_ACTIVE;
  45.        
  46.         gTrailRandomColor[ id ][ 0 ] = random_num( 0, 255 );  
  47.         gTrailRandomColor[ id ][ 1 ] = random_num( 0, 255 );  
  48.         gTrailRandomColor[ id ][ 2 ] = random_num( 0, 255 );
  49.        
  50.         set_task(10.0, "change_color", id + TASKID, .flags="b");
  51.     }
  52. }
  53.  
  54. public change_color(taskid)
  55. {
  56.     new id = taskid - TASKID;
  57.    
  58.     if(!is_user_alive(id))
  59.     {
  60.         remove_task(taskid);
  61.         return;
  62.     }
  63.    
  64.     gTrailRandomColor[ id ][ 0 ] = random_num( 0, 255 );  
  65.     gTrailRandomColor[ id ][ 1 ] = random_num( 0, 255 );  
  66.     gTrailRandomColor[ id ][ 2 ] = random_num( 0, 255 );    
  67. }
  68.  
  69. public cmdMakeOwnerTrail( id )
  70. {
  71.     if( !is_user_alive( id ) )
  72.     {  
  73.         client_print( id, print_chat, "[Trail] Do not use this command when you're dead!" );  
  74.         return PLUGIN_HANDLED;
  75.     }  
  76.     if( !( get_user_flags( id ) & ACCES_FLAG ) )
  77.     {  
  78.         client_print( id, print_chat, "[Trail] No access to this command!" );  
  79.         return PLUGIN_HANDLED;
  80.     }
  81.    
  82.     if( bPlayerTrailStatus[ id ] == TRAIL_ACTIVE )
  83.     {  
  84.        
  85.         client_print( id, print_chat, "[Trail] Your Trail was disabled!" );  
  86.        
  87.         bPlayerTrailStatus[ id ] = TRAIL_INACTIVE;  
  88.        
  89.         UTIL_KillBeamFollow( id );  
  90.        
  91.         bflNextCheck[ id ] = -5000.0;    
  92.        
  93.         return PLUGIN_HANDLED;
  94.     }  
  95.    
  96.     if( bPlayerTrailStatus[ id ] == TRAIL_INACTIVE )
  97.     {  
  98.         client_print( id, print_chat, "[Trail] Trail enabled! Now you trail!" );  
  99.        
  100.         bPlayerTrailStatus[ id ] = TRAIL_ACTIVE;    
  101.        
  102.         gTrailRandomColor[ id ][ 0 ] = random_num( 0, 255 );  
  103.         gTrailRandomColor[ id ][ 1 ] = random_num( 0, 255 );  
  104.         gTrailRandomColor[ id ][ 2 ] = random_num( 0, 255 );    
  105.        
  106.         return PLUGIN_HANDLED;
  107.     }  
  108.    
  109.     return PLUGIN_CONTINUE;
  110. }
  111.  
  112. public forward_cmdstart( id, handle )
  113. {
  114.     if( !is_user_alive( id ) || bPlayerTrailStatus[ id ] == TRAIL_INACTIVE )
  115.     {  
  116.         return FMRES_IGNORED;
  117.     }
  118.    
  119.     new iButton = get_uc( handle, UC_Buttons );
  120.    
  121.     if( !( iButton & IN_MOVING ) )
  122.     {
  123.         new Float:flGameTime = get_gametime();  
  124.         if( bflNextCheck[ id ] < flGameTime )
  125.         {  
  126.             UTIL_KillBeamFollow( id );  
  127.             UTIL_BeamFollow( id );
  128.             bflNextCheck[ id ] = flGameTime + ( TRAIL_LIFE / 8 );  
  129.         }
  130.     }  
  131.    
  132.     return FMRES_IGNORED;
  133. }  
  134.  
  135. stock UTIL_BeamFollow( const iClient )
  136. {
  137.     message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
  138.     write_byte( TE_BEAMFOLLOW );
  139.     write_short( iClient );
  140.     write_short( gTrailSprite );
  141.     write_byte( TRAIL_LIFE );
  142.     write_byte( 20 );
  143.     write_byte( gTrailRandomColor[ iClient ][ 0 ] );
  144.     write_byte( gTrailRandomColor[ iClient ][ 1 ] );
  145.     write_byte( gTrailRandomColor[ iClient ][ 2 ] );
  146.     write_byte( 255 );
  147.     message_end();
  148. }
  149.    
  150. stock UTIL_KillBeamFollow( const iClient )
  151. {
  152.     message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
  153.     write_byte( TE_KILLBEAM );    
  154.     write_short( iClient );
  155.     message_end();
  156. }

  • ImageImageImage
You don't know? Learn and you will know.

johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 2 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 22
Contact:

#9

Post by johnnysins2000 » 2 Years Ago

thnx brother :)
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1972
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 22
Contact:

#10

Post by Raheem » 2 Years Ago

:)
You don't know? Learn and you will know.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest