[CS:GO]Bool for clients
Hi,
How can I toggle a bool (or any variable that can do this) not globaly but only for the client that did the command like: Code:
Player A do : sm_command Sorry for the (I think)not useful post. |
Re: [CS:GO]Bool for clients
I don't know why you can't use a global two dimensional boolean, but you could probably use a static boolean.
|
Re: [CS:GO]Bool for clients
Quote:
PHP Code:
|
Re: [CS:GO]Bool for clients
Quote:
|
Re: [CS:GO]Bool for clients
bool Comm[MaxClients + 1];
Comm[client] = !Comm[client]; |
Re: [CS:GO]Bool for clients
Quote:
|
Re: [CS:GO]Bool for clients
derp
bool Comm[MAXPLAYERS + 1]; bool Comm[] = new bool[MaxClients + 1]; One of those, depending on where it's declared and/or initialized, right? Source Engine games are making my machine BSOD, so I've been getting rusty. :P |
Re: [CS:GO]Bool for clients
Quote:
|
Re: [CS:GO]Bool for clients
The code has to look like this though
PHP Code:
|
Re: [CS:GO]Bool for clients
Quote:
Code:
// global |
All times are GMT -4. The time now is 16:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.