Interior name
#9

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];
}
Reply


Messages In This Thread
Interior name - by Unknown123 - 06.07.2011, 02:58
Re: Interior name - by Backwardsman97 - 06.07.2011, 03:01
Re: Interior name - by =WoR=Varth - 06.07.2011, 03:09
Re: Interior name - by Unknown123 - 06.07.2011, 03:12
Re: Interior name - by Backwardsman97 - 06.07.2011, 03:13
Re: Interior name - by Unknown123 - 06.07.2011, 03:14
Re: Interior name - by Backwardsman97 - 06.07.2011, 03:19
Re: Interior name - by =WoR=Varth - 06.07.2011, 03:20
Re: Interior name - by Laronic - 06.07.2011, 03:27
Re: Interior name - by Unknown123 - 06.07.2011, 03:32

Forum Jump:


Users browsing this thread: 1 Guest(s)