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

ㅤㅤ


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DrWarpMan
Junior Member
Join Date: Jul 2016
Old 09-24-2016 , 07:21   ㅤㅤ
Reply With Quote #1

ㅤㅤ

Last edited by DrWarpMan; 01-28-2023 at 04:45. Reason: deletion
DrWarpMan is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 09-24-2016 , 07:51   Re: [REQ] Show players alive
Reply With Quote #2

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "Show Players"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
set_task(0.5"ShowPlayers")
}

public 
ShowPlayers() {
    new 
players[32], inumtplayersctplayerstalivectalive
    get_players
(playersinum)
    
    for(new 
iinumi++) {
        switch(
cs_get_user_team(players[i])) {
            case 
CS_TEAM_CT: {
                
ctplayers++
                if(
is_user_alive(players[i])) {
                    
ctalive++
                }
            }
            
            case 
CS_TEAM_T: {
                
tplayers++
                
                if(
is_user_alive(players[i])) {
                    
talive++
                }
            }
        }
        
set_hudmessage(random(255), random(255), random(255), -1.00.000.02.00.10.2, -1)
        
show_hudmessage(players[i], "Terrorists: %i/%i | Counter-Terrorists: %i/%i"talivetplayersctalivectplayers)
    }
    
set_task(1.0"ShowPlayers")

__________________

Last edited by Napoleon_be; 09-24-2016 at 07:52.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
DrWarpMan
Junior Member
Join Date: Jul 2016
Old 09-24-2016 , 08:27   Re: [REQ] Show players alive
Reply With Quote #3

ㅤㅤ

Last edited by DrWarpMan; 01-28-2023 at 04:44. Reason: deletion
DrWarpMan 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 04:32.


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