13.09.2014, 21:39
Exemplo:
@Edit
stock fim do gm
pawn Код:
if(IsPlayerInPlace(playerid,314.37,129.60, 396.11, 221.51))
{
//funзгo
return 1;}
pawn Код:
stock IsPlayerInPlace(playerid, Float:XMin, Float:YMin, Float:XMax, Float:YMax)
{
new
RetValue = 0,
Float:aX,
Float:aY,
Float:aZ
;
GetPlayerPos(playerid, aX, aY, aZ);
if(aX >= XMin && aY >= YMin && aX < XMax && aY < YMax)
{
RetValue = 1;
}
return RetValue;
}
stock fim do gm