05.11.2015, 16:17
Vocк pode usar as DynamicAreas do streamer plugin, ou fazer uma funзгo que compare as coordenadas X,Y do player com as Min X Max X Min Y Max Y da бrea desejada..
assim
assim
PHP код:
bool:IsPlayerInArea(playerid, Float:XMin, Float:YMin, Float:XMax, Float:YMax ){
static Float:Pos[3];
GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2] );
if( Pos[0] >= XMin && Pos[1] >= YMin && Pos[0] < XMax && Pos[1] < YMax ){
return true;
}
return false;
}
//Modo de uso
if(IsPlayerInPlace(playerid,0.0,0.0,0.0,0.0)){ //0.0 devem ser substituidos pelas cordenadas da GZ :D
//estб na area
}