AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Round End (https://forums.alliedmods.net/showthread.php?t=229512)

wTf. 11-09-2013 07:00

Round End
 
I want to do round end the last player dies(CT or T it doesn't matter).

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "wTf."

new boolLastPlayer[33];

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
}
public 
client_putinserver(id) {
    
LastPlayer[id] = false
}
public function(
id) {
    
// other code..
    
    
new Players[32], onum;
    
get_players(Playersonum"ae""CT"// may be "TERRORIST"
    
    
if(onum == 1) {
        
LastPlayer[id] = true;
    }



wTf. 11-09-2013 08:18

Re: Round End
 
yes, i know that but, not work orphue module :|

usaexelent 11-09-2013 09:09

Re: Round End
 
Round ends automatically when the last player dies on team, so why do you need that?

wTf. 11-09-2013 09:14

Re: Round End
 
I use my zombie mod, it's not round end the last player dies :/


All times are GMT -4. The time now is 23:16.

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