Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Player In Server Count Code
#1
I need the scripting code for thow many players are in the server and how many are in each teams any one could either make one or if theres already one tell me what it is?

(if it doesnt exist my idea was something like on player connected add 1 to X and that way I can get the total number of people in the server)
Reply

#2
(07-03-2011, 22:46)Scripts18 Wrote: I need the scripting code for thow many players are in the server and how many are in each teams any one could either make one or if theres already one tell me what it is?

(if it doesnt exist my idea was something like on player connected add 1 to X and that way I can get the total number of people in the server)

Euhm i have this in Aliens vs Marines. Good luck on your hunt
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#3

Can you help me a bit? Im beginign in this?

Reply

#4
Code:
level.players.size //total players currently in the server

CountAllies()
{
allies = 0;

for(i = 0; o < level.players.size; i++)
if(level.players[i].team == "allies")
allies++;

return allies;
}

CountAxis()
{
axis = 0;

for(i = 0; o < level.players.size; i++)
if(level.players[i].team == "axis")
axis++;

return axis;
}
[Image: b_560_95_1.png]
Reply

#5
Just don't use the PTK player-count code, its buggy as hell lol.
Reply

#6
Thx alot nukem
Reply

#7
theres a problem with the code when I use it it says that the o is not uni......
Reply

#8
copy and paste code from nuketown to get player count...
Reply

#9
kkkkkkkkkk
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Windows 8.1 Fix for MW3 Server Addon master131 16 17,095 09-29-2014, 23:08
Last Post: SuperNovaAO
Brick [Release] MW3 Server Administration Addon iRoNinja 5 8,563 11-10-2013, 15:46
Last Post: Casper
Exclamation Help cmdlist, dvarlist server crash Nerus 17 11,020 11-09-2013, 23:54
Last Post: Nerus
  Help Sentry Gun kill = Player kill Snake 8 5,450 11-07-2013, 13:41
Last Post: Nekochan
  Our Level Fastfile is Different from the Server. CheeseToast 6 10,603 11-03-2013, 17:52
Last Post: CheeseToast
  Dedicated Server External (public) IP Nerus 3 5,595 11-02-2013, 14:16
Last Post: Casper
  MW3 Server Version superg1973 7 12,103 10-28-2013, 01:15
Last Post: kotyra972
  Help how to turn off map in dedicated server pero123 8 6,598 10-15-2013, 19:00
Last Post: Nekochan
  Issue with server addon and NAT dimitrifrom31 3 4,687 10-08-2013, 18:11
Last Post: iRoNinja
  Help Code color crosshairs koren30 3 3,660 10-02-2013, 19:26
Last Post: koren30

Forum Jump:


Users browsing this thread:
1 Guest(s)

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