Szerző Téma: Re:Fegyver lehívó menü  (Megtekintve 390 alkalommal)

Nem elérhető !Adam

Re:Fegyver lehívó menü
« Dátum: 2016. február 08. - 00:12:49 »
0 Show voters
Idézetet írta: Nátha date=1405272455\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"59468\" data-ipsquote-contentclass=\"forums_Topic
Warning nélkül:



//Fegyver Menü
#include <a_samp>
#include <fixchars.h>
new Menu:weaponmenu;
new Menu:weaponmenu2;
#define LIGHT_BLUE 0x33CCFFAA
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define GAMETEXT_COLOR 0
public OnFilterScriptInit()
{
weaponmenu = CreateMenu(\"Fegyverek:\", 1, 220.0, 100.0, 150.0, 150.0);
AddMenuItem(weaponmenu, 0, \"Pisztoly\");
AddMenuItem(weaponmenu, 0, \"Hangtompított pisztoly\");
AddMenuItem(weaponmenu, 0, \"Desert Eagle\");
AddMenuItem(weaponmenu, 0, \"Shotgun\");
AddMenuItem(weaponmenu, 0, \"Rövidcsövû shotgun\");
AddMenuItem(weaponmenu, 0, \"Harci shotgun\");
AddMenuItem(weaponmenu, 0, \"UZI\");
AddMenuItem(weaponmenu, 0, \"SMG\");
AddMenuItem(weaponmenu, 0, \"AK47\");
AddMenuItem(weaponmenu, 0, \"M4\");
AddMenuItem(weaponmenu, 0, \"Tec9\");
AddMenuItem(weaponmenu, 0, \"Következõ oldal\");
weaponmenu2 = CreateMenu(\"Fegyverek:\", 1, 220.0, 100.0, 150.0, 150.0);
AddMenuItem(weaponmenu2, 0, \"Tanyasi puska\");
AddMenuItem(weaponmenu2, 0, \"Mesterlövész puska\");
AddMenuItem(weaponmenu2, 0, \"Füst gránát\");
AddMenuItem(weaponmenu2, 0, \"Molotov koktél\");
AddMenuItem(weaponmenu2, 0, \"Láncfûrész\");
AddMenuItem(weaponmenu2, 0, \"Ejtõernyõ\");
AddMenuItem(weaponmenu2, 0, \"Kés\");
AddMenuItem(weaponmenu2, 0, \"Baseball ütõ\");
AddMenuItem(weaponmenu2, 0, \"Graffiti spray\");
AddMenuItem(weaponmenu2, 0, \"Poroltó\");
AddMenuItem(weaponmenu2, 0, \"Kamera\");
AddMenuItem(weaponmenu2, 0, \"Elõzõ oldal\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, \"/w\", true) == 0)
{
       ShowMenuForPlayer(weaponmenu, playerid);
       return 1;
}
return 0;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if(CurrentMenu == weaponmenu)
{
       switch(row)
       {
        case 0: //9mm
        {
            GivePlayerWeapon(playerid, 22 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Pisztoly lekérve!\");
        }
        case 1: //Silenced 9mm
        {
            GivePlayerWeapon(playerid, 23 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Hangtompított pisztoly lekérve!\");
        }
        case 2: //Desert Eagle
        {
            GivePlayerWeapon(playerid, 24 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Desert Eagle lekérve!\");
        }
        case 3: //Shotgun
        {
            GivePlayerWeapon(playerid, 25 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Shotgun lekérve!\");
        }
        case 4: //Sawnoff Shotgun
        {
            GivePlayerWeapon(playerid, 26 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Rövidcsövû shotgun lekérve!\");
        }
        case 5: //Combat Shotgun
        {
            GivePlayerWeapon(playerid, 27 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Harci shotgun lekérve!\");
   }
        case 6: //Micro SMG (Uzi)
        {
            GivePlayerWeapon(playerid, 28 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"UZI lekérve!\");
   }
        case 7: //SMG (MP5)
        {
            GivePlayerWeapon(playerid, 29 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"SMG lekérve!\");
   }
   case 8: //AK47 (Kalashnikov)
        {
            GivePlayerWeapon(playerid, 30 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"AK47 lekérve!\");
   }
        case 9: //M4
        {
            GivePlayerWeapon(playerid, 31 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"M4 lekérve!\");
        }
        case 10: //Tec9
        {
            GivePlayerWeapon(playerid, 32 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Tec9 lekérve!\");
        }
        case 11: //Next Page
        {
      HideMenuForPlayer(weaponmenu,playerid);
      ShowMenuForPlayer(weaponmenu2,playerid);
        }
        }
}
else if(CurrentMenu == weaponmenu2)
{
       switch(row)
       {
          case 0: //Country Rifle
        {
            GivePlayerWeapon(playerid, 33 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Tanyasi puska lekérve!\");
        }
        case 1: //Sniper Rifle
        {
            GivePlayerWeapon(playerid, 34 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Mesterlövész puska lekérve!\");
      return 1;
   }
            case 2: //Tear Gas
        {
            GivePlayerWeapon(playerid, 17 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Füst gránát lekérve!\");
        }
            case 3: //Molotov Cocktail
        {
            GivePlayerWeapon(playerid, 18 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Molotov Koktél lekérve!\");
        }
            case 4: //Chainsaw
        {
            GivePlayerWeapon(playerid, 9 , 500);
            SendClientMessage(playerid, LIGHT_BLUE, \"Láncfûrész lekérve!\");
        }
        case 5: //Parachute
        {
            GivePlayerWeapon(playerid, 46 , 500);
            SendClientMessage(playerid, LIGHT_BLUE, \"Ejtõernyõ lekérve!\");
    }
    case 6: //Knife
        {
            GivePlayerWeapon(playerid, 4 , 500);
            SendClientMessage(playerid, LIGHT_BLUE, \"Kés lekérve!\");
    }
    case 7: //Baseball
        {
            GivePlayerWeapon(playerid, 5 , 500);
            SendClientMessage(playerid, LIGHT_BLUE, \"Baseball ütõ lekérve!\");
    }
    case 8: //Spray
        {
            GivePlayerWeapon(playerid, 41 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Graffiti Spray lekérve!\");
    }
    case 9: //Poroltó
        {
            GivePlayerWeapon(playerid, 42 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Poroltó lekérve!\");
    }
    case 10: //Kamera
        {
            GivePlayerWeapon(playerid, 43 , 99999);
            SendClientMessage(playerid, LIGHT_BLUE, \"Kamera lekérve!\");
    }
            case 11: //Previous Page
        {
      HideMenuForPlayer(weaponmenu2,playerid);
      ShowMenuForPlayer(weaponmenu,playerid);
        }
        }
}
return 1;
}
#endif

 
 
Amm van már annyi fegyver lehívó menü a fórumon, de inkább több legyen mint egy se :D
 
Igaz-igaz.. :D Inkább több, mint kevés rossz..

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal