SA-MP Forums Archive
[Include] [INC] PlayerZone (GetPlayerZone) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] PlayerZone (GetPlayerZone) (/showthread.php?tid=154653)



[INC] PlayerZone (GetPlayerZone) - Luka P. - 14.06.2010

Informations
Hello, this is a simple GetPlayerZone function that will return player's location name (string, ex. Fost Valley). I used Lethal's coordinates to determinate player's location name. Also, Incognito's Streamer Plugin 2.3.8 is used to stream zones.

Functions
pawn Код:
stock GetPlayerZone(playerid); // Funciton will return location/zone name
Example Usage
pawn Код:
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;
}
Download
[INC] PlayerZone (GetPlayerZone) (Solidfiles) 0.2

Credits
Lethal - Coordinates for zones
Incognito - Streamer Plugin


Re: [INC] PlayerZone (GetPlayerZone) - WThieves - 14.06.2010

Good job, haven't tested it yet though.


Re: [INC] PlayerZone (GetPlayerZone) - Luka P. - 14.06.2010

Quote:
Originally Posted by WThieves
Good job, haven't tested it yet though.
Just 3 minutes of work and as I said already I give all credits to Lethal for this
http://forum.sa-mp.com/index.php?topic=41947


Re: [INC] PlayerZone (GetPlayerZone) - Luka P. - 15.06.2010

So did somebody tested it? I see theres 10 downloads from Solidfiles.


Re: [INC] PlayerZone (GetPlayerZone) - AnonScripter - 21.12.2013

i tested it and works fine, thank you


Re: [INC] PlayerZone (GetPlayerZone) - Alphlax - 22.12.2013

Well done of a script


Re: [INC] PlayerZone (GetPlayerZone) - penny - 10.09.2018

I was looking for coordinates of LS Inlet, but I didnt find. So I had to get into the game files...

And these are zones that are absent from Lethal's list:
PHP код:
"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.7371659.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
Also, "Area 69" in the game files is slightly different (for fans):
PHP код:
"Restricted Area",               -91.54,  1655.05,   -50.00,   421.23,  2123.01,   250.00



Re: [INC] PlayerZone (GetPlayerZone) - MIDO007 - 01.12.2018

I have made a tutorial for making Zones sytem with using your include Click me


Re: [INC] PlayerZone (GetPlayerZone) - cuber - 01.12.2018

Quote:
Originally Posted by MIDO007
Посмотреть сообщение
I have made a tutorial for making Zones sytem with using your include Click me
Thanks for that tutorial it really helped cure my depression.