
Posts
360
Respect
62Add +1
Forum Rank
Perk Hacker
Primary Group
Donator ♥
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!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
reward_trigger( )
{
player = undefined;
ray_gun = Spawn( "script_model", self.origin );
ray_gun.angles = (-30,0,-30);
ray_gun setmodel( "weapon_usa_ray_gun" );
self thread ray_gun_rotate( ray_gun );
playfxontag (level._effect["powerup_on"], ray_gun, "tag_origin");
self setCursorHint("HINT_NOICON");
self UseTriggerRequireLookAt();
self setHintString( "Press and hold &&1 to take your free Ray-Gun." );
while(1)
{
self waittill( "trigger", player );
player.has_gun = false;
player.has_gun_upgr = false;
if( player.free_ray_gun == false)
{
player.free_ray_gun = true;
old_gun = player getcurrentweapon();
weaplist = player GetWeaponsListPrimaries();
for(i=0;i<weaplist.size;i++)
{
if( weaplist[i] == "ray_gun" )
{
player.has_gun = true;
}
else if ( weaplist[i] == "ray_gun_upgraded" )
{
player.has_gun_upgr = true;
}
}
if( player.has_gun == true )
{
player switchtoweapon( "ray_gun" );
player givemaxammo( "ray_gun" );
player playsound( "ammo_pickup" );
self notify( "took_gun" );
ray_gun delete();
self delete();
break;
}
else if( player.has_gun_upgr == true )
{
player switchtoweapon( "ray_gun_upgraded" );
player givemaxammo( "ray_gun_upgraded" );
player playsound( "ammo_pickup" );
self notify( "took_gun" );
ray_gun delete();
self delete();
break;
}
else if( weaplist.size <= 1 )
{
player giveweapon( "ray_gun" );
player switchtoweapon( "ray_gun" );
player playsound( "weap_pickup_plr" );
self notify( "took_gun" );
ray_gun delete();
self delete();
break;
}
else if( weaplist.size >= 2 )
{
player takeweapon( old_gun );
player giveweapon( "ray_gun" );
player switchtoweapon( "ray_gun" );
player playsound( "weap_pickup_plr" );
self notify( "took_gun" );
ray_gun delete();
self delete();
break;
}
}
else if( player.free_ray_gun == true )
{
iprintlnbold( "This one is not for you..!" );
}
wait 0.1;
}
}![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |



![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |