How to set a timer to sendclientmessage
#2

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. ");
       }
}
And use this where you want to start the timer
Код:
SetTimer("Message",1000,true);
Or if you want to send message to 1 player use this
Код:
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. ");
       }
}
and this to start the timer
Код:
SetTimerEx("Message", 1000, 1, "d", playerid);
Reply


Messages In This Thread
How to set a timer to sendclientmessage - by Zeus666 - 21.03.2018, 20:04
Re: How to set a timer to sendclientmessage - by scripter112 - 21.03.2018, 20:18
Re: How to set a timer to sendclientmessage - by Zeus666 - 21.03.2018, 20:22
Re: How to set a timer to sendclientmessage - by scripter112 - 21.03.2018, 21:26
Re: How to set a timer to sendclientmessage - by XVlaDX - 22.03.2018, 00:03

Forum Jump:


Users browsing this thread: 1 Guest(s)