

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 shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
GiveCoolWeapon(){
self.gotcoolgun = true; //you have one, no more for you
weapons = []; //create array of guns
weapons[weapons.size] = "ray_gun";
weapons[weapons.size] = "tesla_gun";
weapons[weapons.size] = "zombie_mg42";
weapons[weapons.size] = "zombie_30cal";
for(i=0;i<weapons.size;i++){
if(!(self hasweapon(weapons[i]))){//don't give them something they have
if(!(self hasweapon(weapons[i]+"_upgraded"))){
if(!(issubstr(weapons[i],"gun"))){ //if not the ray or tesla gun
self giveweapon(weapons[i]+"_upgraded"); //upgrade the mg42 and 30call
self switchtoweapon(weapons[i]+"_upgraded");
}else{
self giveweapon(weapons[i]);
self switchtoweapon(weapons[i]);
}
return;
}
}
}
}
weapons[weapons.size] = "ray_gun";
weapons[weapons.size] = "tesla_gun";
weapons[weapons.size] = "zombie_mg42";
weapons[weapons.size] = "zombie_30cal";