Raised This Month: $ Target: $400
 0% 

Showing results 1 to 7 of 7
Search took 0.00 seconds.
Search: Posts Made By: thisisinfuriating
Forum: Scripting Help 08-19-2018, 14:45
Replies: 15
Views: 1,627
Posted By thisisinfuriating
Re: get_playersnum() help

new Players[32], NumT, NumCT;
get_players(Players, NumT, "eh", "TERRORIST");
get_players(Players, NumCT, "eh", "CT");

if((NumT + NumCT) < 6)
return 0;

Would adding this at...
Forum: Scripting Help 08-19-2018, 14:34
Replies: 15
Views: 1,627
Posted By thisisinfuriating
Re: get_playersnum() help

Well, wouldn't that stop it from counting stats if there's less than 6 players, and re-enable it when more or equal to 6 players join?
Forum: Scripting Help 08-19-2018, 14:06
Replies: 15
Views: 1,627
Posted By thisisinfuriating
Re: get_playersnum() help

new id;
new iUserAchs = GetUnlocksCount( id );

new Players[32],iPlayersNum;
get_players(Players,iPlayersNum,"ch");

if(iPlayersNum <= 6)
{
if(!iUserAchs)
{
Forum: Scripting Help 08-19-2018, 10:39
Replies: 15
Views: 1,627
Posted By thisisinfuriating
Re: get_playersnum() help

Oh, I'm so dumb, sorry :roll:

Here's the plugin I'm using

public client_disconnect( id ) {
g_bLoaded[ id ] = false;
g_iPlayTime[ id ] = 0;
g_iKillers[ id ] = 0;
g_flHealth[ id ] = 0.0;...
Forum: Scripting Help 08-19-2018, 10:04
Replies: 15
Views: 1,627
Posted By thisisinfuriating
Re: get_playersnum() help

1) I'm trying to check how many players are in the server to enable stats if the players <= 6
2) Well, that's the problem, I don't have it :oops:
Forum: Scripting Help 08-19-2018, 09:53
Replies: 15
Views: 1,627
Posted By thisisinfuriating
Re: get_playersnum() help

So should it look like this?

get_players(players,num,"ch","")

new Players = get_playersnum()

if( get_playersnum( ) <= 6 ) {


return;
Forum: Scripting Help 08-19-2018, 09:39
Replies: 15
Views: 1,627
Posted By thisisinfuriating
get_playersnum() help

I'm aware of the use of get_playersnum(), but I'm a somewhat a beginner in the world of AMXX

I have a plugin that counts stats(kills/deaths,etc..) and I want to disable it if players are less than...
Showing results 1 to 7 of 7

 
Forum Jump

All times are GMT -4. The time now is 21:33.


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