[Include] [INC] PlayerZone (GetPlayerZone)
#1

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
Reply
#2

Good job, haven't tested it yet though.
Reply
#3

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
Reply
#4

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

i tested it and works fine, thank you
Reply
#6

Well done of a script
Reply
#7

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
Reply
#8

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)