28.05.2010, 06:54
I was playing in a server and there were some messages from the server , Like :
"See our webpage at ......" How can I make that ?
"See our webpage at ......" How can I make that ?
SendClientMessageToAll(Color, "See our webpage at....");
Originally Posted by BiG_bEaR
WHere should I put it and isn't this when somebody writes a command ?
|
new CommercialOld; new Commercials[][]= { "1 no line will be printed twice in a row", "2 blablabla", "3 blablabla", "4 blablabla w/o a comma at the last line >>" }
forward CommercialMsg(); public CommercialMsg() { new Rnd=(1+CommercialOld+(random(sizeof(Commercials)-1)))%sizeof(Commercials); SendClientMessageToAll(0xaaaa55ff,Commercials[Rnd]); CommercialOld=Rnd; return 1; }
SetTimer("CommercialMsg",60000,true);