AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   is there any command to darken the map? (https://forums.alliedmods.net/showthread.php?t=189305)

klysman07 07-05-2012 16:41

is there any command to darken the map?
 
like a command for me darken the maps in the days of hide and seek in my jailbreak.

maybe a command that can be used in a scripting.

Tks ^^

<VeCo> 07-05-2012 16:44

Re: is there any command to darken the map?
 
set_lights

klysman07 07-05-2012 17:04

Re: is there any command to darken the map?
 
Quote:

Originally Posted by <VeCo> (Post 1744136)
set_lights

do this as a command to put the plugins?

and how to use it for the console?

have any number on the front?

for example
set_lights 200

hornet 07-05-2012 17:16

Re: is there any command to darken the map?
 
Quote:

Originally Posted by klysman07 (Post 1744159)
do this as a command to put the plugins?

and how to use it for the console?

have any number on the front?

for example
set_lights 200

set_lights() is an AMXX function, not a command to be used in your console. The input is actually a string character, "m" being the closest to default, "z" brightest, and "a" darkest.

Post in the request section if you want it made as a command for a plugin.

klysman07 07-05-2012 17:32

Re: is there any command to darken the map?
 
how can I put this function in code?
the darkness of the map 70%

Quote:

case DAY_HNS:
{
new players[32], num, player;
get_players( players, num, "ae", "TERRORIST" );

for( new i = 0; i < num; i++ )
{
player = players[i];

if( !is_user_alive( player ) )
continue;

set_user_rendering( player, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 16 );

set_user_footsteps( player, 1 );
server_cmd("sv_gravity 200");
client_cmd(player, "speak sound/GagaSong/DragonBall-Z.wav");

}

g_iTimeLeft = 60;
set_task( 1.0, "Hidenseek_Countdown", TASK_HIDENSEEK, _, _, "a", g_iTimeLeft + 1 );
}
}

ColorChat( 0, NORMAL, "%s ^03Objective: ^01%s", g_szPrefix, g_szDaymenuObjectives[g_iCurrentDay] );

if( get_pcvar_num( g_pOpenCells ) )
Push_Button();

return PLUGIN_HANDLED;
}

Santaaa 07-06-2012 17:49

Re: is there any command to darken the map?
 
PHP Code:

set_lights("m"

Next time search on the amxx function web page.


All times are GMT -4. The time now is 15:22.

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