Chase CMD, Updating of Marker
#6

pawn Код:
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(IsPlayerConnected(CopMarker) || CopMarker!= -1)
            {
                if(IsACop(i))
                {
                    new Float:px, Float:py, Float:pz;
                    GetPlayerPos(CopMarker, px, py, pz);
                    SetPlayerCheckpoint(i, px, py, pz, 5.0);
                }
            }
    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;
}
Don't forget to define the Timer of Cop.
Reply


Messages In This Thread
Chase CMD, Updating of Marker - by firemanjv - 24.09.2013, 19:52
Re: Chase CMD, Updating of Marker - by Patrick - 24.09.2013, 20:17
Re: Chase CMD, Updating of Marker - by firemanjv - 25.09.2013, 06:11
Re: Chase CMD, Updating of Marker - by JamesH - 25.09.2013, 06:35
Re: Chase CMD, Updating of Marker - by firemanjv - 25.09.2013, 14:51
Re: Chase CMD, Updating of Marker - by MAFIAWARS - 25.09.2013, 14:55
Re: Chase CMD, Updating of Marker - by firemanjv - 25.09.2013, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)