30.04.2012, 17:29
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
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;
}