Kamis, 29 November 2012

Trik gampang main alien shooter

Trik gampang main alien shooter oleh SEKAIGA.Blogspot.com

pertama buka folder alien shooter anda kemudian buka folder maps setelah itu klik kanan padaa file berakhiran LGC file properties change ke microsoft word  ok
abis itu file akan berubah menjadi word kemudian anda cari file nama nya items kemudian anda blog lalu masukan atau copy tulisan ini :
// Áîíóñ çàìîðîçêà
F234_0(int bonus)
{
  int unit,i;
  if( SizeTo(Flagman(0),GetX(bonus),GetY(bonus)) < 60 )
  {
    for( unit = FirstInBox(GetX(bonus)-500,GetY(bonus)-500,GetX(bonus)+500,GetY(bonus)+500);
         unit;
         unit = NextInBox() )
      if( SizeTo(unit,GetX(bonus),GetY(bonus)) < 1000 && Action(unit,ACT_GET_ARMY,0,0)==1 )
      {
        for( i = 0; i < sizeof(MonstersVid)/4 && MonstersVid[i] < 800; i++ )
          if( MonstersVid[i]==GetUnitVid(unit) )
          {
            Action(unit,ACT_CHANGE_VID,(GetUnitVid(unit)/10)*10+9,ANI_STAND);
            Action(unit,ACT_SET_BEHAVE,0,0);
            Action(unit,ACT_ATTACK,0,0);
            Action(unit,ACT_STOP,1,0);
            break;
          }
      }
    Effect(EFF_NUKE,0x1010ff);
    if( StateBar )
      MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
    Action(bonus,ANI_DEATH2,0,0);
  }
}

// Áîíóñ âçðûâ
F236_0(int bonus)
{
  int unit;
  if( SizeTo(Flagman(0),GetX(bonus),GetY(bonus)) < 60 )
  {
    for( unit = FirstInBox(GetX(bonus)-500,GetY(bonus)-500,GetX(bonus)+500,GetY(bonus)+500);
         unit;
         unit = NextInBox() )
      if( SizeTo(unit,GetX(bonus),GetY(bonus)) < 1000 && Action(unit,ACT_GET_ARMY,0,0)==1 )
      {
        Action(unit,ACT_DAMAGE,300,0);
      }
    EarthQuake(2500);
    Effect(EFF_NUKE,0xffffff);
    if( StateBar )
      MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
    Action(bonus,ANI_DEATH2,0,0);
  }
}

// Áîíóñ àäðåíàëèí
F238_0(int bonus)
{
  if( SizeTo(Flagman(0),GetX(bonus),GetY(bonus))<60 )
    if( !AdrenalinBeginTime )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(bonus))),-1,-1);
      AdrenalinBeginTime = GetTime();
      SetVidData(9,VID_SPEED,PlayerMaxSpeed+80);
      Action(bonus,ANI_DEATH2,0,0);
    }
}

// ïîäáîð èãðîêîì àïòå÷êè
F210_0(int unit)
{
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 )
    if( Action(Flagman(0),ACT_GET_HP) < PlayerMaxHp )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
      Action(Flagman(0),ACT_DAMAGE,-20);
      Action(unit,ANI_DEATH2,0,0);
      CreateSprite(760,GetX(Flagman(0)),GetY(Flagman(0)),GetZ(Flagman(0))+60);
    }
}
F211_0(int unit)
{
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 )
    if( Action(Flagman(0),ACT_GET_HP) < PlayerMaxHp )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
      Action(Flagman(0),ACT_DAMAGE,-50);
      Action(unit,ANI_DEATH2,0,0);
      CreateSprite(760,GetX(Flagman(0)),GetY(Flagman(0)),GetZ(Flagman(0))+60);
    }
}
F212_0(int unit)
{
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 )
    if( Action(Flagman(0),ACT_GET_HP) < (PlayerMaxHp+100) )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
      if( Action(Flagman(0),ACT_GET_HP) < PlayerMaxHp )
        Action(Flagman(0),ACT_SET_HP,Action(Flagman(0),ACT_GET_HP)+100);
      else
        Action(Flagman(0),ACT_SET_HP,PlayerMaxHp+100);
      Action(unit,ANI_DEATH2);
      CreateSprite(760,GetX(Flagman(0)),GetY(Flagman(0)),GetZ(Flagman(0))+60);
    }
}


// äîáàâëÿåò èãðîêó ïàòðîíû åñëè íóæíî, âîçâðàùàåò 1 åñëè ïàòðîíû íå íóæíû
AddAmmo(int n_weapon,int no_ammo)
{
  if( Action(Flagman(0),ACT_GET_AMMO,n_weapon,0) < GetVidData(10+n_weapon,VID_AMMO) )
  {
    if( (Action(Flagman(0),ACT_GET_AMMO,n_weapon,0)+no_ammo)
        <= GetVidData(10+n_weapon,VID_AMMO) )
      Action( Flagman(0),ACT_ADD_AMMO,no_ammo,n_weapon );
    else
      Action( Flagman(0),ACT_ADD_AMMO,
        GetVidData(10+n_weapon,VID_AMMO)-Action(Flagman(0),ACT_GET_AMMO,n_weapon,0),
        n_weapon );
    // Óñòàíàâëèâàåì èíäèêàòîð êîëè÷åñòâà ïàòðîíîâ äëÿ äàííîãî îðóæèÿ
    if( StateBar )
      Action( StateBarAmmo[n_weapon], ACT_CHANGE_DIRECTION,
        (Action(Flagman(0),ACT_GET_AMMO,n_weapon,0)*248)/GetVidData(10+n_weapon,VID_AMMO) );
    return 0;
  }
  return 1;
}
// Ïîäáîð èãðîêîì îðóæèÿ
F260_0(int unit)
{
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit))<60 )
  {
    if( StateBar )
      MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
    AddAmmo(GetUnitVid(unit)-260,GettingAmmo[GetUnitVid(unit)-260]/2);
    Action(Flagman(0),ACT_ADD_ITEM,GetUnitVid(unit),0);
    if( StateBar )
    {
      Action(StateBarAmmo[GetUnitVid(unit)-260],ACT_SET_INVISIBLE,0);
      Action(StateBarWeapon[GetUnitVid(unit)-260],ACT_SET_INVISIBLE,0);
    }
    Action(unit,ANI_DEATH2,0,0);
  }
}
F261_0(int unit) { F260_0(unit); }// ïîäáîð îðóæèÿ
F262_0(int unit) { F260_0(unit); }
F263_0(int unit) { F260_0(unit); }
F264_0(int unit) { F260_0(unit); }
F265_0(int unit) { F260_0(unit); }
F266_0(int unit) { F260_0(unit); }
F267_0(int unit) { F260_0(unit); }
F268_0(int unit) { F260_0(unit); }
F269_0(int unit) { F260_0(unit); }

// Ïîäáîð èãðîêîì äåíåã
F241_0(int unit)
{
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 )
  {
    if( StateBar )
      MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
    PlayerMoney += 50;
    Action(unit,ANI_DEATH2,0,0);
  }
}
// Ïîäáîð æèçíè
F235_0(int unit)
{
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 )
    if( PlayerItem[727-720] < 5 )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
      PlayerItem[727-720]++;
      Action(unit,ANI_DEATH2,0,0);
    }
}
// ïîäáîð èãðîêîì ôîíàðèêà
F246_0(int unit)
{
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 )
  {
    PlayerItem[728-720] = 1;
    Action(unit,ANI_DEATH2);
  }
}
// Ïîäáîð èãðîêîì àïòå÷êè ñïàñàòåëüíîé
F230_0(int unit)
{
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 )
    if( !Action(Flagman(0),ACT_HAVE_ITEM,GetUnitVid(unit),0) )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
      Action(Flagman(0),ACT_ADD_ITEM,GetUnitVid(unit),0);
      Action(unit,ANI_DEATH2,0,0);
      if( StateBar )
        MenuAction(730,999999,ACT_SET_ARMY,0);
    }
}
// Ïîäáîð èãðîêîì äèíàìèòà
F301_0(int unit)
{
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit))<60 )
  {
    if( StateBar )
      MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
    PlayerExplosive++;
//    Action(Flagman(0),ACT_ADD_ITEM,GetUnitVid(unit),0);
    Action(unit,ANI_DEATH2,0,0);
    if( StateBar )
    {
      string text;
      text = PlayerExplosive;
      Action(StateBarExplosive,ACT_SET_TEXT,&text);
      MenuAction(748,999999,ACT_SET_ARMY,0);
    }
  }
}

// Ïîäáîð èãðîêîì ïàòðîíîâ
F302_0(int unit)
{
  int n_weapon;
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit))<50 )
  {
    if( !AddAmmo(GetUnitVid(unit)-300,GettingAmmo[GetUnitVid(unit)-300]) )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
      Action(unit,ANI_DEATH2,0,0);
    }
  }
}
F303_0(int unit) { F302_0(unit); }// ïîäáîð ïàòðîíîâ
F304_0(int unit) { F302_0(unit); }
F305_0(int unit) { F302_0(unit); }
F306_0(int unit) { F302_0(unit); }
F307_0(int unit) { F302_0(unit); }
F308_0(int unit) { F302_0(unit); }
F309_0(int unit) { F302_0(unit); }

//ïîäáîð èãðîêîì áðîíè
F204_0(int unit)
{
  int link, already_have_armor, prev;
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 )
  {
    already_have_armor = 0;
    for( link = Action(Flagman(0),ACT_GET_LINK); link; link = Action(link,ACT_GET_LINK) )
      if( GetUnitVid(link) >= 200 && GetUnitVid(link) <= 202 )
      {
        if( Action(link,ACT_GET_HP,0,0) < GetVidData(GetUnitVid(unit)-4,VID_MAXHP0) )
        {//óíè÷òîæàåì ñòàðûé áðîíåæèëåò
          prev = Action(link,ACT_GET_UPLINK);
          Destroy(link);
          link = prev;
//          break;
        }
        else
          already_have_armor = 1;
      }
      else if( GetVidData(GetUnitVid(link),VID_CLASS)==B_LINKER && GetUnitVid(link)!=203 )
      { // óíè÷òîæàåì ãàëî îò îðóæèÿ
        prev = Action(link,ACT_GET_UPLINK);
        if( GetVidData(GetUnitVid(link),VID_LINK) == GetUnitVid(Action(link,ACT_GET_LINK)) )
          Destroy( Action(link,ACT_GET_LINK) );
        Destroy( link );
        link = prev;
      }
    if( !already_have_armor )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
      link = Action(Flagman(0),ACT_GET_LINK);
      if( PlayerSex=="male" )
        CreateSprite(GetUnitVid(unit)-4,GetX(link),GetY(link),GetZ(link),GetDirection(link),link);
      else
        CreateSprite(GetUnitVid(unit)-4,GetX(link),GetY(link),GetZ(link)+3,GetDirection(link),link);
//      Action(Flagman(0),ACT_ADD_ITEM,GetUnitVid(unit),0);
      Action(unit,ANI_DEATH2);
    }
  }
}
F205_0(int unit) { F204_0(unit); }
F206_0(int unit) { F204_0(unit); }

AddInvulnerable()
{
  int link;
  for( link = Action(Flagman(0),ACT_GET_LINK); link; link = Action(link,ACT_GET_LINK) )
    if( GetUnitVid(link)==203 )
    {
      Destroy(link);
      break;
    }
  link = Action(Flagman(0),ACT_GET_LINK);
  return CreateSprite(203,GetX(link),GetY(link),GetZ(link)-13,GetDirection(link),link);
}
//ïîäáîð èãðîêîì íåóÿçâèìîñòè
F207_0(int unit)
{
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 )
  {
    if( StateBar )
      MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
    AddInvulnerable();
    Action(unit,ANI_DEATH2);
  }
}

// ïîäáîð èìïëàíòàíòà óâåëè÷åíèÿ æèçíè
F242_0(int unit)
{
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 || !unit )
    if( PlayerItem[720-720] < 3 )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
      PlayerItem[720-720]++;
      PlayerMaxHp = (PlayerMaxHp*2800)/1000;
      if( GetVidData(9,VID_MAXHP0) < PlayerMaxHp )
        SetVidData(9,VID_MAXHP0,PlayerMaxHp);
      Action(unit,ANI_DEATH2);
    }
}

// ïîäáîð èìïëàíòàíòà óâåëè÷åíèÿ ñèëû (ìàêñèìàëüíîãî êîëè÷åñòâà ïàòðîíîâ)
F243_0(int unit)
{
  int i;
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 || !unit )
    if( PlayerItem[721-720] < 3 )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
      PlayerItem[721-720]++;
      for( i = 12; i < 20; i++ )
        SetVidData( i,VID_AMMO,(GetVidData(i,VID_AMMO)*17)/10 );
      Action(unit,ANI_DEATH2);
    }
}

// ïîäáîð èìïëàíòàíòà óâåëè÷åíèÿ ñêîðîñòè
F244_0(int unit)
{
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 || !unit )
    if( PlayerItem[722-720] < 3 )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
      PlayerItem[722-720]++;
      PlayerMaxSpeed = (PlayerMaxSpeed*115)/100;
      SetVidData(9,VID_SPEED,PlayerMaxSpeed);
      Action(unit,ANI_DEATH2);
    }
}

// ïîäáîð èìïëàíòàíòà óâåëè÷åíèÿ òî÷íîñòè ïàïàäàíèé è ïîâðåæäåíèé
F245_0(int unit)
{
  int i;
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 || !unit )
    if( PlayerItem[723-720] < 3 )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
      PlayerItem[723-720]++;
      for( i = 10; i < 20; i++ )
      {
        SetVidData( i,VID_WEAPONAIM,(GetVidData(i,VID_WEAPONAIM)*6)/10 );
      }
      //óâåëè÷åíèå ïîâðåæäåíèé îò ïóëü
      SetVidData(168,VID_DAMAGE,(GetVidData(168,VID_DAMAGE)*999)/100);//1-ïèñòîëåò
      SetVidData(100,VID_DAMAGE,(GetVidData(100,VID_DAMAGE)*240)/100);//2-ðóæüå
      SetVidData(156,VID_DAMAGE,(GetVidData(156,VID_DAMAGE)*220)/100);//4-ïóëåìåò
      SetVidData(113,VID_DAMAGE,(GetVidData(113,VID_DAMAGE)*220)/100);//5-ðàêåòà
      SetVidData(112,VID_DAMAGE,(GetVidData(112,VID_DAMAGE)*240)/100);//7-ïëàçìà
      SetVidData(904,VID_DAMAGE,(GetVidData(904,VID_DAMAGE)*260)/100);//8-îãíåìåò
      SetVidData(129,VID_DAMAGE,(GetVidData(129,VID_DAMAGE)*999)/100);//9-ìàãìà
      Action(unit,ANI_DEATH2);
    }
}

// ïîäáîð äðîíà
F231_0(int unit)
{
  int link;
  if( SizeTo(Flagman(0),GetX(unit),GetY(unit)) < 60 )
    if( !GetVidData(290,VID_COUNT) )
    {
      if( StateBar )
        MessageText(GetString("items","Item"+itoa(GetUnitVid(unit))),-1,-1);
      CreateSprite(290,GetX(Flagman(0)),GetY(Flagman(0)),GetZ(Flagman(0))+DRON_FLY_HEIGHT,GetDirection(Flagman(0)));
      Action(unit,ANI_DEATH2);
      if( StateBar )
        MenuAction(731,999999,ACT_SET_ARMY,0);
    }
}

lalu copy kan ini pada file bernama MAIN MENU

#include "maps\export.lgc"
#include "maps\common.lgc"
//#include "maps\common_menu.lgc"
//#include "maps\common_fame.lgc"

//for MenuState
#define MENU_PLAY     0
#define MENU_OPTIONS  1
#define MENU_FAME     2
#define MENU_EXIT     4
#define MENU_CONTINUE 5
#define MENU_MAIN     6
#define MENU_COMPAIGN 7
#define MENU_SURVIVE  8
#define MENU_LOAD     9

int MenuState = MENU_MAIN;//òèï ìåíþ 0-Play,1-Options,2-FameHall,3-Credits,4-Quit,5-BaseMenu
int StartEffectTime = 0;//âðåìÿ íà÷àëà âèäåî ýôôåêòà
static int    EnterNameOn=0;
static string PlayerName;
static string OldName;
static string SaveName[MAX_SAVE];

ChangeMenuState(int new_menu_type)
{
  MenuState = new_menu_type;
  Effect(EFF_FADE,0,0,FADE_GAME_TIME);
  StartEffectTime = GetTime();
}

LoadPlayer(string name)
{
  int    i;
  string load_path;
  load_path = GetDefaultRegPath() + "\\"+name;

  SetReg(GetDefaultRegPath(),"LevelNumber",GetReg(load_path,"LevelNumber",1));
  SetReg(GetDefaultRegPath(),"PlayerName",GetReg(load_path,"PlayerName",GetString("menu","DefaultName")));
  SetReg(GetDefaultRegPath(),"PlayerSex",GetReg(load_path,"PlayerSex","male"));
  SetReg(GetDefaultRegPath(),"PlayerMoney",GetReg(load_path,"PlayerMoney",0));
  SetReg(GetDefaultRegPath(),"PlayerScores",GetReg(load_path,"PlayerScores",0));
  for( i = 0; i < 10; i++ )
  {
    SetReg(GetDefaultRegPath(),"PlayerAmmo"+itoa(i), GetReg(load_path,"PlayerAmmo"+itoa(i),0) );
    SetReg(GetDefaultRegPath(),"PlayerWeapon"+itoa(i),GetReg(load_path,"PlayerWeapon"+itoa(i),0));
  }
  for( i = 0; i < 12; i++ )
    SetReg(GetDefaultRegPath(),"PlayerItem"+itoa(i),GetReg(load_path,"PlayerItem"+itoa(i),0));

  ReloadVidAndSetVidParameters();
}
//ïåðåãðóçêà âñåõ VID ò.ê. â ïðîöåññå ïðåäûäóùèõ èãð îíè ìîãëè ïîìåíÿòüñÿ
ResetGameParameters()
{
  int i;

  SetReg(GetDefaultRegPath(),"LevelNumber",1);
  SetReg(GetDefaultRegPath(),"PlayerMoney",5000);
  SetReg(GetDefaultRegPath(),"PlayerScores",9999999999);
  SetReg(GetDefaultRegPath(),"PlayerName",PlayerName);
  for( i = 0; i < 10; i++ )
  {
    SetReg(GetDefaultRegPath(),"PlayerWeapon"+itoa(i),10);
    SetReg(GetDefaultRegPath(),"PlayerAmmo"+itoa(i),999999);
  }
  SetReg(GetDefaultRegPath(),"PlayerWeapon1",1);
  SetReg(GetDefaultRegPath(),"PlayerAmmo1",999999);
  for( i = 0; i< 12; i++ )
    SetReg(GetDefaultRegPath(),"PlayerItem"+itoa(i),0);
  SetReg(GetDefaultRegPath(),"PlayerItem"+itoa(7),5);//PlayerLife

  ReloadVidAndSetVidParameters();
}


main()
{
  int menu,i;
  iff( 1 )
  {
    SetCursor(CURSOR_NORMAL);
//    PlayMusicFile("music\\menu_mus.ogg");
    if( GetReg( GetDefaultRegPath(),"NewRecord",999 )!=999 )
      ChangeMenuState(MENU_FAME);
    else
      ChangeMenuState(MENU_MAIN);
    SetVidData(705,VID_GAMMA+1,0x7f7f7f);
    for( i = 0; i < MAX_SAVE; i++ )
    {
      SaveName[i] = GetReg( GetDefaultRegPath(),"SaveName"+itoa(i),"" );
      if( SaveName[i]=="" )
        SaveName[i] = GetString("menu","Empty");
//      else
//        SaveName[i] = GetString("menu","Name") + SaveName[i] + " " + GetString("menu","Level") + itoa(GetReg(GetDefaultRegPath() + "\\"+SaveName[i],"LevelNumber",1));
    }
  }
  if( MenuState==MENU_MAIN )//basemenu
  {
    if( StartEffectTime && (GetTime()-StartEffectTime) > FADE_GAME_TIME/2 )
    {
      StartEffectTime = 0;
      MenuRelease();
      MenuLoad("maps\\mainmenu.men");
      if( GetReg( GetDefaultRegPath(),"SaveName0","" )=="" )
      {
//        MenuAction(705,5,ACT_SET_ARMY,1);
        MenuAction(705,5,ANI_MENUDISABLE);
      }
    }
    if( MenuLClick() && MenuNVidUnderCursor()==705 )
    {
      // íå ïåðåõîäèì ê CONTINUE åñëè save íåò
      if( MenuNDirUnderCursor()!=MENU_CONTINUE || GetReg( GetDefaultRegPath(),"SaveName0","" )!="" )
        ChangeMenuState(MenuNDirUnderCursor());
    }
    if( GetKey()==' ' || GetKey()==13 )
      ChangeMenuState(MENU_PLAY);
    if( GetKey()==27 )
      ChangeMenuState(MENU_EXIT);
  }
  else if( MenuState==MENU_CONTINUE )//Continue
  {
    if( StartEffectTime && GetEffectState(EFF_FADE) > 45 )
    {
      StartEffectTime = 0;
      MenuRelease();
      MenuLoad("maps\\load.men");
      for( i = 0; i < MAX_SAVE; i++ )
        if( GetReg( GetDefaultRegPath(),"SaveName"+itoa(i),"" )=="" )
          MenuAction(705,i,ANI_MENUDISABLE);
    }
    if( GetKey()==VK_ESCAPE )
      ChangeMenuState(MENU_MAIN);
    else if( MenuLClick() && MenuNVidUnderCursor()==705 )
      if( MenuNDirUnderCursor()==9 )
        ChangeMenuState(MENU_MAIN);
      else if( GetReg( GetDefaultRegPath(),"SaveName"+itoa(MenuNDirUnderCursor()),"" )!="" )
      {
        LoadPlayer(GetReg( GetDefaultRegPath(),"SaveName"+itoa(MenuNDirUnderCursor()),"" ));
        ChangeMenuState(MENU_LOAD);
      }
  }
  else if( MenuState==MENU_PLAY )//Play
  {
    if( StartEffectTime && GetEffectState(EFF_FADE) > 45 )
    {
      StartEffectTime = 0;
      PlayerName = GetReg(GetDefaultRegPath(),"PlayerName",GetString("menu","DefaultName"));
      MenuRelease();
      MenuLoad("maps\\play.men");
      if( GetReg(GetDefaultRegPath(),"PlayerSex","male")=="male" )
        MenuAction(706,0,ANI_MENUSTANDUP);
      else
        MenuAction(707,0,ANI_MENUSTANDUP);

    }
    if( MenuLClick() )
      if( MenuNVidUnderCursor()==706 )
      {
        MenuAction(706,0,ANI_MENUSTANDUP);
        MenuAction(707,0,ANI_MENUSTANDDOWN);
        SetReg(GetDefaultRegPath(),"PlayerSex","male");
      }
      else if( MenuNVidUnderCursor()==707 )
      {
        MenuAction(707,0,ANI_MENUSTANDUP);
        MenuAction(706,0,ANI_MENUSTANDDOWN);
        SetReg(GetDefaultRegPath(),"PlayerSex","female");
      }
      else if( MenuNVidUnderCursor()==705 )
      {
        if( MenuNDirUnderCursor()==0 )
          ChangeMenuState(MENU_COMPAIGN);
        else if( MenuNDirUnderCursor()==1 )
          ChangeMenuState(MENU_SURVIVE);
        else if( MenuNDirUnderCursor()==2 )
          ChangeMenuState(MENU_MAIN);
      }
      else if( MenuNVidUnderCursor()==708 )//PlayerName
      {
        EnterNameOn = 1;
        OldName = PlayerName;
        if( PlayerName==GetString("menu","DefaultName") )
          PlayerName = "";
        PlayerName += "_";
      }
    if( EnterNameOn )
    {// Ââîä èìåíè èãðîêà â ïðîöåññå
      if( GetKey()==VK_BACK && strlen(PlayerName) > 1 )
      {
        PlayerName[strlen(PlayerName)-2] = '_';
        PlayerName[strlen(PlayerName)-1] = 0;
      }
      else if( GetKey()==VK_RETURN || (MenuLClick() && MenuNVidUnderCursor()!=708) )
      {
        EnterNameOn = 0;
        PlayerName[strlen(PlayerName)-1] = 0;//óáèðàåì '_'
      }
      else if( GetKey()==VK_ESCAPE )
      {
        EnterNameOn = 0;
        PlayerName = OldName;
      }
      else if( strlen(PlayerName) < 11 && GetKey() >= 'A' && GetKey() <= 'Z' )
      {
        PlayerName[strlen(PlayerName)-1] = 0;//óáèðàåì '_'
        PlayerName += Printf("%c_",GetKey());
      }
      else if( strlen(PlayerName) < 11 && GetKey() >= 'a' && GetKey() <= 'z' )
      {
        PlayerName[strlen(PlayerName)-1] = 0;//óáèðàåì '_'
        PlayerName += Printf("%c_",GetKey()-('a'-'A'));
      }
      else if( strlen(PlayerName) < 11 && GetKey() >= '0' && GetKey() <= '9' )
      {
        PlayerName[strlen(PlayerName)-1] = 0;//óáèðàåì '_'
        PlayerName += Printf("%c_",GetKey());
      }
      else if( strlen(PlayerName) < 11 && GetKey()=='_' )
      {
        PlayerName[strlen(PlayerName)-1] = 0;//óáèðàåì '_'
        PlayerName += Printf("%c_",GetKey());
      }
      else if( GetKey() && GetKey() < 255 )
        PlaySFX(46);//íàæàòà íåâåðíàÿ êëàâèøà
    }
    else if( GetKey()==VK_ESCAPE )
      ChangeMenuState(MENU_MAIN);
    else if( GetKey()==' ' || GetKey()==VK_RETURN )
      ChangeMenuState(MENU_COMPAIGN);
  }
  else if( MenuState==MENU_OPTIONS )//Options
  {
    if( StartEffectTime && GetEffectState(EFF_FADE) > 45 )
    {
      StartEffectTime = 0;
      CreateOptionsMenu("maps\\options.men");
    }
    if( MenuLClick() )
      if( MenuNVidUnderCursor()==705 )
      {
        if( MenuNDirUnderCursor()==0 )
          ChangeMenuState(MENU_MAIN);
      }
    if( GetKey()==27 )
      ChangeMenuState(MENU_MAIN);
    TactOptionsMenu();
  }
  else if( MenuState==MENU_FAME )//Hall of Fame
  {
    if( StartEffectTime && GetEffectState(EFF_FADE) > 45 )
    {
      StartEffectTime = 0;
      MenuRelease();
      DrawFame();
    }
    if( GetKey() || (GetInputState()&(INPUT_LCLICK|INPUT_RCLICK)) )
      ChangeMenuState(MENU_MAIN);
  }
  else if( MenuState==3 )//Credits
  {
    if( StartEffectTime && GetEffectState(EFF_FADE) > 44 )
    {
      StartEffectTime = 0;
      MenuRelease();
      MenuLoad("maps\\credits.men");
    }
    if( GetKey() || (GetInputState()&(INPUT_LCLICK|INPUT_RCLICK)) )
      ChangeMenuState(MENU_MAIN);
  }
  else if( MenuState==MENU_EXIT )//Quit
  {
    if( StartEffectTime && GetEffectState(EFF_FADE) > 44 )
    {
      StartEffectTime = 0;
      Exec("http://www.gametop.com/stats/alienshooter.html"); Exit();
    }
  }
  else if( MenuState==MENU_COMPAIGN )//Compaign
  {
    if( StartEffectTime && GetEffectState(EFF_FADE) > 45 )
    {
      StartEffectTime = 0;
      ResetGameParameters();
      SetReg(GetDefaultRegPath(),"GameTypeSurvive",0);
      Load("maps\\shop.map");
    }
  }
  else if( MenuState==MENU_SURVIVE )//Survive
  {
    if( StartEffectTime && GetEffectState(EFF_FADE) > 45 )
    {
      StartEffectTime = 0;
      ResetGameParameters();
      SetReg(GetDefaultRegPath(),"LevelNumber",-10);
      SetReg(GetDefaultRegPath(),"GameTypeSurvive",1);
      StopMusic();
      Load("maps\\survive_01.map");
    }
  }
  else if( MenuState==MENU_LOAD )//Load Compaign
  {
    if( StartEffectTime && GetEffectState(EFF_FADE) > 45 )
    {
      StartEffectTime = 0;
      SetReg(GetDefaultRegPath(),"GameTypeSurvive",0);
      Load("maps\\shop.map");
    }
  }
}

nah segitu ajah share kali ini kalo ada pertanyaan tanya di twitter ajah @LFS_Adhit sekian ^_^

Semoga bermanfaat yah