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