Originally Posted by DaniceMcHarley
PHP код:
forward Delay1(playerid);
public Delay1(playerid)
{
SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, "MESSAGE 2", ReturnName(playerid, 0));
SetTimerEx("Delay2", 10000, false, "i", playerid);
return 1;
}
forward Delay2(playerid);
public Delay2(playerid)
{
SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, "MESSAGE 3", ReturnName(playerid, 0));
return 1;
}
PHP код:
SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, "MESSAGE 1", ReturnName(playerid, 0));
SetTimerEx("Delay1", 10000, false, "i", playerid);
That ^ will send message one, wait 10 seconds, send the second one then wait another 10 seconds to send the last message.
|