SA-MP Forums Archive
Auto Message - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Auto Message (/showthread.php?tid=509387)



Auto Message - KillerStrike23 - 26.04.2014

hi, I wanna ask if it is possible to send like 2 messages or more in just one time like sending two message in the same time if it is can any one gemme a tutorial link ?


Re: Auto Message - NviDa - 26.04.2014

When a player connects?


Re: Auto Message - Galletziz - 26.04.2014

pawn Код:
forward functionautomessage();
public functionautomessage()
{
  SendClientMessageToAll(-1,"[INFO] Visit our site web on: http://www.siteweb.net, for more information about server");
}

public OnGameModeInit()
{
  SetTimer("functionautomessage",60000,true);
  return 1;
}
this send an auto-message each 60 sec to all players connected.


Re: Auto Message - KillerStrike23 - 26.04.2014

lol that's not what I ment I need an automessage that sends two messages in the same time


Re: Auto Message - Galletziz - 26.04.2014

Quote:
Originally Posted by KillerStrike23
Посмотреть сообщение
lol that's not what I ment I need an automessage that sends two messages in the same time
With this you can send more messages in same time.. just add more sendclientmessagetoall.


Re: Auto Message - Konstantinos - 26.04.2014

Both of your post have lack of information. Sending messages to 1 or all players?

You can send with a custom function 2 client message you wanted but it will send the first and then the second one and that's because it's single thread. You can't do 2 things at the same time.


Re: Auto Message - ThatThoseTheThy - 26.04.2014

you can use stuff like \n to skip a line if that is what you mean also....


Re: Auto Message - KillerStrike23 - 26.04.2014

ah ty I will try it