25.08.2010, 02:14
@nexco:
Tente:
Tente:
pawn Code:
stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
return 0;
}
public RestrictedArea(playerid)
{
if(IsPlayerInArea(playerid,-2484,-2542,-594,-625) ) //Arruma as Coordenadas *-*
{
if(!IsPlayerAdmin(playerid) || AccInfo[playerid][Level] < 1)
{
SendClientMessage(playerid, 0xFF0000AA, "Get da Fuck out of ADMIN AREA.");
}
}
return 1;
}

