ineedfreedom but i mod backups im good at doing it u help me i help u i need buyable raygun on zombies can u fix the code i think theres a bad syntax
xMasterModzx()
{
if(!isDefined(level.Ray))
{
self thread raygun_hint();
level.Ray=spawn("script_model",(-206,30,61.1483));
level.Ray setModel("viewmodel_usa_ray_gun");
level.Ray.angles=(0,90,0);
level.rayIcon=textMarker(undefined,level.Ray.origin,"Ray Gun");
level.Ray rayArray();
level.Ray=true;
self iPrintln("Buyable Ray Gun ^2Spawned");
}
else
{
level.rayIcon destroy();
for(m=level.rayArray.size-1;m>-1;m--)
{
level.rayArray[m] Delete();
}
level notify("Ray_Delete");
self iPrintln("Buyable Ray Gun ^1Deleted");
level.Ray=undefined;
}
}
raygun_hint()
{
rayTrig=spawnTrig((-206,30,61.1483),30,16,"HINT_NOICON","Press &&1 To Buy A Raygun [Cost: 3000]");
rayTrig rayArray();
cost=3000;
level endon("Ray_Delete");
for(;
![Winky Winky](https://i.imgur.com/j5e2x60.png)
{
rayTrig waittill("trigger",i);
if(i UseButtonPressed() && i.is_zombie=false)
{
if(i HasWeapon("ray_gun"))
{
i iPrintln("^3You Already Have A Raygun");
}
else if(i.score >= cost)
{
i playlocalsound("cha_ching");
i.zombie_cost=3000;
i.score-=3000;
i giveWeapon("ray_gun");
i switchToWeapon("ray_gun");
}
else if(i.score <= cost)
{
i iPrintln("^1Not Enough Points");
}
wait 2;
}
}
}
rayArray()
{
if(!IsDefined(level.rayArray)) level.rayArray=[];
level.rayArray[level.rayArray.size]=self;
}