23.08.2010, 08:29
Code:
new Float:pos[3]; GetPlayerPos(i,pos[0],pos[1],pos[2]); if(Zone[Current][ZoneMaxX] > pos[0] && Zone[Current][ZoneMinX] < pos[0] && Zone[Current][ZoneMaxY] > pos[1] && Zone[Current][ZoneMinY] < pos[1]) { TextDrawHideForPlayer(i, yxod[i]); TimZone[i] = TimeZone; } else { format(string, sizeof(string), "Come Back in %d", TimZone[i]); TextDrawSetString(yxod[i],string); TextDrawShowForPlayer(i, yxod[i]); TimZone[i]--; PlayerPlaySound(i,1057,0.0,0.0,0.0); if(TimZone[i] <= -1) { ResetPlayerWeapons(i); SetPlayerHealth(i,100.0); SetPlayerInterior(i,MAIN_INTERIOR); Player[i][pPlaying] = false; new rand = random(sizeof(MainSpawns)); SetPlayerPos(i,MainSpawns[rand][0],MainSpawns[rand][1],MainSpawns[rand][2]); if(Player[i][pTeam] == DEF) {mySetPlayerColor(i,DEFENDER);} if(Player[i][pTeam] == ATT) {mySetPlayerColor(i,ATTACKER);} SetPlayerScore(i, 0); GetPlayerName(i,name,24); format(string, sizeof(string), "Игрок %s удален из раунда (Вне Зоны)",name); SendClientMessageToAll(AAD_COLOR_GREY,string); TextDrawHideForPlayer(i, yxod[i]); } return 0; } } } return 1; }