26.07.2013, 01:03
I make this for u and i hope it work 
Put this to the top of your script
Go to your OnGameModeInit (or OnFilterScriptInit if a filterscript)
And put this every where you want
then change this
And put this under public zOnetExt(playerid);
oh i'm almost forgot back to the OnPlayerConnect and put this
Enjoy

Put this to the top of your script
PHP код:
new Text:ZoneText[MAX_PLAYERS];
forward zOnetExt(playerid);
forward zOnehIde(playerid);
PHP код:
SetTimer("zOnetExt",255,true);
PHP код:
public zOnetExt(playerid)
{
format(string,sizeof(string),"%s %s",zones[j],[zone_name]);
TextDrawSetString(ZoneText[playerid],string)
return 1;
}
PHP код:
public update_zones() {
new
line1[10],
line2[10],
string[128];
for(new i=0; i<MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && zoneupdates[i] == 1) {
if(IsPlayerInZone(i,player_zone[i])) {
}
else {
new
player_zone_before;
player_zone_before = player_zone[i];
player_zone[i] = -1;
for(new j=0; j<sizeof(zones);j++) {
if(IsPlayerInZone(i,j) && player_zone[i] == -1) {
if(player_zone_before == -1) TextDrawShowForPlayer(i,ZoneText[i]),SetTimerEx("zOnehIde",6000,false,"i",playerid));
else if(strcmp(zones[j][zone_name],zones[player_zone_before][zone_name],true) != 0) TextDrawShowForPlayer(i,ZoneText[i]), SetTimerEx("zOnehIde",6000,false,"i",playerid);
player_zone[i] = j;
format(line1,10,"p%dzone",i);
format(line2,10,"%d",j);
}
}
if(player_zone[i] == -1) player_zone[i] = player_zone_before;
}
}
}
}
PHP код:
public zOnehIde(playerid)
{
TextDrawHideForPlayer(playerid,ZoneText[i]);
return 1;
}
PHP код:
ZoneText[playerid] = TextDrawCreate(412.000061, 405.439941, "-");
TextDrawLetterSize(ZoneText[playerid], 1.018000, 2.615465);
TextDrawAlignment(ZoneText[playerid], 1);
TextDrawColor(ZoneText[playerid], -1378294017);
TextDrawSetShadow(ZoneText[playerid], 0);
TextDrawSetOutline(ZoneText[playerid], 1);
TextDrawBackgroundColor(ZoneText[playerid], 51);
TextDrawFont(ZoneText[playerid], 0);
TextDrawSetProportional(ZoneText[playerid], 1);
