Checpoint mover
#1

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
Reply
#2

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.**
Reply
#3

I don't use zcmd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)