14.06.2010, 21:13
(
Последний раз редактировалось Luka P.; 12.02.2011 в 11:54.
)
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
Example Usage
Download
[INC] PlayerZone (GetPlayerZone) (Solidfiles) 0.2
Credits
Lethal - Coordinates for zones
Incognito - Streamer Plugin
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
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;
}
[INC] PlayerZone (GetPlayerZone) (Solidfiles) 0.2
Credits
Lethal - Coordinates for zones
Incognito - Streamer Plugin