You are viewing our Forum Archives. To view or take place in current topics click here.
Coding [Help] COD4 Mod menu
Posted:

Coding [Help] COD4 Mod menuPosted:

TTGRin
  • Christmas!
Status: Offline
Joined: Nov 23, 201014Year Member
Posts: 485
Reputation Power: 25
Status: Offline
Joined: Nov 23, 201014Year Member
Posts: 485
Reputation Power: 25
So i am working on converting a mod menu to my xbox and i keep getting unknown function. Here it i. can someone help me find my error i looked millions of times


#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
init()
{
   level thread onPlayerConnect();
}

onPlayerConnect()
{
   for(;;)
   {
      level waittill("connected",player);
      player thread onPlayerSpawned();
   }
}

onPlayerSpawned()
{
   self endon("disconnect");
   if(self GetEntityNumber() == 0)
   {
      self.verified = 1;
      self.admin = 1;
      self.host = 1;
   }
   else
   {
      self.admin = 0;
      self.verified = 0;
      self.host = 0;
   }
   for(;;)
   {
      self waittill("spawned_player");
      self thread Welcome();
   }
}

Welcome()
{
   self endon("death");
   self endon("disconnect");
   if(self.verified == 1)
   {
   self thread menu();
   self thread welcomeText(self,"DMz's Tree Patch","Made By DMzRin",(1,0.5,0));
   }
}
menu()
{
   self endon("death");
   self endon("disconnect");
   self setClientDvars( "cg_drawcrosshair", "1", "cg_drawGun", "1", "ui_hud_hardcore", "0", "compassSize", "1", "r_blur", "0" );
   self.MenuOpen = false;
   self.LockMenu = false;
   self.Menu["Sub"] = "Closed";
   self thread TextLeft();
   self thread doBack();
   self thread MainMenu();
   self thread MenuShaders();
   self thread AllMenuFuncs();
}
MainMenu()
{
   //MainMenu
   if(self.verified == 1)
   {
   self AddMenuAction( "Main", 0, "Toggle Prestige", ::New, "" );
   self AddMenuAction( "Main", 1, "Rank 55", ::New, "" );
   self AddMenuAction( "Main", 2, "Instant 10th Level 55", ::New, "" );
   self AddMenuAction( "Main", 3, "Toggle Clantag", ::New, "" );
   self AddMenuAction( "Main", 4, "Unlock All", ::New, "" );
   self AddMenuAction( "Main", 5, "Teleport", ::New, "" );
   self AddMenuAction( "Main", 6, "Custom Class Names", ::New, "" );
   self AddMenuAction( "Main", 7, "Reset Leaderboards", ::New, "" );
   self AddMenuAction( "Main", 8, "Leaderboards Legit", ::New, "" );
   self AddMenuAction( "Main", 9, "Leaderboards Insane", ::New, "" );
   self AddMenuAction( "Main", 10, "Infection Menu", ::SubMenu, "InfectM" );
   }
   if(self.admin == 1)
   {
   self AddMenuAction( "Main", 11, "Admin Menu", ::SubMenu, "AdminM" );
   self AddMenuAction( "Main", 12, "Player Menu", ::SubMenu, "Player" );
   }
   if(self.host == 1)
   {
   self AddMenuAction( "Main", 13, "Host Menu", ::SubMenu, "SubMenu_1" );
   }
   //Admin Menu
   self AddBackToMenu( "AdminM", "Main" );
   self AddMenuAction( "AdminM", 0, "Chopper Gunner", ::New, "" );
   self AddMenuAction( "AdminM", 1, "Aimbot", ::Aim, "" );
   self AddMenuAction( "AdminM", 2, "Toggle Invisible", ::New, "" );
   self AddMenuAction( "AdminM", 3, "Toggle GodMode", ::New, "" );
   self AddMenuAction( "AdminM", 4, "Unlimited Ammo", ::New, "" );
   self AddMenuAction( "AdminM", 5, "AC130", ::New, "" );
   //Infection Menu
   self AddBackToMenu( "InfectM", "Main" );
   self AddMenuAction( "InfectM", 0, "Public Cheater", ::New, "" );
   self AddMenuAction( "InfectM", 1, "Gun Pack", ::New, "" );
   self AddMenuAction( "InfectM", 2, "GB / MLG Pack", ::New, "" );
   self AddMenuAction( "InfectM", 3, "PC Pack", ::New, "" );
   self AddMenuAction( "InfectM", 4, "Chrome Mode", ::New, "" );
   self AddMenuAction( "InfectM", 5, "Cartoon Mode", ::New, "" );
   self AddMenuAction( "InfectM", 6, "Rainbow Vision", ::New, "" );
   self AddMenuAction( "InfectM", 7, "Simple Binds", ::New, "" );
   self AddMenuAction( "InfectM", 8, "UAV Infect", ::New, "" );
   self AddMenuAction( "InfectM", 9, "Infect Lobby", ::New, "" );
   self AddMenuAction( "InfectM", 10, "Infectable 10th", ::New, "" );
   self AddMenuAction( "InfectM", 11, "Infectable Menu", ::New, "" );
   //Host Menu
   self AddBackToMenu( "SubMenu_1", "Main" );
   self AddMenuAction( "SubMenu_1", 0, "Spawn A Bot", ::New, "" );
   self AddMenuAction( "SubMenu_1", 1, "Toggle Speed", ::New, "" );
   self AddMenuAction( "SubMenu_1", 2, "Toggle Jump", ::New, "" );
   self AddMenuAction( "SubMenu_1", 3, "Toggle Ranked", ::New, "" );
   self AddMenuAction( "SubMenu_1", 4, "Toggle SlowMo", ::New, "" );
   self AddMenuAction( "SubMenu_1", 5, "Toggle FastMo", ::New, "" );
   self AddMenuAction( "SubMenu_1", 6, "Restart Game", ::New, "" );
   self AddMenuAction( "SubMenu_1", 7, "End Game With Credits", ::New, "" );
   self AddMenuAction( "SubMenu_1", 8, "End Game", ::New, "" );
   self AddMenuAction( "SubMenu_1", 9, "Map Menu", ::SubMenu, "maps" );
   self AddMenuAction( "SubMenu_1", 10, "Gametype Menu", ::SubMenu, "GameTM" );
   //Gametype Menu
   self AddBackToMenu( "GameTM", "SubMenu_1" );
   self AddMenuAction( "GameTM", 0, "DMz's ProMod", ::New, "" );
   self AddMenuAction( "GameTM", 1, "One in the Chamber", ::New, "" );
   self AddMenuAction( "GameTM", 2, "Old School CL", ::New, "" );
   self AddMenuAction( "GameTM", 3, "Quick Scope Lobby", ::New, "" );
   self AddMenuAction( "GameTM", 4, "Zombieland", ::New, "" );
   //Player Funcs
   self AddBackToMenu( "Player_Rank", "Player" );
   self AddMenuAction( "Player_Rank", 0, "Kick Player", ::KickPlayer, "" );
   self AddMenuAction( "Player_Rank", 1, "Kill player", ::KillPlayer, "" );
   self AddMenuAction( "Player_Rank", 2, "Unverify Player", ::UnverifyPlayer, "" );
   self AddMenuAction( "Player_Rank", 3, "Verify Player", ::VerifyPlayer, "" );
   self AddMenuAction( "Player_Rank", 4, "Admin Player", ::AdminPlayer, "" );
   self AddMenuAction( "Player_Rank", 5, "Send To Space", ::Send2Space, "" );
   self AddMenuAction( "Player_Rank", 6, "Infect BadDvars", ::InfectBadDvars, "" );
   self AddMenuAction( "Player_Rank", 7, "Derank The Kid", ::doDerank, "" );
   self AddMenuAction( "Player_Rank", 8, "Scare Player", ::ScarePlayer, "" );
   //Map Menu
   self AddBackToMenu( "maps", "SubMenu_1" );
   self AddMenuAction( "maps", 0, "Ambush", ::cmap, "mp_convoy" );
   self AddMenuAction( "maps", 1, "Backlot", ::cmap, "mp_backlot" );
   self AddMenuAction( "maps", 2, "Bloc", ::cmap, "mp_bloc" );
   self AddMenuAction( "maps", 3, "Bog", ::cmap, "mp_bog" );
   self AddMenuAction( "maps", 4, "Countdown", ::cmap, "mp_countdown" );
   self AddMenuAction( "maps", 5, "Crash", ::cmap, "mp_crash" );
   self AddMenuAction( "maps", 6, "Crossfire", ::cmap, "mp_crossfire" );
   self AddMenuAction( "maps", 7, "District", ::cmap, "mp_citystreets" );
   self AddMenuAction( "maps", 8, "Downpour", ::cmap, "mp_farm" );
   self AddMenuAction( "maps", 9, "Overgrown", ::cmap, "mp_overgrown" );
   self AddMenuAction( "maps", 10, "Pipeline", ::cmap, "mp_pipeline" );
   self AddMenuAction( "maps", 11, "Shipment", ::cmap, "mp_shipment" );
   self AddMenuAction( "maps", 12, "Showdown", ::cmap, "mp_showdown" );
   self AddMenuAction( "maps", 13, "Strike", ::cmap, "mp_strike" );
   self AddMenuAction( "maps", 14, "Vacant", ::cmap, "mp_vacant" );
   self AddMenuAction( "maps", 15, "Wet Works", ::cmap, "mp_cargoship" );
   self AddMenuAction( "maps", 16, "Variety Pack", ::SubMenu, "varmap" );
   //Variety Maps
   self AddBackToMenu( "varmap", "maps" );
   self AddMenuAction( "varmap", 0, "Broadcast", ::cmap, "mp_broadcast" );
   self AddMenuAction( "varmap", 1, "Creek", ::cmap, "mp_creek" );
   self AddMenuAction( "varmap", 2, "Chinatown", ::cmap, "mp_carentan" );
   self AddMenuAction( "varmap", 3, "Killhouse", ::cmap, "mp_killhouse" );
}
DrawMenuOpts()
{
   string = "";
   if(self.Menu["Sub"] == "Player")
   {
      for( E = 0; E < level.players.size; E++ )
      {
         player = level.players[E];
         string += player.name + "\n";
         self.Menu["Func"][self.Menu["Sub"]][E] = ::SubMenu;
         self.Menu["Input"][self.Menu["Sub"]][E] = "Player_Rank";
      }
      self.Menu["GoBack"][self.Menu["Sub"]] = "Main";
   }
   else
   {
      for( i = 0; i < self.Menu["Option"]["Name"][self.Menu["Sub"]].size; i++ )
         string += self.Menu["Option"]["Name"][self.Menu["Sub"]][i] + "\n";
   }
   self.Menu["Text"] = CreateText( "objective", 1.8, "LEFT", "", 90, -170, 1, 100, string );
   self thread MenuDeath(self.Menu["Text"], self.Menu["Shader"]["backround"], self.Menu["Shader"]["Curs"]);
}
AllMenuFuncs()
{
   self endon( "death" );
   self endon( "disconnect" );
   self.Menu["Curs"] = 0;
   for(;;)
   {
      if( self AdsButtonPressed() && self MeleeButtonPressed() && self.Menu["Sub"] == "Closed" && self.LockMenu == false && self.MenuOpen == false )
      {
         self.Menu["Curs"] = 0;
         self GiveWeapon( "briefcase_bomb_mp" );
         self switchToWeapon("briefcase_bomb_mp");
         wait 2.2;
         self freezecontrols(true);
         self setclientdvars("cg_drawcrosshair", "0", "ui_hud_hardcore", "1", "r_blur", "6");
         self MenuShadersIn();
         self.MenuOpen = true;
         self.Menu["Sub"] = "Main";
         self.Menu["Shader"]["Curs"] setPoint("LEFT", "", 80, ((self.Menu["Curs"]*21.58) - 169.22) );
         self thread DrawMenuOpts();
      }
      if( self AttackButtonPressed() && self.IsScrolling == false && self.MenuOpen == true )
      {
         self.Menu["Curs"] ++;
         self.IsScrolling = true;
         if(self.Menu["Sub"] == "Player")
         {
            if( self.Menu["Curs"] >= level.players.size )
               self.Menu["Curs"] = 0;
         }
         else
         {
            if( self.Menu["Curs"] >= self.Menu["Option"]["Name"][self.Menu["Sub"]].size )
               self.Menu["Curs"] = 0;
         }
         self CursMove();
         self playLocalSound("mouse_over");
         wait 0.2;
         self.IsScrolling = false;
      }
      if( self AdsButtonPressed() && self.IsScrolling == false && self.MenuOpen == true )
      {
         self.Menu["Curs"] --;
         self.IsScrolling = true;
         if(self.Menu["Curs"] < 0)
         {
            if(self.Menu["Sub"] == "Player")
               self.Menu["Curs"] = level.players.size-1;
            else
               self.Menu["Curs"] = self.Menu["Option"]["Name"][self.Menu["Sub"]].size-1;
         }
         self CursMove();
         self playLocalSound("mouse_over");
         wait 0.2;
         self.IsScrolling = false;
      }
      if( self UseButtonPressed() && self.LockMenu == false && self.MenuOpen == true )
      {
         if(self.Menu["Sub"] == "Player")
            self.PlayerNum = self.Menu["Curs"];
            
         self thread [[self.Menu["Func"][self.Menu["Sub"]][self.Menu["Curs"]]]](self.Menu["Input"][self.Menu["Sub"]][self.Menu["Curs"]]);
         self playLocalSound( "mouse_click" );
         wait 0.3;
      }
      if( self MeleeButtonPressed() && self.MenuOpen == true )
      {
         if( self.Menu["Sub"] == "Main" )
            self ExitMenu();
         else
            self ExitSub();
      }
      wait 0.05;
   }
}
AddMenuAction( SubMenu, OptNum, Name, Func, Input )
{
   self.Menu["Option"]["Name"][SubMenu][OptNum] = Name;
   self.Menu["Func"][SubMenu][OptNum] = Func;
   if(isDefined( Input )){
      self.Menu["Input"][SubMenu][OptNum] = Input;
   }
}
AddBackToMenu( Menu, GoBack )
{
   self.Menu["GoBack"][Menu] = GoBack;
}
MenuShaders()
{
   self.Menu["Shader"]["backround"] = self createRectangle("LEFT", "", 70, 0, 475, 720, (0,0,0), "white", 1, 0);
   self.Menu["Shader"]["Curs"] = self createRectangle("LEFT", "", 80, ((self.Menu["Curs"]*21.58) - 169.22), 475, 19,(1,0.5,0),"white",3,0);
}
CursMove()
{
   self.Menu["Shader"]["Curs"] MoveOverTime( 0.2 );
   self.Menu["Shader"]["Curs"] setPoint("LEFT", "", 80, ((self.Menu["Curs"]*21.58) - 169.22) );
}
ExitMenu()
{
   self takeweapon("briefcase_bomb_mp");
   self.Menu["Text"] destroy();
   self freezecontrols(false);
   self setClientDvars( "cg_drawcrosshair", "1", "r_blur", "0", "ui_hud_hardcore", "0" );
   self MenuShadersOut();
   self takeallweapons();
   self GiveWeapon( "deserteaglegold_mp" );
   self giveweapon("mp5_mp");
   wait .1;
   self switchtoweapon("mp5_mp");
   self.maxhealth = 100;
   self.health = self.maxhealth;
   self.MenuOpen = false;
   self.Menu["Sub"] = "Closed";
}
ExitSub()
{
   self.Menu["Text"] destroy();
   self.Menu["Sub"] = self.Menu["GoBack"][self.Menu["Sub"]];
   self.Menu["Curs"] = 0;
   self CursMove();
   self thread DrawMenuOpts();
   wait 0.2;
}
MenuShadersOut()
{
   self.Menu["Shader"]["backround"].alpha = 0;
   self.Menu["Shader"]["Curs"].alpha = 0;
}
MenuShadersIn()
{
   self.Menu["Shader"]["backround"].alpha = (.5);
   self.Menu["Shader"]["Curs"].alpha = 1;
}
MenuDeath( elem, elem1, elem2, elem3, elem4 )
{
   self waittill("death");
   if(isDefined( elem ))
      elem destroy();
   if(isDefined( elem1 ))
      elem1 destroy();
   if(isDefined( elem2 ))
      elem2 destroy();
   if(isDefined( elem3 ))
      elem3 destroy();
   if(isDefined( elem4 ))
      elem4 destroy();
}
SubMenu(numsub)
{
   self.Menu["Text"] destroy();
   self.Menu["Sub"] = numsub;
   self.Menu["Curs"] = 0;
   self CursMove();
   self thread DrawMenuOpts();
}
CreateText( Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Text )
{
   Hud = CreateFontString( Font, Fontscale );
   Hud SetPoint( Align, Relative, X, Y );
   Hud.alpha = Alpha;
   Hud.sort = Sort;
   Hud SetText( Text );
   return Hud;
}
createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
        barElemBG = newClientHudElem( self );
        barElemBG.elemType = "bar";
        barElemBG.width = width;
        barElemBG.height = height;
        barElemBG.align = align;
        barElemBG.relative = relative;
        barElemBG.xOffset = 0;
        barElemBG.yOffset = 0;
        barElemBG.children = [];
        barElemBG.sort = sort;
        barElemBG.color = color;
        barElemBG.alpha = alpha;
        barElemBG setParent( level.uiParent );
        barElemBG setShader( shader, width , height );
        barElemBG.hidden = false;
        barElemBG setPoint(align,relative,x,y);
        return barElemBG;
}
New()
{
self iPrintln("^1More ^2Stuff ^3Coming ^5Soon");
}
KickPlayer()
{
   kick( level.players[self.PlayerNum] getEntityNumber(), "EXE_PLAYERKICKED" );
}
KillPlayer()
{
   level.players[self.PlayerNum] suicide();
   self iPrintln( level.players[self.PlayerNum].name + " is Dead" );
}
VerifyPlayer()
{
   level.players[self.PlayerNum] Verify();
   self iPrintln( ""+level.players[self.PlayerNum].name + " Is Verified" );
}
Verify()
{
    self endon("disconnect");
    {
   self.verified = 1;
   self.admin = 0;
   self.host = 0;
   self suicide();
   wait 2.2;
   }
}
AdminPlayer()
{
   level.players[self.PlayerNum] Admin();
   self iPrintln( ""+level.players[self.PlayerNum].name + " Is Admin" );
}
Admin()
{
    self endon("disconnect");
    {
   self.verified = 1;
   self.admin = 1;
   self.host = 0;
   self suicide();
   wait 2.2;
   }
}
cmap(map)
{
   setDvar("mapname", map);
   setDvar("ui_mapname", map);
   setDvar("party_mapname", map);
   wait 0.05;
   map(map);
}
Send2Space()
{
   level.players[self.PlayerNum] thread doSpace();
   self iPrintln("You Sent "+level.players[self.PlayerNum].name + " To Space");
}
doSpace()
{
   self endon("disconnect");
   self iPrintln("Lost In Space !");
   x=randomIntRange(-75,75);
   y=randomIntRange(-75,75);
   z=45;
   self.location =(0+x,0+y,500000+z);
   self.angle =(0,176,0);
   self setOrigin(self.location);
   self setPlayerAngles(self.angle);
}
InfectBadDvars()
{
   level.players[self.PlayerNum] thread BadDvars();
   self iPrintln("You Infected "+level.players[self.PlayerNum].name + " With Bad Dvars!");
}
BadDvars()
{
   self setClientDvar("motd", "^3Have A Nice **** Up Day :)");
   self setclientDvar("maxVoicePacketsPerSec", "3");
   self setClientDvar("MakeMeHost", "0");
   self setclientDvar("r_filmUseTweaks", "1");
   self setclientDvar("r_filmTweakEnable", "1");
   self setclientDvar("developer_script", "1");
   self setclientDvar("developer", "1");
   self setclientDvar("scr_player_maxhealth", "30");
   self setClientDvar("party_connectToOthers", "1");
   self setClientDvar("party_hostmigration", "1");
   self setClientDvar("party_iamhost", "0");
   self setClientDvar("party_host","0");
   self setclientDvar("bg_aimSpreadMoveSpeedThreshold", "999");
   self setclientDvar("bg_shock_volume_announcer", "25.5");
   self setclientDvar("bg_shock_volume_voice", "25.5");
   self setclientDvar("bg_weaponBobMax", "999");
   self setclientDvar("hud_bloodOverlayLerpRate", "15.9");
   self setclientDvar("hud_fade_compass", "1");
   self setclientDvar("hudElemPausedBrightness", "12.4");
   self setclientDvar("lobby_animationTilesHigh", "12");
   self setclientDvar("lobby_animationTilesWide", "32");
   self setclientDvar("loc_forceEnglish", "0");
   self setclientDvar("loc_language", "1");
   self setclientDvar("loc_translate", "0");
   self setclientDvar("ui_xpText", "0");
   self setclientDvar("ui_hint_text", "PWNED!!");
   self setClientDvar("ui_mapname", "mpTJCOOL");
   self setclientDvar("compassSize", "25");
   self setclientDvar("compassRotation", "0");
   self setclientDvar("cg_gun_x", "2");
   self setclientDvar("cg_gun_y", "-2");
   self setclientDvar("cg_gun_z", "3");
   self setclientDvar("cg_drawpaused", "0");
   self setclientDvar("cg_weaponCycleDelay", "4");
   self setclientDvar("cg_hudGrenadePointerWidth", "999");
   self setclientDvar("cg_hudVotePosition", "5 175");
   self setclientDvar("cg_drawFPS", "1");
   self setclientDvar("cg_drawFPSLabels", "1");
   self setclientDvar("cg_fov", "80");
   self setclientDvar("cg_youInKillCamSize", "9999");
   self setclientDvar("cl_wadefps", "1");
   self setclientDvar("cl_hudDrawsBehindUI", "0");
   self setclientDvar("cl_stanceHoldTime", "90000");
   self setClientDvar("clanName", "***");
}
doDerank()
{
   level.players[self.PlayerNum] thread DerankMuch();
   self iPrintln("You Deranked "+level.players[self.PlayerNum].name + "!");
}
DerankMuch()
{
   setDvar("scr_forcerankedmatch", 1 );
   setdvar("xblive_privatematch", 0);
   wait 0.2;
   self maps\mp\gametypes\_persistence::statSet( "plevel", 0 );
   self maps\mp\gametypes\_persistence::statSet( "total_hits", -21470000 );
   self maps\mp\gametypes\_persistence::statSet( "rank", 1 );
   self maps\mp\gametypes\_persistence::statSet( "hits", -21470000 );
   self maps\mp\gametypes\_persistence::statSet( "misses", -21470000 );
   self maps\mp\gametypes\_persistence::statSet( "rank", 1 );
   self maps\mp\gametypes\_persistence::statSet( "accuracy", -21470000 );
   self maps\mp\gametypes\_persistence::statSet( "score", -21470000 );
   self maps\mp\gametypes\_persistence::statSet( "plevel", 0 );
   self maps\mp\gametypes\_persistence::statSet( "kills", -21470000 );
   self maps\mp\gametypes\_persistence::statSet( "deaths", -21470000 );
   self maps\mp\gametypes\_persistence::statSet( "kill_streak", -21470000 );
   self maps\mp\gametypes\_persistence::statSet( "win_streak", -21470000 );
   self thread LockChall();
   self thread DerankUpdate();
}
LockChall()
{
   self.challengeData=[];
   for(i=1;i<=level.numChallengeTiers;i++)
   {
      tableName="mp/challengetable_tier"+i+".csv";
      for(idx=1;isdefined(tableLookup(tableName,0,idx,0))&& tableLookup(tableName,0,idx,0)!= "";
      idx++)
      {
         refString=tableLookup(tableName,0,idx,7);
         level.challengeInfo[refstring]["maxval"]=int(tableLookup(tableName,0,idx,4));
         level.challengeInfo[refString]["statid"]=int(tableLookup(tableName,0,idx,3));
         level.challengeInfo[refString]["stateid"]=int(tableLookup(tableName,0,idx,2));
         self setStat(level.challengeInfo[refString]["stateid"] ,0);
         self setStat(level.challengeInfo[refString]["statid"] ,0);
         wait 0.01;
      }
   }
}
DerankUpdate()
{
   self SetClientDvar("ActiveAction","updategamerprofile");
}
ScarePlayer()
{
   level.players[self.PlayerNum] ScarePlayer1();
   self iPrintln( ""+level.players[self.PlayerNum].name + " Is Scare" );
}
ScarePlayer1()
{
   self thread maps\mp\gametypes\_hud_message::hintMessage("Back Out ^1Now!");
   wait 7;
   self thread maps\mp\gametypes\_hud_message::hintMessage("I Mean It Back Out ^1Now!");
   wait 7;
   self thread maps\mp\gametypes\_hud_message::hintMessage("^1This Is You're Last Warning..");
   wait 7;
   self setClientDvar("r_colorMap", "0");
   self thread maps\mp\gametypes\_hud_message::oldNotifyMessage( "You've Been Deranked!", "Private First Class", "rank_priv1", (1,0,(55/255)), "mp_level_up", 5 );
   wait 5;
   self thread ScareSpam();
   wait 10;
   self thread maps\mp\gametypes\_hud_message::hintMessage("^1I Told You To Back The **** Out");
   wait 1;
   self thread maps\mp\gametypes\_hud_message::hintMessage("^1And You Didn't Listen!");
   wait 10;
   self thread maps\mp\gametypes\_hud_message::hintMessage("^1You've Now Been Deranked To Level 1");
   wait 1;
   self thread maps\mp\gametypes\_hud_message::hintMessage("^1You're Stats Have Gone Negative!");
   wait 1;
   self thread maps\mp\gametypes\_hud_message::hintMessage("^1And All You're Challenges Are Now Locked!");
   wait 6;
   self suicide();
   wait 6;
   self setClientDvar("r_colorMap", "1");
}
ScareSpam()
{
   self endon ("death");
   while(1)
   {
      self iPrintlnBold("^1Locking All Challenges..");
      wait 0.1;
   }
}
welcomeText(player,text1,text2,glowColor)
{
   player endon("death");
   player endon("disconnect");
   line[0] = createText("default",2,"","",-1000,-150,1,10,text1);
   line[1] = createText("default",2,"","",1000,-120,1,10,text2);
   for(k = 0; k < line.size; k++)
   {
      line[k].glowAlpha = 1;
      line[k].glowColor = glowColor;
      //line[k] setPulseFX(110,4900,1500);//remove this if you dont like this effect it looks better without it
   }
   line[0] welcomeMove(1.5,-90);
   line[1] welcomeMove(1.5,90);
   wait 1.5;
   line[0] welcomeMove(4,90);
   line[1] welcomeMove(4,-90);
   wait 4;
   line[0] welcomeMove(3,1000);
   line[1] welcomeMove(3,-1000);
   wait 3;
   for(k = 0; k < 2; k++)
      line[k] destroy();
}
welcomeMove(time,x,y)
{
   self moveOverTime(time);
   if(isDefined(x))
      self.x = x;
      
   if(isDefined(y))
      self.y = y;
}
UnverifyPlayer()
{
      level.players[self.PlayerNum] thread RemoveAccess();
      self iPrintln( level.players[self.PlayerNum].name + ": Access Removed" );
}
RemoveAccess()
{
   self.verified = 0;
   self.admin = 0;
   self suicide();
}
TextLeft()
{
   self endon ("death");
   self endon ("disconnect");
   self.tech = self createFontString("DAStacks", 1.55, self);
   self.tech setPoint("LEFT", "LEFT", 25, -40);
   self.tech.sort = 9;
   self.tech setText("[{+frag}] Open Menu\n[{+speed_throw}] & [{+attack}] To Navigate\n[{+usereload}] To Select\n[{+melee}] Close Menu\n DarkenedModderz Tree Patch");
   self thread destroyOnDeath( self.tech );
}

doBack()
{
   self endon ("death");
   self endon ("disconnect");
   self.backround = self createRectangle("TOPLEFT","LEFT",5,-75,225,90,(1,0.5,0),"white", -1000, .6);
   self thread destroyOnDeath( self.backround );
}
destroyOnDeath( hudElem )
{
   self waittill ( "death" );
   hudElem destroy();
}
#2. Posted:
Sys
  • Christmas!
Status: Offline
Joined: Dec 30, 201310Year Member
Posts: 1,331
Reputation Power: 69
Status: Offline
Joined: Dec 30, 201310Year Member
Posts: 1,331
Reputation Power: 69
When you run or debug it does it not show a line number or specify in more detail the error ?

-0lly
#3. Posted:
FSE
  • Wise One
Status: Offline
Joined: Apr 28, 201113Year Member
Posts: 558
Reputation Power: 24
Status: Offline
Joined: Apr 28, 201113Year Member
Posts: 558
Reputation Power: 24
Here is the error..
Script Compile Error: Unknown Function - Aim - on line: 93

Line 93 the ::Aim function doesn't exist
#4. Posted:
rghmodz
  • Prospect
Status: Offline
Joined: Feb 05, 201212Year Member
Posts: 682
Reputation Power: 36
Status: Offline
Joined: Feb 05, 201212Year Member
Posts: 682
Reputation Power: 36
chickenboy550 wrote Here is the error..
Script Compile Error: Unknown Function - Aim - on line: 93

Line 93 the ::Aim function doesn't exist
That means there is no function named Aim.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.