! - . . , , . , , , (, ) . !





VK: vk.com/sergey68

76890 - 1000,46860 - 500, 300
** V.I.P --> **

: !

1 5 5

  1. #1


    :
    :15.12.2010
    :
    :2
    :0 [+/-] 

    !

    :

    #define #include:
    PHP :
    #pragma tabsize 0
    #define FIRST_GUN_PRICE //  
    #define SECOND_GUN_PRICE //   
    :
    PHP :
    new GunShop1//   
    new GunShop2//   
    new Menu:guns//
    new pMoney[MAX_PLAYERS]; //-    
    public OnFilterScriptInit():
    PHP :
    guns CreateMenu("Gun Shop:"2150.0250.0150.0150.0); // 
    AddMenuItem(guns0"Nazvanie pervoi' pushki");
    AddMenuItem(guns1"Tsena pervoi' pushki");
    AddMenuItem(guns0"Nazvanie vtoroi' pushki");
    AddMenuItem(guns1"Tsena vtoroi' pushki");
    // . . ...
    GunShop1 CreatePickup(155923Float:xFloat:yFloat:z,-1); //C  (  )
    GunShop2 CreatePickup(155923Float:xFloat:yFloat:z,-1); 
    public OnPlayerSelectedMenuRow(playerid, row):
    PHP :
    new Menu:current//...
    current GetPlayerMenu(playerid); //...   ,     

    if(current == guns//       ?
    {
    switch(
    row//  ?
            
    {
                case 
    0//?
                
    {
                    if(
    pMoney[playerid] >= FIRST_GUN_PRICE//   ?
                    
    {
                        
    GivePlayerWeapon(playerid__-____); // 
                        
    GivePlayerMoney(playerid, -FIRST_GUN_PRICE); // 
                        
    SendClientMessage(playeridCOLOR_YELLOW"  !"); //   
                    
    }
                    else 
    //     
                    
    {    SendClientMessage(playerid,COLOR_FADE1,", !   !"); } //   
                
    }
                case 
    1:
                {
                
    /*      */
                
    }
                case 
    2:
                {
                
    /*  */
                
    }
                
    // . . ...

    public OnPlayerPickUpPickup(playerid, pickupid):
    PHP :
    if((pickupid == GunShop1) || (pickupid == GunShop2)) //    ...
        
    {
            
    ShowMenuForPlayer(gunsplayerid); // 
            
    pMoney[playerid] = GetPlayerMoney(playerid); // - 
        

  2. #2

      Lolka

    :
    :24.11.2011
    :78
    :0 [+/-] 
    ?

    . tsena pervoi pushki ))
    Lolka; 20.12.2011 20:37.
  3. #3

      Unreal

    :
    :28.11.2011
    :934
    :699 [+/-] 
    ? ?
  4. #4

      Lolka

    :
    :24.11.2011
    :78
    :0 [+/-] 
    . . ?


    PHP :
    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT

    #include <a_samp>

    #if defined FILTERSCRIPT

    #pragma tabsize 0
    #define FIRST_GUN_PRICE 2000 //Öåíà ïåðâîé ïóøêè
    #define SECOND_GUN_PRICE 4000 //Öåíà âòîðîé ïóøêè

    new GunShop1//Ïåðâûé ïèêàï îðóæåéíîãî ìàãàçèíà
    new Menu:guns//Ìåíþ
    new pMoney[MAX_PLAYERS]; //Êîë-âî äåíåã ó èãðîêà

    public OnFilterScriptInit()
    {
    guns CreateMenu("Gun Shop:"2150.0250.0150.0150.0); //Ñîçäà¸ì ìåíþ
    AddMenuItem(guns0"Äðîáîâèê");
    AddMenuItem(guns1"2000");
    AddMenuItem(guns0"MP-5");
    AddMenuItem(guns1"4000");
    //è ò. ä. ...
    GunShop1 AddStaticPickup(1274232204.7793,-1777.3533,22.7362,0); //Cîçäà¸ì ïèêàïû (ñêîëüêî óãîäíî ìíîãî)
        
    return 1;
    }


    public 
    OnPlayerSelectedMenuRow(playeridrow)
    {
    new 
    Menu:current//Ïåðåìåííàÿ...
    current GetPlayerMenu(playerid); //...ñîäåðæàùàÿ â ñåáå ìåíþ, â êîòîðîì ñåé÷àñ íàõîäèòñÿ èãðîê

    if(current == guns//Íàõîäèòñÿ ëè ñåé÷àñ èãðîê â íóæíîì íàì ìåíþ?
    {
    switch(
    row//Êàêàÿ ñòðîêà âûáðàíà?
            
    {
                case 
    0//Ïåðâàÿ?
                
    {
                    if(
    pMoney[playerid] >= FIRST_GUN_PRICE//Õâàòèò ëè èãðîêó äåíåã?
                    
    {
                        
    GivePlayerWeapon(playerid34920); //Äà¸ì ïóøêó
                        
    GivePlayerMoney(playerid, -FIRST_GUN_PRICE); //Çàáèðàåì äåíüãè
                        
    SendClientMessage(playeridCOLOR_YELLOW"Âû êóïèëè äðîáîâèê!"); //Îïîâåùàåì èãðîêà î ïîêóïêå
                    
    }
                    else 
    //Åñëè ó èãðîêà íå õâàòàåò äåíåã
                    
    {    SendClientMessage(playerid,COLOR_FADE1,"Ýé áðàòþíü, à äåíåã òî íåòó..."); } //Îïîâåùàåì åãî îá ýòîì
                
    }
                case 
    1:
                {
                
    /*Òî æå ñàìîå äåëàåì äëÿ âòîðîé ïóøêè*/
                
    }
                case 
    2:
                {
                
    /*È äëÿ òðåòüåé*/
                
    }
                
    //è ò. ä. ...
    }
        return 
    1;
    }

    public 
    OnPlayerPickUpPickup(playeridpickupid)
    {
    if((
    pickupid == GunShop1)) //Åñëè èãðîê âçÿë íóæíûé ïèêàï...
        
    {
            
    ShowMenuForPlayer(gunsplayerid); //Ïîêàçûâàåì ìåíþ
            
    pMoney[playerid] = GetPlayerMoney(playerid); //Ïîëó÷àåì êîë-âî äåíåã
        
    }
    #endif 
  5. #5

      Fak

    :
    :15.07.2012
    :Pawno.exe MTA SA:MP
    :358
    :171 [+/-] 
    - !
    +

, : 0

.

#define, /color, , , , , case, color, define, , , , , , , , , include, ini, , message, , , php, playerid, shop, yellow

(, , , , , ), , .
!
samp-rp advanvce pawn s0beit cs 1.6 0.3x World of Tanks samp-rp, samp-rp, - PAWNO SA-MP IV-MP MTA cleo s0beit sobeit sa-mp sa-mp pawno pawno pawno iv-mp iv-mp iv-mp godfather SAMP gta 4 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather rp roleplay samp-rp sa-mp sa-mp pawno gta-iv gta-v gta-sa gta-3 gta-III gta-4 gta-5 gta-vc mta mta-dm mta-race mta-sa pawno info ru pawno pawno gta-iv gta-iv gta-v gta-v gta-iv keygen gta sa gta 4 multiplayer gta san adnreas multiplayer sa-mp forum sa-mp pawno sa-mp pawno sa-mp gta-sa pawno pawno errors sa-mp 0.3c SA-MP 0.3d 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather SAMP hack rat android instagram twitter ddos root linux ubuntu mac android advance arizona 4g