Little help to me
#1

hello guys can some one help me i want to know how i can do this
when a player is in a bus and he typed /driver and he have to get checkpoints but i want to make the time like example
when player is in checkpoint to send player message Please wait



and if some one help me to make the job Criminal to kill authorizens (cops)
help me please
Thanks
-Diti .
Reply
#2

No one cant help me ??!!
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)