21.03.2018, 20:22
Quote:
Try this
Код:
new msg = -1; forward Message(); public Message() { msg += 1; switch(msg) { case 0: SendClientMessageToAll(-1, "{FFCC33} Tex1. "); case 1: SendClientMessageToAll(-1, "{FFCC33} Tex2. "); case 2: SendClientMessageToAll( -1, "{FFCC33} Tex3. "); case 3: SendClientMessageToAll( -1, "{FFCC33} Tex4. "); case 4: SendClientMessageToAll( -1, "{FFCC33} Tex5. "); } } Код:
SetTimer("Message",1000,true); Код:
new msg = -1; forward Message(playerid); public Message(playerid) { msg += 1; switch(msg) { case 0: SendClientMessage(playerid, -1, "{FFCC33} Tex1. "); case 1: SendClientMessage(playerid, -1, "{FFCC33} Tex2. "); case 2: SendClientMessage(playerid, -1, "{FFCC33} Tex3. "); case 3: SendClientMessage(playerid, -1, "{FFCC33} Tex4. "); case 4: SendClientMessage(playerid, -1, "{FFCC33} Tex5. "); } } Код:
SetTimerEx("Message", 1000, 1, "d", playerid); |
PHP код:
CMD:startm(playerid, params[])
{
if(Militar[playerid] == 1)
{
MilitarJob[playerid] = 1;
SetPlayerCheckpoint(playerid,111.2472,1029.2219,13.6094,2.0);
SendClientMessage(playerid, -1, "{FFCC33} tex1 ");
SendClientMessage(playerid, -1, "Gtext2 !");
SendClientMessage(playerid, -1, "text3.");
SendClientMessage(playerid, -1, "Gtext4");
SendClientMessage(playerid, -1, "{FFCC33} text5. ");
CP[playerid] = 0;
}