Chase CMD, Updating of Marker
#4

Alright follow this :

On the top of your script add
pawn Код:
new CopMarker = -1;
The following lines should be inserted into a TIMER if you want the checkpoint to update every moment use a short timer. LOOK BELOW :
pawn Код:
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);
                }
            }
and the command :
pawn Код:
CMD:chase(playerid, params[])
{
if(IsACop(playerid))
{
    CopMarker= playerid;
    return 1;
}
}
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)