23.11.2013, 18:19
Fera usa essa stock:
e depois usa assim:
pawn Код:
stock IsPlayerInPlace(playerid,Float:XMin,Float:YMin,Float:XMax,Float:YMax )
{
new RetValue = 0;
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z );
if( X >= XMin && Y >= YMin && X < XMax && Y < YMax )
{
RetValue = 1;
}
return RetValue;
}
pawn Код:
if (IsPlayerInPlace(playerid, 2031.5837, -944.6428, 2236.0325, -967.2399))