
Posts
835
Respect
195Add +1
Forum Rank
The Decider
Primary Group
Mapper
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!
![]() | Has released one or more maps to the UGX-Mods community. |
#include common_scripts\utility;
#include maps\_zombiemode_utility;
#include maps\_utility;
main()
{
powerup_trigs = getentarray( "buy_powerup", "targetname" );
array_thread( powerup_trigs,::buy_powerup );
}
buy_powerup()
{
while(1)
{
player = undefined;
powerup_name = undefined;
cost = 1000;
powerup = self.script_noteworthy;
self UseTriggerRequireLookAt();
if( powerup == "insta_kill" )
{
powerup_name = "Insta Kill";
cost = 2000;
}
else if( powerup == "double_points" )
{
powerup_name = "Double Points";
cost = 1000;
}
else if( powerup == "max_ammo" )
{
powerup_name = "Max Ammo";
cost = 1000;
}
self SetHintString( "Press &&1 to buy " + powerup_name + " Powerup [Cost: "+cost+"]" );
self waittill( "trigger", player );
if( !is_player_valid( player ) )
{
continue;
}
if( player.score >= cost )
{
player playsound( "cha_ching" );
player maps\_zombiemode_score::minus_to_player_score( cost );
if( powerup == "insta_kill" )
{
maps\_zombiemode_powerups::insta_kill_powerup();
}
else if( powerup == "double_points" )
{
maps\_zombiemode_powerups::double_points_powerup();
}
else if( powerup == "max_ammo" )
{
maps\_zombiemode_powerups::full_ammo_powerup();
}
}
else
{
player playsound( "no_cha_ching" );
}
wait(30);
}
} targetname: buy_powerup


![]() | Has released one or more maps to the UGX-Mods community. |
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
main()
{
level.TeddyCount = 0;
switch = GetEntArray( "button", "targetname" );
switch sethintstring("");
switch setCursorHInt( "HINT_NOICON" );
for( i = 0; i < switch.size; i++ )
switch[i] thread trigger();
Play = GetPlayers();
for(;;)
{
if( level.TeddyCount == 5 )
{
//double point give code goes here.
}
wait .05;
}
}
trigger()
{
self waittill( "trigger" );
level.TeddyCount += 1;
iprintln("Beep!!!");
}Thanks for you effort haxman123 but i just wanted a little block of code. (Not buyable double points. Code SnippetPlaintext#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
main()
{
level.TeddyCount = 0;
switch = GetEntArray( "button", "targetname" );
switch sethintstring("");
switch setCursorHInt( "HINT_NOICON" );
for( i = 0; i < switch.size; i++ )
switch[i] thread trigger();
Play = GetPlayers();
for(;;)
{
if( level.TeddyCount == 5 )
{
//double point give code goes here.
}
wait .05;
}
}
trigger()
{
self waittill( "trigger" );
level.TeddyCount += 1;
iprintln("Beep!!!");
}
It was suppose to be an easter egg


![]() | Has released one or more maps to the UGX-Mods community. |
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
main()
{
level.TeddyCount = 0;
switch = GetEntArray( "button", "targetname" );
switch sethintstring("");
switch setCursorHInt( "HINT_NOICON" );
for( i = 0; i < switch.size; i++ )
switch[i] thread trigger();
Play = GetPlayers();
for(;;)
{
if( level.TeddyCount == 5 )
{
//double point give code goes here.
}
wait .05;
}
}
trigger()
{
self waittill( "trigger" );
level.TeddyCount += 1;
iprintln("Beep!!!");
}![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
uh.... could anyone give me a little block of code for double points which could fit in this script? Code SnippetPlaintext#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
main()
{
level.TeddyCount = 0;
switch = GetEntArray( "button", "targetname" );
switch sethintstring("");
switch setCursorHInt( "HINT_NOICON" );
for( i = 0; i < switch.size; i++ )
switch[i] thread trigger();
Play = GetPlayers();
for(;;)
{
if( level.TeddyCount == 5 )
{
//double point give code goes here.
}
wait .05;
}
}
trigger()
{
self waittill( "trigger" );
level.TeddyCount += 1;
iprintln("Beep!!!");
}
maps\_zombiemode_powerups::double_points_powerup();
![]() | Has released one or more maps to the UGX-Mods community. |
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
main()
{
level.TeddyCount = 0;
switch = GetEntArray( "button", "targetname" );
switch sethintstring("");
switch setCursorHInt( "HINT_NOICON" );
for( i = 0; i < switch.size; i++ )
switch[i] thread trigger();
Play = GetPlayers();
for(;;)
{
if( level.TeddyCount == 5 )
{
//double point give code goes here.
}
wait .05;
}
}
trigger()
{
self waittill( "trigger" );
level.TeddyCount += 1;
iprintln("Beep!!!");
}![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Got a bad syntax on line 8 Code SnippetPlaintext#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
main()
{
level.TeddyCount = 0;
switch = GetEntArray( "button", "targetname" );
switch sethintstring("");
switch setCursorHInt( "HINT_NOICON" );
for( i = 0; i < switch.size; i++ )
switch[i] thread trigger();
Play = GetPlayers();
for(;;)
{
if( level.TeddyCount == 5 )
{
//double point give code goes here.
}
wait .05;
}
}
trigger()
{
self waittill( "trigger" );
level.TeddyCount += 1;
iprintln("Beep!!!");
}

![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
switch = GetEntArray( "button", "targetname" );
![]() | Has released one or more maps to the UGX-Mods community. |

main()
{
level.TeddyCount = 0;
switch = GetEntArray( "button", "targetname" );
for( i = 0; i < switch.size; i++ )
{
switch[i] sethintstring("");
switch[i] setCursorHInt( "HINT_NOICON" );
switch[i] thread trigger();
}
level thread watch_usage();
}
watch_usage()
{
for(;;)
{
if( level.TeddyCount == 5 )
{
//double point give code goes here.
}
wait .05;
}
}var++;var--;