Raised This Month: $ Target: $400
 0% 

Cvars plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
smiley92
Senior Member
Join Date: Jun 2011
Location: Romania
Old 12-16-2013 , 14:15   Cvars plugin
Reply With Quote #1

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.

Last edited by smiley92; 12-16-2013 at 14:22.
smiley92 is offline
Albanian Zombie
Senior Member
Join Date: May 2013
Location: void
Old 12-16-2013 , 14:23   Re: Cvars plugin
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=42151
Albanian Zombie is offline
smiley92
Senior Member
Join Date: Jun 2011
Location: Romania
Old 12-16-2013 , 14:34   Re: Cvars plugin
Reply With Quote #3

Quote:
Originally Posted by Albanian Zombie View Post
I see that, but I want just cvars with what say in topic.
smiley92 is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-16-2013 , 14:39   Re: Cvars plugin
Reply With Quote #4

Why don't you ask where you got the plugin?
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
smiley92
Senior Member
Join Date: Jun 2011
Location: Romania
Old 12-17-2013 , 02:18   Re: Cvars plugin
Reply With Quote #5

Quote:
Originally Posted by joshknifer View Post
Why don't you ask where you got the plugin?
Because people is too lazy to add something to plugin.
smiley92 is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-17-2013 , 11:41   Re: Cvars plugin
Reply With Quote #6

Quote:
Originally Posted by smiley92 View Post
Because people is too lazy to add something to plugin.
And clearly you are too lazy to ask the author.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
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:23.


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