27.12.2012, 18:44
Hi.
My command works fine, but I have a problem.
When I do /find ID..
It shows a checkpoint, but when the player moves to anywhere the checkpoint is in the same place.
There is a way that the checkpoint follows the player?
My command works fine, but I have a problem.
When I do /find ID..
It shows a checkpoint, but when the player moves to anywhere the checkpoint is in the same place.
There is a way that the checkpoint follows the player?
PHP код:
CMD:find(playerid, params[])
{
new targetid; new Float:x, Float:y, Float:z;
if(sscanf(params,"u", targetid)) return SendClientMessage(playerid, -1, "Usage: /find (ID)");
GetPlayerPos(targetid, x, y, z);
SetPlayerCheckpoint(playerid, x, y, z, 3.0);
return 1;
}