i put it like this
then i call it i ctf,hq,dm,tdm. gsc like thisPHP Code:
init()
{
thread msg();
}
msg()
{
msg_amount = getCvarInt("cg_smsg_amount");
msg_delay = getCvarInt("cg_smsg_delay");
for(;;)
{
for (i = 1; i <= msg_amount; i++)
{
wait msg_delay;
msg = getCvar("cg_smsg_" + i);
sendgameservercommand(-1, "h \"^7console: " + msg + "\"");
}
wait 0.15;
}
but didnt work :/ i put it in my modPHP Code:
thread maps\msg::init();