Raised This Month: $51 Target: $400
 12% 

Small Help in code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 06-10-2017 , 03:43   Small Help in code
Reply With Quote #1

I want code to count spec player and if spec count player is 0 a function will start

PHP Code:
public SelectionFinish()
{

    if(
want condtion here//count spec player and if spec count player is 0 function will start
    
{
        
set_dhudmessage(02550, -1.0, -1.000.08.00.10.2)
        
show_dhudmessage(0"Team are Set !^n^nFirst Half will start Now...^nRestart in 5seconds")
        
SelectionON 0
        TeamSelection 
0
        set_task
(5.0,"restart_final")
        
server_cmd("mp_roundtime 1.75")
    }

__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 06-10-2017 , 04:06   Re: Small Help in code
Reply With Quote #2

Code:
public YourFunction( ) {     new szPlayers[ 32 ], iNum ;     get_players( szPlayers, iNum, "e", "SPECTATOR" ) ;     if( iNum == 0  ) {         // .. your code .. //     }     return PLUGIN_CONTINUE ; }
__________________
edon1337 is offline
Reply



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 20:31.


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