Raised This Month: $46 Target: $400

How to get amount of players

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Join Date: Jun 2018
Old 03-17-2020 , 16:32   How to get amount of players
Reply With Quote #1

Hey there, I just got back from a long time without coding here.
So, Heres what i want to do, I want u to guide me and not just tell me the answer (tell me what commands i should be using and help me out here).
i want to get the amout of players that are in the server (how do i get this?).
if the amount of CT players is lower then 3 i want to move one RANDOM player to the T side.
if it is higher i want to divide the number (for example - 25 div 3 = 8 meaning - using int variable).
so whats is the command i should be using? can u link me some wiki of commands?

Last edited by Doggg; 03-17-2020 at 16:33.
Doggg is offline
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 03-18-2020 , 09:16   Re: How to get amount of players
Reply With Quote #2


PHP Code:
#include <cstrike>
//CS_TEAM_T = 2
//CS_TEAM_CT = 3 

Plugin: [CSS/CSGO] Move Commands (ResetScore, Switch, Spec)

Introduction to SourcePawn
New API and Syntax
[TUT] SourcePawn Scripting - Tips, Basics to Advanced
Expert of CMD/VBS/VB6. Malware analyst. L4D1 fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 00:45.

Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode