Checpoint mover - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Checpoint mover (
/showthread.php?tid=338647)
Checpoint mover -
otiy - 30.04.2012
Hi, i want a command /find with refresh checkpoint. Eg: player X move and player Y(finder) want to find he. A command with /find and /cancel find ... I want to checkpoint refresh only 5 sec
Re: Checpoint mover -
Jack_Rocker - 30.04.2012
Well, you dont really need to use a checkpoint!
This example uses ZCMD:
pawn Код:
new findid;
COMMAND:find(playerid, params[])
{
if (!IsPlayerConnected(params)) return SendClientMessage(playerid, -1, "You have entered an invalid ID!");
SetPlayerColor(params, 0xAA3333AA);
findid = params;
SendClientMessage(playerid, 0xAA3333AA, "The player you want to locate is in red! (the color of this text)");
return 1;
}
COMMAND:cancel(playerid, params[])
{
if (!IsPlayerConnected(findid)) return SendClientMessage(playerid, -1, "This player does not exist, or is no longer connected.");
SetPlayerColor(findid, /*your color here*/);
return 1;
}
**Note, I havent tested it, and it really is only a loose example.**
Re: Checpoint mover -
otiy - 30.04.2012
I don't use zcmd