15.09.2012, 06:33
gamemodeint
SetTimer("CheckArea",2000,1);
stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
return minx < x < maxx && miny < y < maxy;
}
forward CheckArea(playerid);
public CheckArea(playerid)
{
if(IsPlayerInArea(playerid,2424,-1758,2640,-1620))
{
SendClientMessage(playerid,COLOR_GREEN,"Your on Property of GS Watch Your back");
}
return 1;
}
it still doesnt work i used
http://gtaforum.hu/index.php?PHPSESS...&page=gangzone
to get the zones and all iz failing me
SetTimer("CheckArea",2000,1);
stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
return minx < x < maxx && miny < y < maxy;
}
forward CheckArea(playerid);
public CheckArea(playerid)
{
if(IsPlayerInArea(playerid,2424,-1758,2640,-1620))
{
SendClientMessage(playerid,COLOR_GREEN,"Your on Property of GS Watch Your back");
}
return 1;
}
it still doesnt work i used
http://gtaforum.hu/index.php?PHPSESS...&page=gangzone
to get the zones and all iz failing me