12.07.2009, 17:24
second question:
Код:
public isPlayerInLeaveCityZone() { SendClientMessageToAll(COLOR_SERVER,"gtest"); new Float:x, Float:y, Float:z; for (players=0; players < MAX_PLAYERS; players++) { if(!IsPlayerConnected(players)) continue; GetPlayerPos(players, x, y, z); if (x <= 2128.6323 && x >= 2125.6035 && y <= 46.8678 && y >= 36.4518) { new warningmessage[128]; format (warningmessage, sizeof(warningmessage), "Tau dar nelaikas palikti рб miestа, liko dar daug ko nuveikti."); SendClientMessage(players, COLOR_SERVER, warningmessage); } else { new warningmessage[128]; format (warningmessage, sizeof(warningmessage), "Test"); SendClientMessage(players, COLOR_SERVER, warningmessage); } } return 1; }