06.07.2011, 03:27
pawn Код:
stock GetPlayerInteriorName(playerid)
{
new Float:posX, Float:posY, Float:posZ;
GetPlayerPos(playerid, posX, posY, posZ);
if(posZ > 500.0)
{
for(new i = 0; i < sizeof(IntZone); i++)
{
if(IsPlayerInArea(playerid, IntZone[i][IntMinX], IntZone[i][IntMinY], IntZone[i][IntMaxX], IntZone[i][IntMaxY]))
{
format(ZoneName[playerid], 128, IntZone[i][IntName]);
}
}
}
else
{
ZoneName[playerid] = "Unknown";
}
return ZoneName[playerid];
}