07.12.2012, 23:48
You can try like this,
Код:
CMD:uci(playerid,params[]) { if(PlayerToPoint(5.0,playerid, 2811.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa"); else if(PlayerToPoint(5.0,playerid, 2812.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa"); else if(PlayerToPoint(5.0,playerid, 2813.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa"); else if(PlayerToPoint(5.0,playerid, 2814.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa"); else if(PlayerToPoint(5.0,playerid, 2815.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa"); else if(PlayerToPoint(5.0,playerid, 2816.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa"); return 1; } //=================================================TEST================== CMD:test(playerid,params[]) --- 58141 { if(PlayerToPoint(5.0,playerid, 2817.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa"); else if(PlayerToPoint(5.0,playerid, 2818.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa"); else if(PlayerToPoint(5.0,playerid, 2819.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa"); else if(PlayerToPoint(5.0,playerid, 2820.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa"); else if(PlayerToPoint(5.0,playerid, 2821.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa"); else if(PlayerToPoint(5.0,playerid, 2822.8933,2918.5095,36.5046)) SendClientMessage(playerid, COLOR_WHITE, "aaaa"); return 1; }