home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


bound server-side message

by Q009 on 05/23/2009 11:52, 3 messages, last message: 05/23/2009 12:53, 807 views, last view: 05/04/2024 10:08, closed on 05/23/2009 18:09

hi!

im trying to make serverside command that will send messages to all clients on my server:

void omg() {
sendservmsg("\f4>\f1Welcome on \f0E.E Clan \f1Server!\f4<");
sendservmsg("\f2>To join please visit \f0eliteediters-clan.page.tl\f2<");
sendservmsg("\f1Have fun!");
}

COMMAND(omg, "");

but when im writing /omg it does nothing
cant someone teach me whats wrong? i suck in c++ :P

thanks

   Board Index   

#1: ..

by Q009 on 05/23/2009 11:53

i forgot to say its in fpsgame/server.cpp

betwen localdisconnect() and clientconnect() lines

reply to this message

#2: ..

by Q009 on 05/23/2009 12:01

or if its possibble to make it automatic and looped with delay

reply to this message

#3: ..

by Q009 on 05/23/2009 12:53

something like this:

void omg()
{
Sleep(1000);
sendservmsg("\f4>\f1Welcome on \f0E.E Clan \f1Server!\f4<");
sendservmsg("\f2>To join please visit \f0eliteediters-clan.page.tl\f2<");
sendservmsg("\f1Have fun!");
omg();
}

reply to this message

   Board Index   


Thread closed!

This thread has been closed, which is why you can't post any more messages in it.


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53873126 visitors requested 71648348 pages
page created in 0.020 seconds using 10 queries
hosted by Boost Digital