[FilterScript] Apiary | Final Version
#1

Hi All!
This is final verion of the apiary.

Language: Russian

Video: [ame]http://www.youtube.com/watch?v=2DTwRmBlxYQ[/ame]

Code:
PHP код:
#include <a_samp>
#define COLOR_LEV             0xFF0000AA
new PasekaVhodPickup,PasekaVihodPickup;
new 
Pas[6] = {5, ...}, Text3Dlabel[6], bool:UseMed[MAX_PLAYERS], string[128];
new 
Float:MedPos[6][3] = {{662.78546, -517.4298116.42404},{663.04230, -508.2971516.42404},{663.05682, -498.9408916.42404},{651.94928, -498.8216616.42404},{651.72638, -508.1888116.42404},{651.35388, -517.4827316.42404}};
new 
bool:PlayerOnJobLev[MAX_PLAYERS];
new 
AllPlayerMedos[MAX_PLAYERS];
new 
PlayerSavedSkinPas[MAX_PLAYERS];
new 
Text:PasekaTD[2];
new 
L_Honey[20], L_Money[20];
public 
OnFilterScriptInit()
{
    
SetTimer("MedsUpdate" 5000true);
    
SetTimer("TextDrawUpdate"1000true);
    
    for(new 
0x0!= sizeof(MedPos); i++){label[i] = Create3DTextLabel("{00FF00}Мёд в улье {FF0000}5 литров\nЧтобы собрать используйте {FFA500}Alt"0xFFFFFFMedPos[i][0], MedPos[i][1], MedPos[i][2], 10.00);}
    
Create3DTextLabel("{1e90ff}Склад {FFA500}((/take))",0xFF0000FF,618.8842,-519.0675,16.8260,20.0,0,0);
    
Create3DTextLabel("{1e90ff}Пасечник {FFA500}((/job))",0xFF0000FF,615.5042,-516.3146,16.8641,10.0,0,0);
    
    
CreatePickup(127523615.5042,-516.3146,16.86410);
    
PasekaVhodPickup CreatePickup(1913323610.8114,-507.6549,16.3359, -1);
    
PasekaVihodPickup CreatePickup(1913323613.7269,-507.2384,16.8260, -1);
    
CreateObject(10828628.85406, -523.7710027.24362,   0.000000.000000.00000);
    
CreateObject(10828612.28168, -507.4957327.24360,   0.000000.0000090.00000);
    
CreateObject(10828672.68457, -507.4417727.24360,   0.000000.0000090.00000);
    
CreateObject(10828656.45160, -491.3171427.24362,   0.000000.000000.00000);
    
CreateObject(10828628.53418, -491.1610727.24362,   0.000000.000000.00000);
    
CreateObject(10828656.26654, -523.8043827.24362,   0.000000.000000.00000);
    
CreateObject(19381617.81329, -518.1914115.74010,   0.0000090.000000.00000);
    
CreateObject(19381617.80511, -508.6156315.74010,   0.0000090.000000.00000);
    
CreateObject(19381617.79370, -499.0170915.74010,   0.0000090.000000.00000);
    
CreateObject(19381617.79907, -496.7200315.74010,   0.0000090.000000.00000);
    
CreateObject(19381628.29681, -517.9390915.74010,   0.0000090.000000.00000);
    
CreateObject(19381628.28156, -508.3371015.74010,   0.0000090.000000.00000);
    
CreateObject(19381628.26788, -498.7166415.74010,   0.0000090.000000.00000);
    
CreateObject(19381628.24536, -496.8938915.74010,   0.0000090.000000.00000);
    
CreateObject(19381638.65460, -496.8604115.74010,   0.0000090.000000.00000);
    
CreateObject(19381638.62769, -515.9353615.74010,   0.0000090.000000.00000);
    
CreateObject(19381638.64447, -506.3667015.74010,   0.0000090.000000.00000);
    
CreateObject(19381638.62860, -518.0614615.74010,   0.0000090.000000.00000);
    
CreateObject(19381649.08502, -497.1270115.74010,   0.0000090.000000.00000);
    
CreateObject(19381649.12207, -506.7149015.74010,   0.0000090.000000.00000);
    
CreateObject(19381649.07111, -516.3206815.74010,   0.0000090.000000.00000);
    
CreateObject(19381648.97821, -518.5340015.74010,   0.0000090.000000.00000);
    
CreateObject(19381659.39252, -518.3740215.74010,   0.0000090.000000.00000);
    
CreateObject(19381666.61194, -518.4456815.74010,   0.0000090.000000.00000);
    
CreateObject(19381666.82617, -508.9951815.74010,   0.0000090.000000.00000);
    
CreateObject(19381657.47180, -508.8859315.74010,   0.0000090.000000.00000);
    
CreateObject(19381666.49048, -499.4998815.74010,   0.0000090.000000.00000);
    
CreateObject(19381666.51483, -496.8861715.74010,   0.0000090.000000.00000);
    
CreateObject(19381658.66425, -499.3462815.74010,   0.0000090.000000.00000);
    
CreateObject(19381658.74158, -496.9740315.74010,   0.0000090.000000.00000);
    
CreateObject(2991619.16003, -515.0269817.35617,   0.000000.000000.00000);
    
CreateObject(2991619.17712, -517.0230116.22459,   0.000000.000000.00000);
    
CreateObject(3626615.52899, -518.4295017.07856,   0.000000.0000090.00000);
    
CreateObject(2991619.16840, -515.0285616.22459,   0.000000.000000.00000);
    
CreateObject(2991619.15839, -513.0914916.22459,   0.000000.000000.00000);
    
CreateObject(2991615.16998, -513.0910616.22459,   0.000000.000000.00000);
    
CreateObject(2991616.65802, -513.1000417.35617,   0.000000.000000.00000);
    
CreateObject(1507613.31787, -508.1430115.69126,   0.000000.0000090.00000);
    
CreateObject(1507611.24969, -508.4664915.38825,   0.000000.0000090.00000);
    
CreateObject(869669.62610, -520.9653916.02450,   0.000000.00000, -10.50000);
    
CreateObject(869669.80096, -518.2197916.02450,   0.000000.00000, -10.50000);
    
CreateObject(869669.77521, -515.4381116.02450,   0.000000.00000, -10.50000);
    
CreateObject(869669.79498, -512.6097416.02450,   0.000000.00000, -10.50000);
    
CreateObject(869669.72504, -509.8251316.02450,   0.000000.00000, -10.50000);
    
CreateObject(869669.87292, -507.3884916.02450,   0.000000.00000, -10.50000);
    
CreateObject(869669.94293, -504.5437016.02450,   0.000000.00000, -10.50000);
    
CreateObject(869670.00098, -501.8417716.02450,   0.000000.00000, -10.50000);
    
CreateObject(869669.96967, -499.0532216.02450,   0.000000.00000, -10.50000);
    
CreateObject(869669.90900, -496.7037416.02450,   0.000000.00000, -10.50000);
    
CreateObject(869669.89935, -493.8967616.02450,   0.000000.00000, -10.50000);
    
CreateObject(869665.94312, -521.1507616.02450,   0.000000.00000, -10.50000);
    
CreateObject(869662.26959, -521.1271416.02450,   0.000000.00000, -10.50000);
    
CreateObject(869668.07416, -518.0218516.02450,   0.000000.00000, -10.50000);
    
CreateObject(869668.11066, -514.6616816.02450,   0.000000.00000, -10.50000);
    
CreateObject(869666.71613, -512.4416516.02450,   0.000000.00000, -10.50000);
    
CreateObject(869668.01208, -509.7897616.02450,   0.000000.00000, -10.50000);
    
CreateObject(869667.93884, -506.7750516.02450,   0.000000.00000, -10.50000);
    
CreateObject(869667.42651, -502.8607816.02450,   0.000000.00000, -10.50000);
    
CreateObject(869668.06842, -498.8361216.02450,   0.000000.00000, -10.50000);
    
CreateObject(869669.59613, -500.0334516.02450,   0.000000.00000, -10.50000);
    
CreateObject(869666.74799, -495.2824416.02450,   0.000000.00000, -10.50000);
    
CreateObject(869666.70990, -493.9177216.02450,   0.000000.00000, -10.50000);
    
CreateObject(869659.01013, -521.2178316.02450,   0.000000.00000, -10.50000);
    
CreateObject(869655.74469, -521.2159416.02450,   0.000000.00000, -10.50000);
    
CreateObject(869652.46515, -521.1543616.02450,   0.000000.00000, -10.50000);
    
CreateObject(869649.52448, -521.1103516.02450,   0.000000.00000, -10.50000);
    
CreateObject(869663.39850, -494.2530516.02450,   0.000000.00000, -10.50000);
    
CreateObject(869660.21564, -494.1002816.02450,   0.000000.00000, -10.50000);
    
CreateObject(869656.88202, -494.0628116.02450,   0.000000.00000, -10.50000);
    
CreateObject(869653.29547, -494.2075216.02450,   0.000000.00000, -10.50000);
    
CreateObject(869649.45081, -494.1325716.02450,   0.000000.00000, -10.50000);
    
CreateObject(869663.36426, -503.1247616.02450,   0.000000.00000, -10.50000);
    
CreateObject(869660.03986, -503.4364316.02450,   0.000000.00000, -10.50000);
    
CreateObject(869656.48370, -503.1463916.02450,   0.000000.00000, -10.50000);
    
CreateObject(869653.00073, -503.2871416.02450,   0.000000.00000, -10.50000);
    
CreateObject(869650.19452, -503.1435916.02450,   0.000000.00000, -10.50000);
    
CreateObject(869663.53217, -512.6617416.02450,   0.000000.00000, -10.50000);
    
CreateObject(869660.25177, -512.6984916.02450,   0.000000.00000, -10.50000);
    
CreateObject(869656.81647, -512.6271416.02450,   0.000000.00000, -10.50000);
    
CreateObject(869653.45764, -512.4808316.02450,   0.000000.00000, -10.50000);
    
CreateObject(869649.88586, -512.6124316.02450,   0.000000.00000, -10.50000);
    
CreateObject(1446647.59137, -492.9256616.51691,   0.000000.00000, -90.00000);
    
CreateObject(1446649.78583, -496.6633016.51690,   0.000000.000000.00000);
    
CreateObject(1446654.43903, -496.6606816.51690,   0.000000.000000.00000);
    
CreateObject(1446659.09052, -496.6653416.51690,   0.000000.000000.00000);
    
CreateObject(1446663.74017, -496.7024516.51690,   0.000000.000000.00000);
    
CreateObject(1446666.09296, -499.0004616.51691,   0.000000.00000, -90.00000);
    
CreateObject(1446663.75897, -501.3364016.51690,   0.000000.00000, -180.00000);
    
CreateObject(1446659.11548, -501.3163816.51690,   0.000000.00000, -180.00000);
    
CreateObject(1446654.50226, -501.3104616.51690,   0.000000.00000, -180.00000);
    
CreateObject(1446649.90173, -501.2827816.51690,   0.000000.00000, -180.00000);
    
CreateObject(1446647.63654, -503.5510616.51691,   0.000000.00000, -90.00000);
    
CreateObject(1446649.92493, -505.8980416.51690,   0.000000.000000.00000);
    
CreateObject(1446654.52789, -505.9071416.51690,   0.000000.000000.00000);
    
CreateObject(1446659.17059, -505.9231616.51690,   0.000000.000000.00000);
    
CreateObject(1446663.81256, -505.9591416.51690,   0.000000.000000.00000);
    
CreateObject(1446666.09027, -508.2644016.51691,   0.000000.00000, -90.00000);
    
CreateObject(1446663.77869, -510.4905116.51690,   0.000000.00000, -180.00000);
    
CreateObject(1446659.14185, -510.4820916.51690,   0.000000.00000, -180.00000);
    
CreateObject(1446654.48798, -510.4593816.51690,   0.000000.00000, -180.00000);
    
CreateObject(1446649.86743, -510.4447916.51690,   0.000000.00000, -180.00000);
    
CreateObject(1446647.59229, -512.7070316.51691,   0.000000.00000, -90.00000);
    
CreateObject(1446649.87909, -515.0419916.51690,   0.000000.000000.00000);
    
CreateObject(1446654.51819, -515.0502916.51690,   0.000000.000000.00000);
    
CreateObject(1446659.13885, -515.0462016.51690,   0.000000.000000.00000);
    
CreateObject(1446663.78198, -515.0523116.51690,   0.000000.000000.00000);
    
CreateObject(1446666.02179, -517.3656616.51691,   0.000000.00000, -90.00000);
    
CreateObject(1446663.70178, -519.7108816.51690,   0.000000.00000, -180.00000);
    
CreateObject(1446659.08221, -519.7017216.51690,   0.000000.00000, -180.00000);
    
CreateObject(1446654.45477, -519.7052016.51690,   0.000000.00000, -180.00000);
    
CreateObject(1446649.81207, -519.6848816.51690,   0.000000.00000, -180.00000);
    
CreateObject(1446647.51801, -521.9574616.51691,   0.000000.00000, -90.00000);
    
CreateObject(2991610.25085, -504.3378315.71450,   0.000000.0000090.00000);
    
CreateObject(1451662.78546, -517.4298116.42404,   0.000000.00000, -89.39999);
    
CreateObject(1451663.04230, -508.2971516.42404,   0.000000.00000, -89.39999);
    
CreateObject(1451663.05682, -498.9408916.42404,   0.000000.00000, -89.39999);
    
CreateObject(1451651.94928, -498.8216616.42404,   0.000000.00000, -89.39999);
    
CreateObject(1451651.72638, -508.1888116.42404,   0.000000.00000, -89.39999);
    
CreateObject(1451651.35388, -517.4827316.42404,   0.000000.00000, -89.39999);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
UseMed[playerid] = false;
    
PlayerOnJobLev[playerid] = false;
    
AllPlayerMedos[playerid] = false;
    
PasekaTD[0] = TextDrawCreate(485.000000130.533126"_");
    
PasekaTD[1] = TextDrawCreate(485.000000140.733126"_");
    for(new 
itd 0itd 2itd++)
    {
        
TextDrawLetterSize(PasekaTD[itd], 0.21.300000);
        
TextDrawAlignment(PasekaTD[itd], 1);
        
TextDrawColor(PasekaTD[itd], 0x33AA33AA);
        
TextDrawSetShadow(PasekaTD[itd], 1);
        
TextDrawSetOutline(PasekaTD[itd], 0);
        
TextDrawFont(PasekaTD[itd], 2);
        
TextDrawSetProportional(PasekaTD[itd], 1);
    }
    
    
RemoveBuildingForPlayer(playerid13244642.2031, -508.078119.08590.25);
    
RemoveBuildingForPlayer(playerid3335669.4844, -675.039115.26560.25);
    
RemoveBuildingForPlayer(playerid1440661.0781, -624.007815.81250.25);
    
RemoveBuildingForPlayer(playerid1345665.2266, -624.375016.06250.25);
    
RemoveBuildingForPlayer(playerid1345668.2109, -624.445316.06250.25);
    
RemoveBuildingForPlayer(playerid1308691.7031, -609.914115.67970.25);
    
RemoveBuildingForPlayer(playerid1308671.6250, -590.304715.55470.25);
    
RemoveBuildingForPlayer(playerid1308671.7813, -539.914115.66410.25);
    
RemoveBuildingForPlayer(playerid1308624.3359, -539.718815.49220.25);
    
RemoveBuildingForPlayer(playerid1294614.9063, -521.789119.85160.25);
    
RemoveBuildingForPlayer(playerid1294641.8047, -522.132819.85160.25);
    
RemoveBuildingForPlayer(playerid13137646.1641, -527.898428.07030.25);
    
RemoveBuildingForPlayer(playerid1308652.0078, -520.320315.66410.25);
    
RemoveBuildingForPlayer(playerid1503638.8359, -517.476615.54690.25);
    
RemoveBuildingForPlayer(playerid1688649.5547, -516.742221.17970.25);
    
RemoveBuildingForPlayer(playerid1689660.4453, -515.406323.00000.25);
    
RemoveBuildingForPlayer(playerid1691643.6484, -515.960920.58590.25);
    
RemoveBuildingForPlayer(playerid12862642.2031, -508.078119.08590.25);
    
RemoveBuildingForPlayer(playerid1687614.5234, -511.617220.12500.25);
    
RemoveBuildingForPlayer(playerid1688667.4375, -506.789122.83590.25);
    
RemoveBuildingForPlayer(playerid1691629.0391, -509.476619.70310.25);
    
RemoveBuildingForPlayer(playerid1440642.7188, -511.054715.82030.25);
    
RemoveBuildingForPlayer(playerid1308711.8359, -539.460915.64840.25);
    
RemoveBuildingForPlayer(playerid1308711.8750, -516.265615.61720.25);
    
RemoveBuildingForPlayer(playerid1308731.7891, -520.257815.50780.25);
    
RemoveBuildingForPlayer(playerid1308611.4766, -504.687515.64840.25);
    
RemoveBuildingForPlayer(playerid1690614.4688, -499.914120.77340.25);
    
RemoveBuildingForPlayer(playerid1345652.7422, -496.515616.04690.25);
    
RemoveBuildingForPlayer(playerid1345652.8125, -499.320316.04690.25);
    
RemoveBuildingForPlayer(playerid1438660.5391, -496.882815.30470.25);
    
RemoveBuildingForPlayer(playerid1308652.0781, -494.882815.64840.25);
    
RemoveBuildingForPlayer(playerid1294610.1016, -494.421919.85160.25);
    
RemoveBuildingForPlayer(playerid1308691.6484, -500.210915.68750.25);
    
RemoveBuildingForPlayer(playerid1294670.9766, -493.445319.85160.25);
    
RemoveBuildingForPlayer(playerid1498671.6641, -497.640615.32810.25);
    
RemoveBuildingForPlayer(playerid1308654.7266, -475.304715.50000.25);
    
RemoveBuildingForPlayer(playerid1308711.6094, -475.257815.64840.25);
    
RemoveBuildingForPlayer(playerid1332656.0000, -439.273416.28130.25);
    
RemoveBuildingForPlayer(playerid1335659.2266, -439.390616.37500.25);
    
RemoveBuildingForPlayer(playerid1308651.6484, -437.757815.57810.25);
    
RemoveBuildingForPlayer(playerid1308631.9922, -405.476615.50780.25);
    
RemoveBuildingForPlayer(playerid1438808.5625, -612.953115.32030.25);
    
RemoveBuildingForPlayer(playerid1438806.7500, -612.601615.30470.25);
    
RemoveBuildingForPlayer(playerid1308801.1641, -585.195315.47660.25);
    
RemoveBuildingForPlayer(playerid1438835.8672, -601.031315.32030.25);
    
RemoveBuildingForPlayer(playerid1438867.9453, -589.054716.92190.25);
    
RemoveBuildingForPlayer(playerid1308841.5078, -576.835915.57810.25);
    
RemoveBuildingForPlayer(playerid1308873.3125, -572.125017.60160.25);
    
RemoveBuildingForPlayer(playerid1440820.2422, -566.031315.83590.25);
    
RemoveBuildingForPlayer(playerid1308781.9063, -539.984415.59380.25);
    
RemoveBuildingForPlayer(playerid1308822.7422, -539.546915.60160.25);
    
RemoveBuildingForPlayer(playerid13452915.1641, -525.578140.17970.25);
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    
PlayerOnJobLev[playerid] = false;
    
UseMed[playerid] = false;
    
AllPlayerMedos[playerid] = false;
    return 
1;
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
newkeys KEY_FIRE) if(PlayerToPoint(50.0,playerid,637.0692,-508.0999,16.8260))ApplyAnimation(playerid,"MISC","plyr_shkhead",4.0,0,0,0,0,0,1);
    if(
newkeys KEY_JUMP) if(PlayerToPoint(50.0,playerid,637.0692,-508.0999,16.8260))ApplyAnimation(playerid,"MISC","plyr_shkhead",4.0,0,0,0,0,0,1);
    if (
newkeys KEY_WALK)
    {
        if(
PlayerOnJobLev[playerid])
        {
            if(
UseMed[playerid]) return SendClientMessage(playerid,-1"{00FF00}У вас уже есть мёд. Несите его на склад");
            for(new 
0x0!= sizeof(MedPos); i++)
            {
                if(
IsPlayerInRangeOfPoint(playerid,2.0,MedPos[i][0], MedPos[i][1], MedPos[i][2]))
                {
                    
ApplyAnimation(playerid"BOMBER""BOM_Plant"4.000000);
                    switch(
random(3))
                    {
                        case 
0UseMed[playerid] = !UseMed[playerid], Pas[i]--, SendClientMessage(playerid,-1" {FFA500}Вы собрали мёд. Отнесите его на склад"),SetPlayerAttachedObject(playerid,11487140.3333910.0000000.042249358.219909268.014739170.0329742.0038671.7648111.579773);
                        case 
1UseMed[playerid] = !UseMed[playerid], Pas[i]--, SendClientMessage(playerid,-1" {FFA500}Вы собрали мёд. Отнесите его на склад"),SetPlayerAttachedObject(playerid,11487140.3333910.0000000.042249358.219909268.014739170.0329742.0038671.7648111.579773);
                        case 
2SendClientMessage(playerid,-1" {FFA500}Неудача: Вас укусила пчела.");
                    }
                    if(
Pas[i] == 0) return SendClientMessage(playerid,-1"{FFA500}В этом улье нет{00FF00}мёда.");
                    
format(string,sizeof(string),"{00FF00}Мёд в улье {FF0000}%d литров\nЧтобы сбрать используйте {FFA500}Alt",Pas[i]);
                    
Update3DTextLabelText(label[i], 0xFFFFFFFFstring);
                    break;
                }
            }
        }
    }
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext,"/resign",true)==0)
    {
        if(!
IsPlayerInRangeOfPoint(playerid,5.0,615.5042,-516.3146,16.8641)) return SendClientMessage(playerid,0xFF444499,"Подойдите к работодателю.");
        if(
PlayerOnJobLev[playerid] == true)
        {
            
PlayerOnJobLev[playerid] = false,RemovePlayerAttachedObject(playerid1),SendClientMessage(playerid,-1"{FFA500}Вы закончили рабочий день.");
            new 
money AllPlayerMedos[playerid]*2;
            
GivePlayerMoney(playeridmoney),AllPlayerMedos[playerid] = 0,SetPlayerSkin(playerid,PlayerSavedSkinPas[playerid]);
            for(new 
isizeof(PasekaTD); i++) TextDrawHideForPlayer(playerid,PasekaTD[i]);
        }
    }
    if(
strcmp(cmdtext,"/job",true)==0)
    {
        if(!
IsPlayerInRangeOfPoint(playerid,5.0,615.5042,-516.3146,16.8641)) return SendClientMessage(playerid,0xFF444499,"Вы не у работодателя.");
        if(!
PlayerOnJobLev[playerid])PlayerOnJobLev[playerid] = true,SendClientMessage(playerid,-1"{FFA500}Вы начали рабочий день. Что бы закончить (({00FF00}/resign{FFA500}))"),PlayerSavedSkinPas[playerid] = GetPlayerSkin(playerid),SetPlayerSkin(playerid27);
    }
    if(
strcmp(cmdtext,"/take",true)==0)
    {
        if(
PlayerOnJobLev[playerid])
        {
            if(!
IsPlayerInRangeOfPoint(playerid,5.0,618.8842,-519.0675,16.8260)) return SendClientMessage(playerid,0xFF444499,"Несите мёд на склад.");
            if(!
UseMed[playerid]) return SendClientMessage(playerid,-1"{FFA500}У вас нет {00FF00}мёда");
            
UseMed[playerid] = !UseMed[playerid],RemovePlayerAttachedObject(playerid1),ApplyAnimation(playerid"BOMBER""BOM_Plant"4.000000),AllPlayerMedos[playerid] = AllPlayerMedos[playerid] + 1;
        }
    }
    if(
strcmp(cmdtext,"/тп",true)==0)return SetPlayerPos(playerid,615.5042,-516.3146,16.8641);
    return 
true;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == PasekaVhodPickup)SetPlayerPos(playerid,615.9662,-507.3113,16.8260);
    if(
pickupid == PasekaVihodPickup)
    {
        if(
PlayerOnJobLev[playerid] == true)SendClientMessage(playerid,-1"{FFA500}Сначала {00FF00}заверши рабочий день.");
        else 
SetPlayerPos(playerid,608.2213,-507.7369,16.3359);
    }
    return 
1;
}
forward TextDrawUpdate();
public 
TextDrawUpdate()
{
    for(new 
playerid 0playerid MAX_PLAYERSplayerid++)
     {
        if(
PlayerOnJobLev[playerid] == true)
        {
            
format(L_Honeysizeof(L_Honey), "HONEY: %d L"AllPlayerMedos[playerid]);
            
format(L_Moneysizeof(L_Money), "MONEY: %d $"AllPlayerMedos[playerid]*2);
            for(new 
isizeof(PasekaTD); i++) TextDrawHideForPlayer(playerid,PasekaTD[i]);
            
TextDrawSetString(PasekaTD[0],L_Honey);
            
TextDrawSetString(PasekaTD[1],L_Money);
            for(new 
isizeof(PasekaTD); i++) TextDrawShowForPlayer(playerid,PasekaTD[i]);
        }
    }
    return 
true;
}
forward MedsUpdate();
public 
MedsUpdate()
{
    for(new 
0x0!= sizeof(MedPos); i++)
    {
        if(
Pas[i] == 5) continue;Pas[i]++,format(string,sizeof(string),"{00FF00}Мёд в улье {FF0000}%d\nЧтобы собрать используйте {FFA500}Alt",Pas[i]),Update3DTextLabelText(label[i], 0xFFFFFFFFstring);
    }
}
stock PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z)
{
    if(
IsPlayerConnected(playerid))
    {
        new 
Float:oldposxFloat:oldposyFloat:oldposz;
        new 
Float:tempposxFloat:tempposyFloat:tempposz;
        
GetPlayerPos(playeridoldposxoldposyoldposz);
        
tempposx = (oldposx -x),tempposy = (oldposy -y),tempposz = (oldposz -z);
        if (((
tempposx radi) && (tempposx > -radi)) && ((tempposy radi) && (tempposy > -radi)) && ((tempposz radi) && (tempposz > -radi)))return true;
    }
    return 
false;

Autor: I ((Lev_Popov))
Reply
#2

Looks nice! but too bad its in russia
Reply
#3

Looks Good x)
Reply
#4

Pretty cool - release bro - Keep it up
Reply
#5

Quote:
Originally Posted by WardenCS
Посмотреть сообщение
Looks nice! but too bad its in russia
Translate - https://translate.******.com/#ru/en/
I'm Russian

Quote:
Originally Posted by AviPeker
Посмотреть сообщение
Looks Good x)
Thank you

Quote:
Originally Posted by Ciandlah
Посмотреть сообщение
Pretty cool - release bro - Keep it up
Thank you. I have a better work xD
Reply
#6

Good work bro. Keep it up
Reply
#7

WardenCS, u can easy translate it.
Reply


Forum Jump:


Users browsing this thread: