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





VK: vk.com/sergey68

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

: /drink

1 10 14

  1. #1

      MacDac

    :
    :12.11.2010
    :Kazan
    :265
    :21 [+/-] 

    /drink

    PHP :

        if(
    strcmp(cmd"/drink"true) == 0
        { 
            if(
    IsPlayerConnected(playerid)) 
            { 
                if(
    IsAtBar(playerid)) 
                { 
                    
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,""," $6\n $10\n $25\n $10\n $2\n $2\n $1","",""); 
                } 
                else if(
    DrinkWater(playerid)) 
                { 
                    
    GetPlayerName(playeridsendernamesizeof(sendername)); 
                    
    SetPlayerSpecialAction(playeridSPECIAL_ACTION_DRINK_SPRUNK); 
                    
    format(stringsizeof(string), "* %s  -."sendername); 
                    
    ProxDetector(15.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); 
                    
    ApplyAnimation(playerid,"BAR","dnk_stndF_loop",4.1,0,0,0,0,0); 
                    new 
    Float:health
                    if(
    GetPlayerHealth(playeridhealth) < 100
                    { 
                        
    SetPlayerHealth(playeridhealth 8.0); 
                    } 
                   } 
                else 
                { 
                    
    SendClientMessage(playeridCOLOR_GREY"        ."); 
                    return 
    1
                } 
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])


    PHP :
       
        if(
    dialogid == 13
        { 
            if(
    PlayerDrunk[playerid] < 10
            { 
                new 
    Float:health
                new 
    napitok[30]; 
                  if(
    listitem == 0
                { 
                    if(
    PlayerInfo[playerid][pAge] < 21
                    { 
                        
    SendClientMessage(playeridCOLOR_WHITE": ,       21 !"); 
                        return 
    1
                    } 
                    
    SetPlayerSpecialAction(playeridSPECIAL_ACTION_DRINK_BEER); 
                    
    GivePlayerMoney(playerid, - 6); 
                    
    PlayerDrunk[playerid] += 2
                    if(
    PlayerDrunk[playerid] >= 6) { GameTextForPlayer(playerid"~w~You are~n~~p~Drunk"35001); } 
                    if(
    GetPlayerHealth(playeridhealth) < 100
                    { 
                        if(
    PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp PlayerInfo[playerid][pAlcoholPerk]; hp += 15SetPlayerHealth(playeridhealth hp); } 
                        else { 
    SetPlayerHealth(playeridhealth 15.0); } 
                    } 
                    
    napitok ""
                } 
                  else if(
    listitem == 1
                { 
                    if(
    PlayerInfo[playerid][pAge] < 18
                    { 
                        
    SendClientMessage(playeridCOLOR_WHITE": ,       18 !"); 
                        return 
    1
                    } 
                    
    SetPlayerSpecialAction(playeridSPECIAL_ACTION_DRINK_WINE); 
                    
    GivePlayerMoney(playerid, - 10); 
                    
    PlayerDrunk[playerid] += 3
                    if(
    PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid"~w~You are~n~~p~Drunk"35001); } 
                    if(
    GetPlayerHealth(playeridhealth) < 100
                    { 
                        if(
    PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp PlayerInfo[playerid][pAlcoholPerk]; hp += 25SetPlayerHealth(playeridhealth hp); } 
                        else { 
    SetPlayerHealth(playeridhealth 25.0); } 
                    } 
                    
    napitok ""
                   } 
                 else if(
    listitem == 2
                { 
                    if(
    PlayerInfo[playerid][pAge] < 16
                    { 
                        
    SendClientMessage(playeridCOLOR_WHITE": ,       16 !"); 
                        return 
    1
                    } 
                    
    SetPlayerSpecialAction(playeridSPECIAL_ACTION_DRINK_BEER); 
                    
    GivePlayerMoney(playerid, - 25); 
                    
    PlayerDrunk[playerid] += 1
                    if(
    PlayerDrunk[playerid] >= 7) { GameTextForPlayer(playerid"~w~You are~n~~p~Drunk"35001); } 
                    if(
    GetPlayerHealth(playeridhealth) < 100
                    { 
                        if(
    PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp PlayerInfo[playerid][pAlcoholPerk]; hp += 25SetPlayerHealth(playeridhealth hp); } 
                        else { 
    SetPlayerHealth(playeridhealth 25.0); } 
                    } 
                    
    napitok ""
                } 
                 else if(
    listitem == 3
                { 
                    if(
    PlayerInfo[playerid][pAge] < 18
                    { 
                        
    SendClientMessage(playeridCOLOR_WHITE": ,       18 !"); 
                        return 
    1
                    } 
                    
    SetPlayerSpecialAction(playeridSPECIAL_ACTION_DRINK_WINE); 
                    
    GivePlayerMoney(playerid, - 10); 
                    
    PlayerDrunk[playerid] += 5
                    if(
    PlayerDrunk[playerid] >= 6) { GameTextForPlayer(playerid"~w~You are~n~~p~Drunk"35001); } 
                    if(
    GetPlayerHealth(playeridhealth) < 100
                    { 
                        if(
    PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp PlayerInfo[playerid][pAlcoholPerk]; hp += 27SetPlayerHealth(playeridhealth hp); } 
                        else { 
    SetPlayerHealth(playeridhealth 27.0); } 
                    } 
                    
    napitok ""
                } 
                 else if(
    listitem == 4
                { 
                    
    SetPlayerSpecialAction(playeridSPECIAL_ACTION_DRINK_SPRUNK); 
                    
    GivePlayerMoney(playerid, - 2); 
                    if(
    GetPlayerHealth(playeridhealth) < 100
                    { 
                        if(
    PlayerInfo[playerid][pAlcoholPerk] > 0) { new hp PlayerInfo[playerid][pAlcoholPerk]; hp += 5SetPlayerHealth(playeridhealth hp); } 
                        else { 
    SetPlayerHealth(playeridhealth 5.0); } 
                    } 
                    
    napitok ""
                } 
                  else if(
    listitem == 5
                { 
                    
    SetPlayerSpecialAction(playeridSPECIAL_ACTION_DRINK_SPRUNK); 
                    
    GivePlayerMoney(playerid, - 2); 
                    if(
    GetPlayerHealth(playeridhealth) < 100
                    { 
                        if(
    PlayerInfo[playerid][pAlcoholPerk] > 0) { new hp PlayerInfo[playerid][pAlcoholPerk]; hp += 5SetPlayerHealth(playeridhealth hp); } 
                        else { 
    SetPlayerHealth(playeridhealth 2.5); } 
                    } 
                    
    napitok ""
                } 
                 else if(
    listitem == 6
                { 
                    
    SetPlayerSpecialAction(playeridSPECIAL_ACTION_DRINK_SPRUNK); 
                    
    GivePlayerMoney(playerid, - 2); 
                    if(
    GetPlayerHealth(playeridhealth) < 100
                    { 
                        if(
    PlayerInfo[playerid][pAlcoholPerk] > 0) { new hp PlayerInfo[playerid][pAlcoholPerk]; hp += 5SetPlayerHealth(playeridhealth hp); } 
                        else { 
    SetPlayerHealth(playeridhealth 1.5); } 
                    } 
                    
    napitok ""
                } 
                else 
                { 
                    
    SendClientMessage(playeridCOLOR_WHITE": ,       ."); 
                    return 
    1
                } 
                new 
    sendername[MAX_PLAYER_NAME]; 
                
    GetPlayerName(playeridsendernamesizeof(sendername)); 
                
    format(stringsizeof(string), "* %s  %s."sendername ,napitok); 
                
    ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); 
                
    ApplyAnimation(playerid,"BAR","dnk_stndF_loop",4.1,0,0,0,0,0); 
            } 
            else 
            { 
                
    SendClientMessage(playeridCOLOR_GREY"    !"); 
                return 
    1
            } 
    :
    Skype:fs.lincor
    ICQ:50457517
  2. 2 c MacDac :

    Elantra (20.01.2012), Galeev (29.03.2012)

  3. #2

      IncoGnitO

    :
    :11.11.2010
    :251
    :22 [+/-] 
  4. #3

      Alex_Bacardi

    :
    :20.11.2011
    :Russia, Tver..
    :90
    :6 [+/-] 
    :)
  5. #4

      erw

    :
    :20.09.2011
    :478
    :93 [+/-] 
    ? ?
  6. #5

      Alex_Bacardi

    :
    :20.11.2011
    :Russia, Tver..
    :90
    :6 [+/-] 
    .. xD
  7. #6

      Jack_Slaiter

    :
    :17.06.2011
    :257
    :27 [+/-] 
  8. #7


    :
    :15.10.2011
    :164
    :12 [+/-] 
    , /drink ! ?
  9. #8

      Smouke

    :
    :14.01.2012
    :69
    :14 [+/-] 
    :)
  10. #9

      PrO_SpArK

    :
    :21.07.2011
    :6
    :3 [+/-] 
    :

    forward IsAtBar(playerid);

    HTML:
    public IsAtBar(playerid)
     {
     if(IsPlayerConnected(playerid))
     {
     if(PlayerToPoint(4.0,playerid,495.7801,-76.0305,998.7578) || PlayerToPoint(4.0,playerid,499.9654,-20.2515,1000.6797))
     {
     return 1;
     }
     else if(PlayerToPoint(4.0,playerid,1215.9480,-13.3519,1000.9219) || PlayerToPoint(10.0,playerid,-2658.9749,1407.4136,906.2734)|| PlayerToPoint(10.0,playerid,-224.7809,1404.6255,27.7734))
     {
     return 1;
     }
     }
     return 0;
     }
    !


    :
    HTML:
    if(strcmp(cmd, "/drink", true) == 0)  
        {  
            if(IsPlayerConnected(playerid))  
            {  
    			if(IsAtBar(playerid))
    	        {
    				if(IsAtBar(playerid))  
    				{  
    					ShowPlayerDialog(playerid,384,DIALOG_STYLE_LIST,""," $6\n $10\n $25\n $10\n $2\n $2\n $1","","");  
    				}  
    				else if(PlayerDrunk[playerid] < 10)  
    				{  
    					GetPlayerName(playerid, sendername, sizeof(sendername));  
    					SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);  
    					format(string, sizeof(string), "* %s  -.", sendername);  
    					ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);  
    					ApplyAnimation(playerid,"BAR","dnk_stndF_loop",4.1,0,0,0,0,0);  
    					new Float:health;  
    					if(GetPlayerHealth(playerid, health) < 100)  
    					{  
    						SetPlayerHealth(playerid, health + 8.0);  
    					}  
    				}  
    				else  
    				{  
    					SendClientMessage(playerid, COLOR_GREY, "        .");  
    					return 1;  
    				} 
    			}
    			else
    	        {
    	            SendClientMessage(playerid, COLOR_GREY, "    !");
    	            return 1;
    	        }
    		}	
    		return 1;
    	}
    PrO_SpArK; 17.01.2012 17:26.
  11. #10

      _Ze

    :
    :18.12.2011
    :367
    :31 [+/-] 
    )

, : 0

.
(, , , , , ), , .
!
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