15.10.2011, 20:12
pawn Код:
for(new carol = GetMaxPlayers(), i = 0; i != carol; ++i)
{
if(IsPlayerConnected(i))
{
if(isPlayerGangZone(i, 2777.4788,1022.8942, 2894.6960,833.6323))
{
TextDrawSetString(areaGangZona,"agora foi");
TextDrawShowForPlayer(i,areaGangZona);
SendClientMessage(playerid,0x00c900ff,"saia");
}
}
}
isPlayerGangZone(pid, Float: gz_x, Float: gz_y, Float: gz_x2, Float: gz_y2)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(pid, X, Y, Z);
if (X > gz_x && X < gz_x2 && Y > gz_y && Y < gz_y2)
return true;
return 0;
}