05.05.2012, 16:11
How i can make the location work very good ?
pawn Код:
new Float:brifcase[MAX_BRIF][3] =
{
{1499.01, -1803.68, 32.42}, // 1
{1496.97, -1537.96, 66.59},
{1406.25, -1304.29, 7.95},
{1406.83, -1208.54, 186.41},
{1175.11, -1181.85, 90.49}, // 5
{992.12, -1195.99, 53.99},
{594.25, -1274.08, 63.38},
{594.25, -1274.08, 63.38},
{422.92, -1296.91, 14.54},
{340.92, -1333.57, 13.60}, // 10
{378.12, -1883.43, 1.54},
{877.00, -1808.90, 30.98},
{1225.56, -1768.63, 52.98},
{1827.87, -1993.33, 12.94},
{1923.00, -2200.56, 25.93}, // 15
{2058.63, -1992.89, 38.92},
{1094.28, -2036.90, 81.79},
{1872.32, -1683.74, 57.99},
{2239.72, -1819.42, 12.95},
{2737.34, -1759.99, 43.91}, // 20
{2952.14, -1877.25, 4.93},
{2613.15, -2205.23, -1.00},
{2540.03, -2426.98, 29.08} // 23
};
pawn Код:
if(pickupid == brifcases){
new string[128];
new playername[24];
GetPlayerName(playerid,playername,24);
format(string,sizeof(string),"%s(%d) Has Founded The Brifcase At Location: %s",playername,playerid);
format(string,sizeof(string),"%s(%d) Has Get %d Score And $%d From Brifcase",playername,playerid,brifscore[random(sizeof(brifscore))], brifcash[random(sizeof(brifcash))]);
SendClientMessageToAll(COLOR_GREEN,string);
HasGotTheBrif[playerid] =1;
SetTimer("ReSpawnBrif",20000,0);
}