Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial friends help take care
#11
OnAddonFrame does not use ServerClient Wink

So don't use clientnums inside it Smile

use
CSHARP Code
  1. ServerSay("^6[^7NOTICE^6]^7 message here",true);

and
CSHARP Code
  1. iPrintLnBold(null, "^6[^7NOTICE^6]^7 message here");


to message all players
Had a life, Got a modem..
Reply

#12
or just get all Clients.


Code:
foreach(ServerClient it in GetClients())
{
      TellClient(it.ClientNum, "derpherp", true);
}
[Image: compiling.png][Image: aLKA8og_460sa.gif]
Reply

#13
(07-04-2012, 10:43)Ich1994 Wrote: or just get all Clients.


Code:
foreach(ServerClient it in GetClients())
{
      TellClient(it.ClientNum, "derpherp", true);
}

yes it is that just too tired to think right

Code:
using System;
using System.Collections.Generic;
using System.Text;
using Addon;

namespace derp
{
    public class derp : CPlugin
    {
          int jerp = 0;
          public override void OnAddonFrame()
          {

                jerp++;
                if (jerp == timeyouwant*4) /*onserveraddon works every 250 ms that means 4 times every second*/
                {
                      foreach(ServerClient it in GetClients())
                     {
                            TellClient(it.ClientNum, "derpherp", true);
                     }
                      jerp = 0;
               }
          }    
    }
}
LOL
Reply

#14
in the current addon version, i'd ignore the clients
Had a life, Got a modem..
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  What script controls the "random" aspect to care packages? akillj 2 3,265 06-05-2013, 11:24
Last Post: akillj
  Care package question. DidUknowiPwn 1 2,096 09-21-2012, 00:51
Last Post: JariZ
  [News] Care package maps Rendflex 3 2,296 07-04-2012, 07:54
Last Post: Pozzuh
  Friends Website *Look* GoalieJoe 2 2,367 01-19-2012, 10:58
Last Post: d0h!
  something to sent to your friends Xzite 1 1,769 08-22-2011, 02:39
Last Post: JariZ
Exclamation Playing Mod on a private match with friends GoldenWrapper 7 3,968 08-05-2011, 20:22
Last Post: koil
  Help friends cant connect to private match w/ mods iDennis95 15 7,384 07-24-2011, 20:57
Last Post: d0h!
  Friends setup _Game_ 4 3,092 07-18-2011, 13:42
Last Post: d0h!
  A care package / mystery box mod. aefven 1 2,278 07-09-2011, 11:31
Last Post: iBanana
  Care package building apple 1 1,925 06-23-2011, 23:31
Last Post: Lemon

Forum Jump:


Users browsing this thread:
3 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.