Help + Reputation
#1

Hello Guys i Am Having These Coordinates Of Places With There Name See Below
Код:
// Makabos zones script // ALWAYS ADD NEW ZONES TO THE END (YOULL MESS UP ALL ROBBERIES)
new Float:zones[][zoneinfo] = {

	//{ "Los Santos",                     44.60, -2892.90,  -242.90,  2997.00,  -768.00,   900.00},
	//{ "Las Venturas",                  869.40,   596.30,  -242.90,  2997.00,  2993.80,   900.00},
	{ "Bone County",                  -480.50,   596.30,  -242.90,   869.40,  2993.80,   900.00},
	{ "Tierra Robada",               -2997.40,  1659.60,  -242.90,  -480.50,  2993.80,   900.00},
	{ "Tierra Robada",               -1213.90,   596.30,  -242.90,  -480.50,  1659.60,   900.00},
	//{ "San Fierro",                  -2997.40, -1115.50,  -242.90, -1213.90,  1659.60,   900.00},
	{ "San Fierro Bank",                  -1213.90,  -768.00,  -242.90,  2997.00,   596.30,   900.00},
	{ "Flint County",                -1213.90, -2892.90,  -242.90,    44.60,  -768.00,   900.00},
	{ "Whetstone",                   -2997.40, -2892.90,  -242.90, -1213.90, -1115.50,   900.00},

/*
	{ "South East San Fierro",    -2142.760253, -878.880371,  -242.90,  -1114.515747,  565.989746,   900.00},
	{ "South West San Fierro",    -3026.007568, -911.811584,  -242.90,  -2142.760253,  565.989746,   900.00},
	{ "North East San Fierro",    -2142.760253, 565.989746,  -242.90,  -1017.342895, 1703.200073,   900.00},
	{ "North West San Fierro",    -3012.637695, 565.989746,  -242.90,  -2142.760253, 1703.200073,   900.00},
*/
	{ "South East San Fierro",    -2142.760253, -878.880371,  -242.90,  -1114.515747,  565.989746,   900.00},
	{ "South West San Fierro",    -3026.007568, -911.811584,  -242.90,  -2142.760253,  565.989746,   900.00},
	{ "North East San Fierro",    -2142.760253, 565.989746,  -242.90,  -1017.342895, 1703.200073,   900.00},
	{ "North West San Fierro",    -3026.637695, 565.989746,  -242.90,  -2142.760253, 1703.200073,   900.00},

	{ "South West Las Venturas",    891.704833, 599.194580,  -242.90,  1867.500366, 1713.321655,   900.00},
	{ "South East Las Venturas",    1867.500366, 572.799011,  -242.90,  2999.672851, 1713.321655,   900.00},
	{ "North East Las Venturas",    1867.500366, 1713.321655,  -242.90,  2999.672851, 3013.981689,   900.00},
	{ "North West Las Venturas",    859.025695, 1713.321655,  -242.90,  1867.500366, 3013.981689,   900.00},

	{ "South West Los Santos",    40.333187, -2897.663574,  -242.90,  1589.717163,  -1519.467163,   900.00},
	{ "South East Los Santos",    1589.717163, -2898.994140,  -242.90,  3018.034179,  -1519.467163,   900.00},
	{ "North East Los Santos",    1589.717163, -1519.467163,  -242.90,  2999.151367,  -772.197265,   900.00},
	{ "North West Los Santos",    46.901493, -1519.467163,  -242.90,  1589.717163,  -775.018554,   900.00},


	{ "24-7",                -29.709478,  -187.740585,    1001.546875,  -16.147476,  -168.740814,   1007.546875},
	{ "24-7",                -11.007962,  -32.556049,    1001.546875,  10.050553,  -2.707101,   1007.546875},
	{ "24-7",                -37.295322,  -91.844329,    1001.546875,  -13.954078,  -74.674308,   1007.546875},
	{ "24-7",                -38.192775,  -140.438369,    1001.546875,  -14.915290,  -123.349166,   1007.546875},
	{ "24-7",                -34.982517,  -31.738464,    1001.546875,  -26.184551,  -2.708315,   1007.546875},
	{ "24-7",                -36.573310,  -57.992588,    1001.546875,  -17.267372,  -49.297176,   1007.546875},

	{ "Ammunation",          283.233734, -46.376720,    995.845336,  300.757812, -29.736858,   1006.307189},
	{ "Ammunation",          283.457305, -115.402793, 999.918823,  299.326538, -101.860839, 1005.523498},
	{ "Ammunation",          282.337127, -90.388732, 999.052246,  332.734985, -55.001342, 1007.760253},
	{ "Ammunation",          271.042358, -173.503585, 997.556091,  320.347991, -155.220001, 1004.057983},
	{ "Ammunation",          267.988983, -147.514892, 997.149414,  318.394897, -123.043975, 1009.279602},

	{ "Train Hard",                194.405807,  -143.914093,    1001.402038,  220.829101, -124.464157,   1009.108459},//interior 3
	{ "Victim",                198.991409,  -16.306325,    1000.081237,  231.734283, 1.207464,   1010.204833},//interior 5
	{ "Suburban",                193.966751,  -54.082130,    999.650512,  216.481704, -28.485902,   1010.552124},//interior 1
	{ "Binco",                198.923568,  -114.472251,    1003.179260,  220.209259, -94.264114,   1007.960815},//interior 15
	{ "Zip",                143.295578,  -97.801361,    1000.679443,  184.125610, -64.806243,   1006.770996},//interior 18

	{ "City Hall",    317.276245,  145.830917,    1004.477416,  396.811309, 226.986053,   1035.623901},//interior 3   Planning Department
	{ "Sex Shop",            -120.470336,  -28.505134,    999.738952,  -97.986259, -5.019160,   1004.279174},//interior 3

	{ "Well Stacked Pizza",  365.185607,  -135.401031,    1000.810913,  381.788970, -110.322631,   1004.796020},//interior 5
	{ "CluckinBell",         362.027557,  -15.771659,    1000.253662,  382.536224, -0.427783,   1005.368164},//interior 9
	{ "BurgerShot",                358.000671,  -79.417160,    999.616943,  385.010467, -53.780853,   1006.592895},//interior 10

	{ "Gant Bridge Diner",   440.947174, -112.770187, 997.827148,  462.663818, -102.793251, 1003.940979},//interior 5 Gant Bridge Diner
	{ "Donut Shop",   370.821807, -198.111465, 999.340576,  385.340484, -175.501220, 1006.196594},//interior 17 Donut Shop
	{ "Lil Probe Inn",   -233.480468, 1391.750488, 25.809064,  -215.781585, 1414.379272, 33.384544},//interior 18 Lil Probe Inn
	{ "Red Restaurant",   436.965820, -25.556682, 996.626525,  463.139678, -1.888617, 1011.356140},//interior 1 Red Restaurant
	{ "Diner",   432.137512, -93.563621, 997.798889,  462.677551, -75.343627, 1004.831909},//interior 4 Jays Diner
	{ "Small Diner",   437.668701, -71.350036, 993.467651,  455.186370, -47.712722, 1007.741333},//interior 6 Small Diner
	{ "Bar",   486.359893, -95.364105, 996.940307,  513.536499, -61.620365, 1004.547546},//interior 11 Bar
	{ "Welcome Pump",   671.886230, -473.328399, -27.991689,  690.123229, -441.258148, -21.495166},//interior 1 Welcome Pump

	{ "LS Police Department",                208.019088,  59.202430,    999.050781,  273.778747, 97.490188,   1014.587341},//interior 6
	{ "LV Police Department",                183.282211,  133.016494,    998.952148,  304.905029, 200.117050,   1012.154724},//interior 3
	{ "SF Police Department",                213.977249,  107.438285,    995.015625,  278.493713,  126.728271,   1010.820312},

	{ "Four Dragons Casino",   1911.634887,  962.932983,    991.298645,  2027.678710,  1071.038940,   1008.907226},//interior 10
	{ "San Andreas Federal Mint",   2108.149169,  1521.394653,    988.651123,  2314.022705,  1734.704956,   1112.913696},//interior 1
	{ "Red Sands Casino",   1110.31530,  -22.000860,    998.273376,  1147.863891,  13.340396,   1011.101013},//interior 12

	{ "Sheriff's Department",   316.551696,  300.507507,    997.420776,  329.806427,  318.565155,   1004.579101},//interior 5   Barbara's House
	{ "Denise's House",   242.356277,  299.427612,    997.647277,  250.522064,  307.341827,   1004.407165},//interior 1
	{ "Helena's House",   278.295043,  302.615997,    997.081726,  294.419128,  313.159301,   1008.058288},//interior 3
	{ "Katie's House",   265.497253,  301.116729,    997.337585,  274.641265,  310.171691,   1003.553894},//interior 2
	{ "Michelle's House",   297.245056,  298.038452,    995.916137,  312.897247,  316.481689,   1011.256530},//interior 4
	{ "Millie's House",   342.991241,  299.596618,    997.460449,  351.176177,  311.254943,   1003.742797},//interior 6

	{ "B Dup's Apartment",   1516.668701, -16.758069, 1000.785644,  1534.010864, -3.015980, 1005.440124},//interior 3 B Dup's Apartment
	{ "B Dup's Crack Palace",   1518.924560, -52.855224, 1000.849853,  1528.898559, -40.406162, 1008.311401},//interior 2 B Dup's Crack Palace
	{ "Big Smokes Crack Palace",   2508.818847, -1329.008911, 1023.228454,  2612.670166, -1224.946533, 1077.077148},//interior 2 Big Smokes Crack Palace

	{ "Colonel Fuhrberger's House",   2800.505371, -1177.811767, 1023.896545,  2821.838623, -1158.508056, 1034.256469},//interior 8 Colonel Fuhrberger's House
	{ "OG Loc's House",   506.877227, -23.723440, 999.319458,  527.008300, -3.826575, 1008.890869},//interior 3 OG Loc's House
	{ "Ryders House",   2445.951416, -1708.959594, 1012.000854,  2477.376953, -1683.510864, 1016.750061},//interior 2 Ryders House
	{ "Sweets House",   2522.159423, -1687.265136, 1013.807373,  2540.499511, -1669.747924, 1020.151794},//interior 1 Sweets House
	{ "Wu Zi Mu's House",  -2175.135742, 632.936035, 1050.703979,  -2154.699462, 648.719787, 1064.492919},//interior 1 Wu Zi Mu's House
	{ "Johnson House",                2488.220458,  -1713.184326,    1012.889587,  2501.265136,  -1688.057373,   1022.657165},//interior 3
	{ "Mad Doggs Mansion",                1219.790039,  -842.930847,    1074.623901,  1311.898437,  -745.665893,   1099.900634},//interior 5

	{ "Wardrode",                250.348724,  -44.927051,    1001.073669,  260.652679,  -34.449382, 1006.890686},//interior 14
I Want To Show The Name Of That Place In The Textdraw given below based on the coordinates
Код:
  RobberyPlaceName = TextDrawCreate(123.750000, 171.500000, "~w~'s Safe~w~");
    TextDrawLetterSize(RobberyPlaceName, 0.304999, 0.952499);
    TextDrawAlignment(RobberyPlaceName, 2);
    TextDrawColor(RobberyPlaceName, -1);
    TextDrawSetShadow(RobberyPlaceName, 0);
    TextDrawSetOutline(RobberyPlaceName, 1);
    TextDrawBackgroundColor(RobberyPlaceName, 51);
    TextDrawFont(RobberyPlaceName, 1);
    TextDrawSetProportional(RobberyPlaceName, 1);
For Example If A Person Is In A 24-7 Shop It Should be Written Like This
Код:
  RobberyPlaceName = TextDrawCreate(123.750000, 171.500000, "~w~'24-7 Safe~w~");
    TextDrawLetterSize(RobberyPlaceName, 0.304999, 0.952499);
    TextDrawAlignment(RobberyPlaceName, 2);
    TextDrawColor(RobberyPlaceName, -1);
    TextDrawSetShadow(RobberyPlaceName, 0);
    TextDrawSetOutline(RobberyPlaceName, 1);
    TextDrawBackgroundColor(RobberyPlaceName, 51);
    TextDrawFont(RobberyPlaceName, 1);
    TextDrawSetProportional(RobberyPlaceName, 1);
Reply
#2

please someone help me
Reply
#3

Can't do it like that..
PHP код:
new string[80];
format(string,sizeof(string),%s,zones);
TextDrawSetString(RobberyPlaceName,string); 
Reply
#4

Where i have To Put It I Mean in OnGamemodinit
Reply
#5

In ever callback you want. Put it in OnPlayerUpdate.
Reply
#6

Getting Error In This Line
Код:
format(string,sizeof(string),%,zones);
Error
Код:
invalid expression, assumed zero
Reply
#7

%s,why did u remove the format? You need it..
Reply
#8

WhiteGhost Tell Me Where I Have To Paste That Code
Reply
#9

Quote:
Originally Posted by CarRamper
Посмотреть сообщение
WhiteGhost Tell Me Where I Have To Paste That Code
....

Quote:
Originally Posted by Fantje
Посмотреть сообщение
In ever callback you want. Put it in OnPlayerUpdate.
Reply
#10

PHP код:
public OnPlayerUpdate(playerid)
{
    new 
string[80];
    
format(string,sizeof(string),%s,zones);
    
TextDrawSetString(RobberyPlaceName,string);
    return 
1// Send this update to other players.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)