
stock GetPlayerZone(playerid); // Funciton will return location/zone name
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/WhereAmI", true, 9))
{
new string[128];
format(string, sizeof(string), "Your location is %s.", GetPlayerZone(playerid));
SendClientMessage(playerid, 0x50000AA, string);
}
return 1;
}
|
Originally Posted by WThieves
Good job, haven't tested it yet though.
|
{ "Bayside Tunnel", -2290.19, 2548.29, -89.08, -1950.19, 2723.29, 110.92},
{ "Easter Tunnel", -1709.71, -833.03, -1.53, -1446.01, -730.12, 200.00},
{ "Flint Waters", -314.43, -753.87, -89.08, -106.34, -463.07, 110.92},
{ "Los Santos Inlet", -321.74, -2224.43, -89.08, 44.62, -1724.43, 110.92},
{ "Mount Chiliad", -2178.69, -1771.66, -47.92, -1936.12, -1250.97, 576.08},
{ "Mount Chiliad", -2997.47, -1115.58, -47.92, -2178.69, -971.91, 576.08},
{ "Mount Chiliad", -2994.49, -2189.91, -47.92, -2178.69, -1115.58, 576.08},
{ "Mount Chiliad", -2178.69, -2189.91, -47.92, -2030.12, -1771.66, 576.08},
{ "San Fierro Bay", -2616.40, 1501.21, -3.05, -1996.66, 1659.68, 200.00},
{ "San Fierro Bay", -2616.40, 1659.68, -3.05, -1996.66, 2175.15, 200.00},
{ "Sherman Reservoir", -789.737, 1659.68, -89.08, -599.51, 1929.41, 110.92},
{ "Yellow Bell Golf Course", 1117.40, 2723.23, -89.08, 1457.46, 2863.23, 110.92},
{ "Yellow Bell Golf Course", 1457.46, 2723.23, -89.08, 1534.56, 2863.23, 110.92}
{ "Restricted Area", -91.54, 1655.05, -50.00, 421.23, 2123.01, 250.00}
|
I have made a tutorial for making Zones sytem with using your include Click me
|