12.08.2012, 17:33
Код:
if(strcmp(cmdtext, "/trafika", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 5.0,1363.8109,-1387.7731,13.6575) || IsPlayerInRangeOfPoint(playerid, 5.0,1165.5878,-934.6587,43.1992) || IsPlayerInRangeOfPoint(playerid, 5.0,1147.2844,-935.1246,43.1637) || IsPlayerInRangeOfPoint(playerid, 5.0,1382.6752,-962.8252,34.2436) || IsPlayerInRangeOfPoint(playerid, 5.0,1484.0481,-1029.2765,23.6563) || IsPlayerInRangeOfPoint(playerid, 5.0,969.6546,-1133.7941,23.8281) || IsPlayerInRangeOfPoint(playerid, 5.0,1230.7679,-1276.4363,13.382) || IsPlayerInRangeOfPoint(playerid, 5.0,1435.5203,-1584.8782,13.5469) || IsPlayerInRangeOfPoint(playerid, 5.0,1531.0435,-1738.5515,13.5469) || IsPlayerInRangeOfPoint(playerid, 5.0,1576.6321,-2336.5461,13.5413)) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s kupuje neke stvarcice na trafici (/trafika) .", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); ShowPlayerDialog(playerid, DIALOG_TRAFIKA, DIALOG_STYLE_LIST, "TRAFIKA,KIOSK", "Telefon ($500)\n Imenik ($50)\n Kredit [200RSD] ($250)", "Kupi", "Odustani"); } return 1; }