14.11.2012, 14:00
Quedaria algo asн.
pawn Код:
new P_X,P_Y,P_Z;
GetPlayerPos(playerid,P_X,P_Y,P_Z);
for(new i = 0; i < sizeof(gSAZones); i++) {
if(P_X >= gSAZones[i][SAZONE_AREA][0] && P_X <= gSAZones[i][SAZONE_AREA][3]
&& P_Y >= gSAZones[i][SAZONE_AREA][1] && P_Y <= gSAZones[i][SAZONE_AREA][4]) {
//------------------------------------------------------------------
new string[128];
format(string,sizeof(string),"Estas en %s",gSAZones[i][SAZONE_NAME]);
SendClientMessage(playerid,-1,string);
//TextDrawSetString(TextDrawID,gSAZones[i][SAZONE_NAME]);
//------------------------------------------------------------------
break;
}
}