AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Will this make it snow in all maps? [snow.sma] (https://forums.alliedmods.net/showthread.php?t=87427)

crazyeffect 03-11-2009 14:31

Will this make it snow in all maps? [snow.sma]
 
1 Attachment(s)
Hey, will this plugin let it snow in all maps?

P.S. GameFreak is my gamename

PHP Code:

#include <amxmodx>
 
public plugin_init()
{
 
register_plugin"SNOW""1.0""GameFreak");
}
 
public 
plugin_end()
{
         
server_cmd"sv_skyname snow");



Dr.G 03-11-2009 14:45

Re: Will this make it snow in all maps? [snow.sma]
 
no it will load a skymap called snow... did it snow when you tested it? Look in some of the plugins already made for snow

crazyeffect 03-11-2009 14:48

Re: Will this make it snow in all maps? [snow.sma]
 
So this plugin of tuty:

PHP Code:

#include <amxmodx>
 
#define PLUGIN "Random Skies"
#define VERSION "1.1"
#define AUTHOR "tuty"
 
new gPluginMode;
 
new const 
skies[][] = {
    
"2desert""alien1""alien2""alien3",
    
"black""city""cliffe""desert",
    
"dusk""morning","neb1""neb6",
    
"neb7""space""xen10""xen8",
    
"xen9""night""black","green",
    
"blue""backalley""city1""morningdew",
    
"hav""cliff""office""grnplsnt",
    
"tornsky""doom1""cx""de_storm",
    
"snowlake_""tornsky""trainyard""tsccity_",
    
"snow""2desert""des"
};

public 
plugin_init()
{
 
register_pluginPLUGINVERSIONAUTHOR );
 
gPluginMode register_cvar"sv_skies_mode""1" );  // 0 - disabled, 1 - random skies
}

public 
plugin_end()
{
 if( 
get_pcvar_numgPluginMode ) == )
     {
         
server_cmd"sv_skyname %s"skiesrandom_num0charsmaxskies ) ) ] );
     }


will work if i just enable snow in const skies?

ConnorMcLeod 03-11-2009 14:50

Re: Will this make it snow in all maps? [snow.sma]
 
Create a "env_snow" entity during precache will create snow on all maps.

crazyeffect 03-11-2009 14:51

Re: Will this make it snow in all maps? [snow.sma]
 
Ok, i will put this in plugin submittions :D

anakin_cstrike 03-11-2009 15:29

Re: Will this make it snow in all maps? [snow.sma]
 
There are other plugin that creates snow, i think.

One 03-12-2009 04:02

Re: Will this make it snow in all maps? [snow.sma]
 
http://forums.alliedmods.net/showthread.php?p=358960

why dont u use this one here?i think to give snow on game u have to precache any spr or models... idk but i think there is a snow sprite that u can let this sprite falling or somthing like this.how ever i tested this plugin & this work.

Sn!ff3r 03-12-2009 10:08

Re: Will this make it snow in all maps? [snow.sma]
 
PHP Code:

/* Plugin generated by AMXX-Studio */

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

#define PLUGIN "Nowy Plugin"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

#define fm_create_entity(%1) engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, %1))

public plugin_precache() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
fm_create_entity("env_snow")



crazyeffect 03-12-2009 14:54

Re: Will this make it snow in all maps? [snow.sma]
 
Not work

Dr.G 03-12-2009 15:08

Re: Will this make it snow in all maps? [snow.sma]
 
the entity needs to think i belive. let it think every 0.2 sec e.g


All times are GMT -4. The time now is 09:01.

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