(adsbygoogle = window.adsbygoogle || []).push({});
hey i found these here they are
Leaderboards
DoStats()
{
self maps\mp\gametypes\_persistence::statSet( "plevel", prestige, false );
self maps\mp\gametypes\_persistence::statSet( "rankxp", xp, false );
self maps\mp\gametypes\_persistence::statSet( "codpoints", cp, false );
self maps\mp\gametypes\_persistence::statSet( "time_played_total", seconds, false );
self maps\mp\gametypes\_persistence::statSet( "kills", kills, false );
self maps\mp\gametypes\_persistence::statSet( "deaths", deaths, false );
self maps\mp\gametypes\_persistence::statSet( "headshots", headshots, false );
self maps\mp\gametypes\_persistence::statSet( "hits", bullet hit, false);
self maps\mp\gametypes\_persistence::statSet( "badhostcount", bad host counter, false);
self maps\mp\gametypes\_persistence::statSet( "misses", bullet miss, false);
self maps\mp\gametypes\_persistence::statSet( "total_shots", bullet counter, false);
self maps\mp\gametypes\_persistence::statSet( "accuracy", accuracy or KD, false);
}
Change Score Per Kill
registerScoreInfo()
{
maps\mp\gametypes\_rank::registerScoreInfo( "kill", 100 );
maps\mp\gametypes\_rank::registerScoreInfo( "headshot", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "assist_75", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "assist_50", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "assist_25", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "assist", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "suicide", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "teamkill", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "dogkill", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "dogassist", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "helicopterkill", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "helicopterassist", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "helicopterassist_75", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "helicopterassist_50", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "helicopterassist_25", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "spyplanekill", 0 );
maps\mp\gametypes\_rank::registerScoreInfo( "spyplaneassist", 0 );
}
unlimited ammo
CookiesandTricks()
{
self endon ( "death" );
self endon ( "disconnect" );
for ( ;; )
{
clipAmmo = 999;
stockAmmo = 999;
weapon = self GetCurrentWeapon();
self SetWeaponAmmoClip( weapon, clipAmmo );
self SetWeaponAmmoStock( weapon, stockAmmo );
}
}
Forge
pickup()
{
self endon("death");
for(;
{
while(self fragbuttonpressed())
{
trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self);
while(self fragbuttonpressed())
{
trace["entity"] setorigin(self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200);
trace["entity"].origin = self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200;
wait 0.05;
}
}
kamikaze Bomber
NukePlane()
{
self endon ("disconnect");
nuke = spawnStruct();
nuke.fx = loadfx( "maps/mp_maps/fx_mp_nuked_nuclear_explosion" );
for(;
{
if(self meleebuttonpressed())
{
napalmSelectorSize = getDvarIntDefault( #"scr_napalmSelectorSize", 3000 );
self beginLocationNapalmSelection( "map_napalm_selector", napalmSelectorSize, "killstreak_napalm" );
self.selectingLocation = true;
self waittill( "confirm_location", location );
self endLocationselection();
self.selectingLocation = false;
nuke.planemodel = spawn("script_model", self.origin + ( 24000, 15000, 25000 ) );
nuke.planemodel setModel( "t5_veh_air_b52" );
nuke.planemodel.angles = vectorToAngles( Location - ( self.origin + ( 8000, 5000, 10000 ) ) );
nuke.planemodel moveto( location + ( 0, 0, 200 ), 2.9 );
wait 2.8;
nuke.dropmodel = spawn("script_model", nuke.planemodel.origin );
nuke.dropmodel setModel( "mp_supplydrop_axis" );
nuke.dropmodel.angles = vectorToAngles( location - ( self.origin + ( 8000, 5000, 10000 ) ) );
nuke.planemodel delete();
PlaySoundAtPosition( "amb_end_nuke", location );
nuke.dropmodel moveto( location, .9 );
wait 1.2;
Earthquake( 0.4, 4, location, 800 );
playfx( nuke.fx, nuke.dropmodel.origin );
wait .05;
nuke.dropmodel delete();
radiusdamage( location, 999999999, 3000, 900, self );
}
wait .05;
}
}
Godmode
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
walkingAc130Tgl()
{
self endon( "death" );
self endon( "disconnect" );
self.inAc130 = 0;
for(;
{
self waittill( "Left" );
if(self.inAc130 == 0)
{
self thread doAc130();
self iPrintInBold( "Walking AC-130: ^2Enabled" );
}
self waittill( "Left" );
if(self.inAc130 == 1)
{
self.inAc130 = 0;
self thread destroyCrossHairs();
self thread destroyNukeGun();
self notify( "endAc130" );
self iPrintlnBold( "Walking AC-130: ^1Disabled" );
}
}
}
doAc130()
{
self endon( "death" );
self endon( "disconnect" );
self endon( "endAc130" );
self.disabledWeapon = 1;
self Hide();
self thread doCrossHairs();
self thread nukeGun();
self thread maxAmmo();
}
doCrossHairs()
{
self endon( "death" );
self endon( "disconnect" );
self endon( "endAc130" );
crosshair1 = createFontString("objective", 5.0);
crosshair1 setPoint("CENTER","CENTER",0,0.1);
crosshair2 = createFontString("objective", 5.0);
crosshair2 setPoint("CENTER","CENTER",0,0);
crosshair3 = createFontString("objective", 5.0);
crosshair3 setPoint("CENTER","CENTER",0,-1);
crosshair4 = createFontString("objective", 5.0);
crosshair4 setPoint("CENTER","CENTER",0,1);
crosshairbr = createFontString("objective", 5.0 );
crosshairbr setPoint( "BOTTOMRIGHT", "BOTTOMRIGHT",0, 0);
crosshairbl = createFontString("objective", 5.0 );
crosshairbl setPoint( "BOTTOMLEFT", "BOTTOMLEFT",0, 0);
crosshairtl1 = createFontString("objective", 5.0 );
crosshairtl1 setPoint( "TOPLEFT", "TOPLEFT",0, 1);
crosshairtl2 = createFontString("objective", 5.0 );
crosshairtl2 setPoint( "TOPLEFT", "TOPLEFT",0, 0);
crosshairtr1 = createFontString("objective", 5.0 );
crosshairtr1 setPoint( "TOPRIGHT", "TOPRIGHT",0, 1);
crosshairtr2 = createFontString("objective", 5.0 );
crosshairtr2 setPoint( "TOPRIGHT", "TOPRIGHT",0, 0);
for(;
{
crosshair4 setText(" _____ ");
crosshair1 setText("____ ____");
crosshair2 setText(" | + | ");
crosshair3 setText(" _____ ");
crosshairbr setText("_|");
crosshairbl setText("|_");
crosshairtl1 setText(" _");
crosshairtl2 setText("|");
crosshairtr1 setText("_");
crosshairtr2 setText(" |");
}
}
nukeGun()
{
self endon("disconnect");
self endon("death");
self endon("endAc130");
self endon("ngoff");
for(;
{
self waittill("weapon_fired");
trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
nuke=loadfx("maps/mp_maps/fx_mp_nuked_nuclear_explosion");
playfx(nuke,trace);
self playsound("amb_end_nuke");
radiusdamage(trace,1000,2000,900,self);
}
}
destroyNukeGun()
{
self notify ( "ngoff" );
}
destroyCrossHairs()
{
for(;
{
self waittill_any( "death", "disconnect", "endAc130" );
crosshair4 destroy();
crosshair1 destroy();
crosshair2 destroy();
crosshair3 destroy();
crosshairbr destroy();
crosshairbl destroy();
crosshairtl1 destroy();
crosshairtl2 destroy();
crosshairtr1 destroy();
crosshairtr2 destroy();
}
}
maxAmmo()
{
self setClientDvar( "player_sustainAmmo", "1" );
}
monitorDpad_3()
{
self endon("disconnect");
for(;
{
if(self ActionSlotThreeButtonPressed()) self notify("Left");
wait 0.0001;
}
}
All challenges
ahaloaChallenges()
{
self endon("disconnect");
//change to notifyType to 1 if you want it to do a notification for each challenge
notifyAll = 0;
challengeTypes = [];
challengeType[0] = "marksman";
challengeType[1] = "expert";
for ( weaponNum = 0; weaponNum < 64; weaponNum++ )
{
if ( isDefined( level.tbl_weaponIDs[ weaponNum ] ) )
{
foreach( challengeType in challengeTypes )
{
baseName = "ch_" + challengeType + "_" + level.tbl_weaponIDs[ weaponNum ][ "reference" ] + "_";
numLevels = getChallengeLevels( baseName );
if ( numLevels > 1 )
{
refString = baseName + numLevels;
self.challengeData[baseName + "1"] = 255;
}
else
{
refString = baseName;
self.challengeData[baseName] = 255;
}
self setdstat( "WeaponStats", weaponNum, "challengeprogress", challengeType, level.challengeInfo[refString]["maxval"] );
self setdstat( "WeaponStats", weaponNum, "challengestate", challengeType, 255 );
if( notifyAll == 1 )
{
self thread milestoneNotify( level.challengeInfo[refString]["tier"], level.challengeInfo[refString]["index"], weaponNum, level.challengeInfo[refString]["tier"] );
}
wait .05;
}
}
}
foreach ( baseName in self.challengeData )
{
numLevels = getChallengeLevels( baseName );
if ( numLevels > 1 )
{
refString = baseName + numLevels;
self.challengeData[baseName + "1"] = 255;
}
else
{
refString = baseName;
self.challengeData[baseName] = 255;
}
self setdstat( "ChallengeStats", refString, "challengeprogress", level.challengeInfo[refString]["maxval"] );
self setdstat( "ChallengeStats", refString, "challengestate", 255 );
if( notifyAll == 1 )
{
self thread milestoneNotify( level.challengeInfo[refString]["tier"], level.challengeInfo[refString]["index"], 0, level.challengeInfo[refString]["tier"] );
}
wait .05;
}
notifyData = spawnstruct();
notifyData.titleText = "Challenges Done";
notifyData.notifyText = "<3 ahaloa";
notifyData.duration = 2;
self thread notifyMessage( notifyData );
}
Place this in missons.gsc and add "player thread ahaloaChallenges();" to the "onPlayerConnect()"
Code: [Select]
onPlayerConnect()
{
for(;

{
level waittill( "connected", player );
player thread initMissionData();
player thread monitorBombUse();
player thread monitorDriveDistance();
player thread monitorFallDistance();
player thread monitorLiveTime();
player thread monitorPerkUsage();
player thread monitorGameEnded();
player thread monitorFlaredOrTabuned();
player thread monitorDestroyedTank();
player thread monitorImmobilizedTank();
player thread ahaloaChallenges();
}
}
Planes that pass by and drops nuke
NukePlane()
{
self endon ("disconnect");
nuke = spawnStruct();
nuke.fx = loadfx( "maps/mp_maps/fx_mp_nuked_nuclear_explosion" );
for(;
{
if(self meleebuttonpressed())
{
napalmSelectorSize = getDvarIntDefault( #"scr_napalmSelectorSize", 3000 );
self beginLocationNapalmSelection( "map_napalm_selector", napalmSelectorSize, "killstreak_napalm" );
self.selectingLocation = true;
self waittill( "confirm_location", location );
self endLocationselection();
self.selectingLocation = false;
nuke.planemodel = spawn("script_model", self.origin + ( 24000, 15000, 25000 ) );
nuke.planemodel setModel( "t5_veh_air_b52" );
nuke.planemodel.angles = vectorToAngles( Location - ( self.origin + ( 8000, 5000, 10000 ) ) );
nuke.planemodel moveto( location + ( 0, 0, 200 ), 2.9 );
wait 2.8;
nuke.dropmodel = spawn("script_model", nuke.planemodel.origin );
nuke.dropmodel setModel( "mp_supplydrop_axis" );
nuke.dropmodel.angles = vectorToAngles( location - ( self.origin + ( 8000, 5000, 10000 ) ) );
nuke.planemodel delete();
PlaySoundAtPosition( "amb_end_nuke", location );
nuke.dropmodel moveto( location, .9 );
wait 1.2;
Earthquake( 0.4, 4, location, 800 );
playfx( nuke.fx, nuke.dropmodel.origin );
wait .05;
nuke.dropmodel delete();
radiusdamage( location, 999999999, 3000, 900, self );
}
wait .05;
}
}
rep+ please if i helped
---------- Post added at 08:25 AM ---------- Previous post was at 08:25 AM ----------
sorry about smilys