Raised This Month: $ Target: $400
 0% 

Need a fog amxx plugin liek this one


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
puiu_92
New Member
Join Date: Mar 2008
Old 05-23-2008 , 07:36   Need a fog amxx plugin liek this one
Reply With Quote #1

I need a working no lag fog plugin like the oane in the screen shot please ho has one ...
[IMG]http://img165.**************/img165/4344/fogexsq2.jpg[/IMG]
please help me guys
puiu_92 is offline
hazard1337
Senior Member
Join Date: Sep 2006
Old 05-23-2008 , 09:03   Re: Need a fog amxx plugin liek this one
Reply With Quote #2

maybe its the map?
__________________
[IMG]http://img139.**************/img139/1530/2sejaewg1.gif[/IMG]
If you +/- my K, leave your name.
I do not take requests VIA PM
Click on this before requesting/suggesting
This is your best friend
hazard1337 is offline
Send a message via Skype™ to hazard1337
ZombieMan
Senior Member
Join Date: May 2008
Location: Italy.
Old 05-23-2008 , 09:23   Re: Need a fog amxx plugin liek this one
Reply With Quote #3

Try this :

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

// constats
new const PLUGIN_NAME[] = "Rain Events";
new const 
PLUGIN_VERSION[] = "0.1";
new const 
PLUGIN_AUTHOR[] = "SAMURAI";

new const 
sCommand[] = "cl_weather 0";

#define MAX_TIME 180

// pcvars;
new pcvar[3];
new 
gcount 0;

/********************************************************/
/***************** AMXMODX Plugin ***********************/
/********************************************************/

// stocks
stock samurai_create_ent(const classname[])
{
    
// return create a entity called "classname"
    
return engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringclassname));
}



stock set_keyvalue(entkey[], value[]) 
{
    new 
classname[32];
    
pev(entpev_classnameclassname31);
    
set_kvd(0KV_ClassNameclassname);
    
set_kvd(0KV_KeyNamekey);
    
set_kvd(0KV_Valuevalue);
    
set_kvd(0KV_fHandled0);
    
dllfunc(DLLFunc_KeyValueent0);
}




/************** Plugin Precache Forward *****************/
public plugin_precache()
{
    
// register the plugin
    
register_plugin(PLUGIN_NAME,PLUGIN_VERSION,PLUGIN_AUTHOR);
    
    
// register cvars :
    
pcvar[0] = register_cvar("enable_rain","1");
    
pcvar[1] = register_cvar("enable_fog","1");

    
    if(
get_pcvar_num(pcvar[0]) == 1) {
        
// create a env_rain entity
        
samurai_create_ent("env_rain");
    }
    
    static 
fog;
    
// create a env_fog entity
    
fog samurai_create_ent("env_fog");
    
    switch(
get_pcvar_num(pcvar[1])) {
        case 
1:
        {
            
// FOG OWNZ
            
set_keyvalue(fog,"density","0.001");
            
set_keyvalue(fog,"rendercolor","128 128 128");
        }
        
        case 
2:
        {
            
set_task(300.0,"task_fog",fog+1111,_,_,"a",8);
            
set_task(1.0,"task_fog",0,"",0,"b");
        }
    }
            
    
}

/************** Client Connect Forward *******************/
public client_connect(id)
{
    
client_cmd(id,"cl_weather 1");
}


/*************** Client Putinserver ***********************/
public client_putinserver(id)
{
    
set_task(10.0,"task_display_msg",id);
    
    
}

public 
task_display_msg(id)
{
    if(
is_user_connected(id) ) {
        
client_print(id,print_chat,"Pentru a opri ploaia, scrie %s in consola"sCommand);
    }
}


public 
task_fog(taskid)
{
    new 
ent taskid 1111;
    
    if(
gcount MAX_TIME)
    {
        
// AGAIN FOG OWNZ
        
set_keyvalue(ent,"density","0.001");
        
set_keyvalue(ent,"rendercolor","128 128 128");
    }
    
    else if(
gcount >= MAX_TIME)
    {
        
// remove the fucking fog entity
        
engfunc(EngFunc_RemoveEntity,ent);
        
        
gcount 0;
        
    
    }
        
    
gcount += 1;
    

Cvars :

enable_rain (default 1) - activate / deactivate rain
enable_fog (default 1) - 1 = Everytime is fog | 2 = The fog appear once at 5 minutes and hold 3 minutes

Necesary modules :

Fakemeta
__________________
BACK TO BUSINESS

If you want to feel better give me + karma but ... don't forget to leave your name

DO NOT PM me for support
ZombieMan is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 05-23-2008 , 09:53   Re: Need a fog amxx plugin liek this one
Reply With Quote #4

I think if someone can make plugin like that with dark fog for all maps will be great play some maps with fog
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
hazard1337
Senior Member
Join Date: Sep 2006
Old 05-23-2008 , 10:04   Re: Need a fog amxx plugin liek this one
Reply With Quote #5

de_dust2 in fog....oh man that would be insane
__________________
[IMG]http://img139.**************/img139/1530/2sejaewg1.gif[/IMG]
If you +/- my K, leave your name.
I do not take requests VIA PM
Click on this before requesting/suggesting
This is your best friend
hazard1337 is offline
Send a message via Skype™ to hazard1337
ZombieMan
Senior Member
Join Date: May 2008
Location: Italy.
Old 05-23-2008 , 10:07   Re: Need a fog amxx plugin liek this one
Reply With Quote #6

Dark fog here

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

// constats
new const PLUGIN_NAME[] = "Rain Events";
new const 
PLUGIN_VERSION[] = "0.1";
new const 
PLUGIN_AUTHOR[] = "SAMURAI";

new const 
sCommand[] = "cl_weather 0";

#define MAX_TIME 180

// pcvars;
new pcvar[3];
new 
gcount 0;

/********************************************************/
/***************** AMXMODX Plugin ***********************/
/********************************************************/

// stocks
stock samurai_create_ent(const classname[])
{
    
// return create a entity called "classname"
    
return engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringclassname));
}



stock set_keyvalue(entkey[], value[]) 
{
    new 
classname[32];
    
pev(entpev_classnameclassname31);
    
set_kvd(0KV_ClassNameclassname);
    
set_kvd(0KV_KeyNamekey);
    
set_kvd(0KV_Valuevalue);
    
set_kvd(0KV_fHandled0);
    
dllfunc(DLLFunc_KeyValueent0);
}




/************** Plugin Precache Forward *****************/
public plugin_precache()
{
    
// register the plugin
    
register_plugin(PLUGIN_NAME,PLUGIN_VERSION,PLUGIN_AUTHOR);
    
    
// register cvars :
    
pcvar[0] = register_cvar("enable_rain","1");
    
pcvar[1] = register_cvar("enable_fog","1");

    
    if(
get_pcvar_num(pcvar[0]) == 1) {
        
// create a env_rain entity
        
samurai_create_ent("env_rain");
    }
    
    static 
fog;
    
// create a env_fog entity
    
fog samurai_create_ent("env_fog");
    
    switch(
get_pcvar_num(pcvar[1])) {
        case 
1:
        {
            
// FOG OWNZ
            
set_keyvalue(fog,"density","0.001");
            
set_keyvalue(fog,"rendercolor","28 28 28");
        }
        
        case 
2:
        {
            
set_task(300.0,"task_fog",fog+1111,_,_,"a",8);
            
set_task(1.0,"task_fog",0,"",0,"b");
        }
    }
            
    
}

/************** Client Connect Forward *******************/
public client_connect(id)
{
    
client_cmd(id,"cl_weather 1");
}


/*************** Client Putinserver ***********************/
public client_putinserver(id)
{
    
set_task(10.0,"task_display_msg",id);
    
    
}

public 
task_display_msg(id)
{
    if(
is_user_connected(id) ) {
        
client_print(id,print_chat,"Pentru a opri ploaia, scrie %s in consola"sCommand);
    }
}


public 
task_fog(taskid)
{
    new 
ent taskid 1111;
    
    if(
gcount MAX_TIME)
    {
        
// AGAIN FOG OWNZ
        
set_keyvalue(ent,"density","0.001");
        
set_keyvalue(ent,"rendercolor","28 28 28");
    }
    
    else if(
gcount >= MAX_TIME)
    {
        
// remove the fucking fog entity
        
engfunc(EngFunc_RemoveEntity,ent);
        
        
gcount 0;
        
    
    }
        
    
gcount += 1;
    

__________________
BACK TO BUSINESS

If you want to feel better give me + karma but ... don't forget to leave your name

DO NOT PM me for support
ZombieMan is offline
hazard1337
Senior Member
Join Date: Sep 2006
Old 05-23-2008 , 10:09   Re: Need a fog amxx plugin liek this one
Reply With Quote #7

yo zombeh, try upload the .sma or linking the original release page ;) most people don't want to copy + paste then compile.

Looking at that car in the picture made me shiver....I've been playing HL2 so much and the graphic change is still mind blowing.
__________________
[IMG]http://img139.**************/img139/1530/2sejaewg1.gif[/IMG]
If you +/- my K, leave your name.
I do not take requests VIA PM
Click on this before requesting/suggesting
This is your best friend
hazard1337 is offline
Send a message via Skype™ to hazard1337
dangerix
Senior Member
Join Date: Aug 2007
Location: Germany
Old 05-23-2008 , 10:10   Re: Need a fog amxx plugin liek this one
Reply With Quote #8

The fog is part of the well known "Biohazard" zombie infection plugin (it's not part of the map zm_perdidos_sc).
__________________
dangerix is offline
ZombieMan
Senior Member
Join Date: May 2008
Location: Italy.
Old 05-23-2008 , 10:20   Re: Need a fog amxx plugin liek this one
Reply With Quote #9

Try it
Attached Files
File Type: sma Get Plugin or Get Source (fog.sma - 2315 views - 2.8 KB)
File Type: sma Get Plugin or Get Source (dark_fog.sma - 1895 views - 2.8 KB)
__________________
BACK TO BUSINESS

If you want to feel better give me + karma but ... don't forget to leave your name

DO NOT PM me for support
ZombieMan is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 05-23-2008 , 10:24   Re: Need a fog amxx plugin liek this one
Reply With Quote #10

I tested fog it was funny very hard to see a enemy nice .
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
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 19:22.


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