Checkpoint !help!
#6

Before, in the top of mod:
pawn Код:
new Checkpoint[MAX_PLAYERS];
Command:
pawn Код:
if(strcmp("/meow", cmdtext, true) == 0)
{
    Checkpoint[playerid] = 1;
    SendClientMessage(playerid, COLOR_RED, "placed meow");
    SetPlayerCheckpoint(playerid,X,Y,Z,Size);
    return 1;
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
  if(Checkpoint[playerid] == 1)
  {
    Checkpoint[playerid] = 2; // If you want to write something when player enters next checkpoint
    SendClientMessage(playerid,COLOR_RED,"meow");
    SetPlayerCheckpoint(playerid,2645.297, -2018.093, 13.323,3); <- Next Checkpoint
  }
  else if(Checkpoint[playerid] == 2)
  {
Checkpoint[playerid] = 3; // If you want to write something when player enters next checkpoint
    SendClientMessage(playerid,COLOR_RED,"meow 2");
    SetPlayerCheckpoint(playerid,2645.297, -2018.093, 13.323,3); <- Next Checkpoint  
   }
}
And like that
Reply


Messages In This Thread
Checkpoint !help! - by Assyria - 15.04.2010, 17:11
Re: Checkpoint !help! - by McSquizzy - 15.04.2010, 17:20
Re: Checkpoint !help! - by Cank - 15.04.2010, 17:51
Re: Checkpoint !help! - by McSquizzy - 15.04.2010, 18:14
Re: Checkpoint !help! - by Assyria - 15.04.2010, 19:39
Re: Checkpoint !help! - by McSquizzy - 16.04.2010, 05:19

Forum Jump:


Users browsing this thread: 1 Guest(s)