AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Cvars plugin (https://forums.alliedmods.net/showthread.php?t=231581)

smiley92 12-16-2013 14:15

Cvars plugin
 
PHP Code:

#include < amxmodx >
#include <fakemeta>

#pragma semicolon 1
    
#define PLUGIN "Flares"
#define VERSION "0.0.1"

new const snowflakes[  ] = "sprites/snowflakes.spr";

new 
real_snow;
public 
plugin_init( ) {

    
register_pluginPLUGINVERSION"Askhanar" );
    
    
register_event"DeathMsg",  "EventDeathMsg",  "a" );
}

public 
plugin_precache(  ) {
    
real_snow precache_modelsnowflakes );
}


public 
EventDeathMsg(  ) {    

    new 
iVictim  read_data);
    new 
iKiller  read_data(  1  );
    
    if( 
iVictim  !=  iKiller ) {

        new 
Float:fOrigin], iOrigin];
        
peviVictimpev_originfOrigin );
        
FVecIVecfOriginiOrigin );
        
        
UTIL_CreateSnowiOriginreal_snowrandom_num4060 ), random_num1015 ), random_num510 ) );
    }
}



stock UTIL_CreateSnow( const iOrigin], const iSpriteID, const iCount, const iLife, const iScale ) {

    
message_beginMSG_BROADCAST,SVC_TEMPENTITY );
    
write_byteTE_SPRITETRAIL );
    
write_coordiOrigin] );                // start position (X)
    
write_coordiOrigin] );                // start position (Y)
    
write_coordiOrigin] );                // start position (Z)
    
write_coordiOrigin] );                // end position (X)
    
write_coordiOrigin] );                // end position (Y)
    
write_coordiOrigin] + random_num4060 ) );    // end position (Z)
    
write_shortiSpriteID );                // sprite index
    
write_byteiCount );                // number of snow
    
write_byteiLife );                    // life in 0.1's
    
write_byteiScale );                // scale in 0.1's
    
write_byterandom_num4055 ) );            // velocity along vector in 10's
    
write_byterandom_num1515 ) );            // randomness of velocity in 10'
    
message_end(  );


I have that plugin, and I want to somebody help me with some cvar, like at mean:

http://**************/photo/my-images/854/v6w7.jpg/

http://**************/photo/my-images/842/1bd4.jpg/

Can make somebody plugin like a pictures above, a cvar with fog ( darkness ), and another cvar with density of snow? ( smoothly, moderate and abundant ).

1. cvar 1 - activated, 0 - cvar off fog
2. 1 - cvar smoothly, 2 - cvar moderate, 3 - abundant.

Albanian Zombie 12-16-2013 14:23

Re: Cvars plugin
 
https://forums.alliedmods.net/showthread.php?t=42151

smiley92 12-16-2013 14:34

Re: Cvars plugin
 
Quote:

Originally Posted by Albanian Zombie (Post 2072793)

I see that, but I want just cvars with what say in topic.

joshknifer 12-16-2013 14:39

Re: Cvars plugin
 
Why don't you ask where you got the plugin?

smiley92 12-17-2013 02:18

Re: Cvars plugin
 
Quote:

Originally Posted by joshknifer (Post 2072801)
Why don't you ask where you got the plugin?

Because people is too lazy to add something to plugin.

joshknifer 12-17-2013 11:41

Re: Cvars plugin
 
Quote:

Originally Posted by smiley92 (Post 2073006)
Because people is too lazy to add something to plugin.

And clearly you are too lazy to ask the author.


All times are GMT -4. The time now is 20:23.

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