Raised This Month: $ Target: $400
 0% 

5 vs 5, los demas spec & Hook say team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Swaycher
Senior Member
Join Date: Feb 2009
Location: Arg/MyHome/PawnStudio
Old 09-20-2012 , 16:08   Re: 5 vs 5, los demas spec
#2

No lo termine, pero es un comienzo

PHP Code:
#include <amxmodx>
#include <fun>
#include <cstrike>

new g_Maxplayers

public plugin_init()
{
    
register_plugin("5 vs 5""1.0""KiLlEsT(Swaycher)")
    
    
register_clcmd("say /test""inicia_funcion")
    
    
g_Maxplayers clamp(get_maxplayers(), 132)
}

public 
inicia_funcion(id)
{
    if (!(
get_user_flags(id) & ADMIN_MENU))
        return
    
    if (
get_playersnum() == 10)
    {
        for (new 
1<= g_Maxplayersi++)
        {
            if (!
is_user_connected(i)) continue
            
            
cs_set_user_team(irandom_num(12)) //No estoy seguro de si este bien, lo único que le temo a esto es que mande a todos a un mismo team random.
        
}
    }
    else if (
get_playersnum() > 10)
    {
        
//Intente hacer esta parte pero tuve errores y no se me ocurre como hacerla.
    
}
    else
    {
        
client_print(idprint_center"No hay suficientes jugadores conectados para ejecutar esta funcion!")
        return
    }

__________________
Quote:
Originally Posted by fearAR View Post
Claro esta que no tengo idea de como verificar los diferentes cortes de ángulo.
http://forums.alliedmods.net/showthread.php?t=196349
Swaycher is offline
Send a message via MSN to Swaycher Send a message via Skype™ to Swaycher
 



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:10.


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