24.07.2010, 05:09
Does anyone know that native IsPlayerInAreaOf or something like that not IsPlayerInRageOfPoint??
i need it for teh script
i need it for teh script
public IsPlayerInArea(playerid, Float:maxx, Float:maxy, Float:maxz, Float:minx, Float:miny, Float:minz)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(x < maxx && y < maxy && z < maxz && x > minx && y > miny && z > minz) return 1;
return 0;
}
forward IsPlayerRangeOfArea(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy);
public IsPlayerRangeOfArea(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy)
{
IsPlayerRangeOfArea(playerid, -2135.883, 136.4459, -2000.689, 353.4189);
SendClientMessage(playerid, COLOR_RED, "WARNING: You are in Workers Zone");
return 1;
}