24.09.2013, 19:52
Hello, I got a problem I want to let the marker move with the player..
this is my code
this is my code
Код:
CMD:chase(playerid, params[]) { new string[128], Float:bkx, Float:bky, Float:bkz; if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not a LEO."); GetPlayerPos(playerid, bkx, bky, bkz); format(string, sizeof(string), "[Central Dispatch]: %s is in a 10-0, please repsond code:3 (With Lights & Sirens)", RPN(playerid)); SendCopMessage(COLOR_RADIO, string); foreach(Player, i) { if(IsACop(i)) { SetPlayerMapIcon(i, 99, bkx, bky, bkz, 0, COLOR_BLUE, 3); } } return 1; }