Range of point help
#8

PHP код:
new Float:RandomMoneyBoxVzimane[][3] =
{
    {
2227.741516.4310.82},
    {-
724.441402.8113.07},
    {-
1940.611086.1453.09},
    {-
2344.37, -459.5980.01},
    {-
1674.65, -543.0314.14},
    {-
2415.30, -2142.0852.37},
    {-
1527.47, -2291.62, -5.63},
    {-
1111.05, -2470.0476.59},
    {-
288.23, -2163.6728.63},
    {-
376.27, -2583.97138.17},
    {
378.32, -1885.702.05},
    {
1120.86, -2065.8274.42},
    {
1583.25, -2286.5513.53},
    {
2718.67, -2385.1613.63},
    {
2744.79, -1944.5517.32},
    {
2041.71, -1715.5813.54},
    {
2771.79, -1354.5150.00},
    {
1102.96, -1092.8928.46},
    {
727.73, -1276.1313.64},
    {
755.31, -591.3118.01},
    {
360.91, -110.021.22},
    {-
557.35, -541.2825.52},
    {-
273.04, -955.9838.30},
    {
1242.36327.1719.75},
    {
2791.642225.6414.66},
    {-
1955.01, -986.9735.89},
    {-
2108.89, -2376.9730.62},
    {
1853.352045.5410.85},
    {
2478.85, -1437.2225.49},
    {-
2241.502462.934.98},
    {
703.36267.7821.44},
    {-
599.09, -1080.9523.66},
    {-
2677.681503.982.07},
    {
2582.18, -2115.221.11},
    {-
1954.97, -986.2735.89},
    {
541.41830.33, -39.44},
    {-
2876.66292.776.96},
    {-
2192.162409.514.95},
    {
2615.91, -1730.396.24},
    {-
529.81, -991.2924.55},
    {-
1048.33, -1306.72128.50},
    {
1227.202584.6810.82},
    {
1016.481411.6310.82},
    {-
1593.62802.546.82},
    {-
2238.23, -2478.9631.19},
    {
917.432402.9210.82},
    {
1312.97, -1965.6029.46},
    {-
120.59, -1531.313.07},
    {-
2508.68, -53.1925.65},
    {-
2762.04105.186.99},
    {
1367.53194.5419.55},
    {-
2655.83, -102.703.99},
    {
2161.85, -102.762.75},
    {
2535.771342.5510.82},
    {-
2059.10890.8961.85},
    {
1188.14231.3819.56},
    {
1088.811073.7910.83},
    {
422.962539.4516.52},
    {-
227.492709.9162.98},
    {-
347.381581.2176.30},
    {-
208.081127.9319.74},
    {
33.241155.2119.69},
    {
1582.07, -2691.566.12},
    {
1715.25, -1912.0113.56},
    {
286.36, -1145.1580.91}
};
#define MAX_RANGE_PICKUP (2.0)
new money_box[][MAX_PLAYERS];
public 
OnPlayerSpawn(playerid) {
    for(new 
isizeof(RandomMoneyBoxVzimane); ji++) {
        
money_box[i][playerid]=1// Enable ALL money box for respaw player
    
}
    return 
1;
}
public 
OnPlayerUpdate(playerid) {
    for(new 
isizeof(RandomMoneyBoxVzimane); ji++) {
        if (
money_box[i][playerid] && IsPlayerInRangeOfPoint(playeridMAX_RANGE_PICKUPRandomMoneyBoxVzimane[i][0], RandomMoneyBoxVzimane[i][1], RandomMoneyBoxVzimane[i][2]))
        {
            
money_box[i][playerid]=0// Disable money box if pickuped
        
            
PlayerInfo[playerid][pKufar] = 1;
            
Kufar 1;
            
Moneybox 0;
            
format(string2sizeof(string2), "Moneybox: %s взе куфара!",PlayerName(playerid));
            
SendClientMessageToAll(COLOR_GREENstring2);
            
SendClientMessage(playerid,COLOR_GREEN,"Ти взе куфара сега трябва да го доставиш!");
            break;
        } 
     }
     

Reply


Messages In This Thread
Range of point help - by dundolina - 15.05.2015, 22:54
Re: Range of point help - by JaydenJason - 15.05.2015, 23:05
Re: Range of point help - by Abagail - 15.05.2015, 23:29
Re: Range of point help - by Luis- - 15.05.2015, 23:31
Re: Range of point help - by dundolina - 15.05.2015, 23:44
Re: Range of point help - by dundolina - 16.05.2015, 08:17
Re: Range of point help - by Smileys - 16.05.2015, 08:20
Re: Range of point help - by Logofero - 16.05.2015, 09:08
Re: Range of point help - by KeNTos - 16.05.2015, 13:46
Re: Range of point help - by Logofero - 16.05.2015, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)