Creating area
#6

pawn Код:
stock IsInSkatePark(playerid)
{
    if(!IsPlayerConnected(playerid)) return false;
    new Float:pPos[3];
    GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
    if(pPos[0] >= 1862.7400 && pPos[0] <= 1976.1165 && pPos[1] >= -1449.9783 && pPos[1] <= -1351.8217) return true;
    return false;
}
Then use it like this:
pawn Код:
//Somewhere in your code
if(IsInSkatePark(playerid)) SendClientMessage(playerid, 0xFF0000FF, "You are in Skate Park.");
Reply


Messages In This Thread
Creating area - by HondaCBR - 30.12.2011, 08:22
Re: Creating area - by fangoth1 - 30.12.2011, 08:25
Re: Creating area - by Aira - 30.12.2011, 08:47
Re: Creating area - by HondaCBR - 30.12.2011, 09:57
Re: Creating area - by vassilis - 30.12.2011, 11:04
AW: Creating area - by BigETI - 30.12.2011, 11:13
Re: Creating area - by HondaCBR - 30.12.2011, 11:19
AW: Creating area - by BigETI - 30.12.2011, 21:34
Re: Creating area - by Jefff - 30.12.2011, 21:47

Forum Jump:


Users browsing this thread: 3 Guest(s)