Little help to me
#3

Use SetPlayerCheckPoint(playerid, Float: x, Float: y, Float: z, Float: size) when the command is used and then just display a message to the driver when he enters the checkpoint. When you enter a checkpoint, OnPlayerEnterCheckpoint(playerid) is called, so you place the message under that function. You could also freeze the driver to force him to wait for passengers and then use a timer to unfreeze him after say, for example, 10 seconds. I just hope you know how to make use of timers.

For example:

Код:
OnPlayerEnterCheckpoint(playerid)
{
      GameTextForPlayer(playerid, "You have reached a stop and should wait a few seconds for your passengers", 10000, 3);
      TogglePlayerControllable(playerid, 0);
      SetTimerEx("Unfreeze", 10000, false, "i", playerid);
      return 1;
}
No problem.
Reply


Messages In This Thread
Little help to me - by Diti1 - 20.01.2014, 19:48
Re: Little help to me - by Diti1 - 20.01.2014, 20:47
Re: Little help to me - by Rifa4life - 20.01.2014, 23:34

Forum Jump:


Users browsing this thread: 1 Guest(s)