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

[AYUDA] Con Un Modo


  
 
 
Thread Tools Display Modes
Author Message
TimooCS
Veteran Member
Join Date: Dec 2012
Location: Argentina
Old 03-04-2013 , 14:16   [AYUDA] Con Un Modo
#1

hola alguien me ayuda?
como pongo para que puedan aver por ejemplo
1 wesker, 1 sniper, 1 leon, 1 survivor, 1 ninja, versus nemesis, hunters y assasins?
yo puse
humanme (bla bla... ) y no me salio
osea el modo me anda, pero soy 1 survivor contra zombies... si alguien me ayudara

gracias de antemano
__________________
TimooCS is offline
Send a message via MSN to TimooCS Send a message via Skype™ to TimooCS
kikizon2
Senior Member
Join Date: Jan 2013
Old 03-04-2013 , 14:50   Re: [AYUDA] Con Un Modo
#2

El code?
kikizon2 is offline
TimooCS
Veteran Member
Join Date: Dec 2012
Location: Argentina
Old 03-04-2013 , 14:57   Re: [AYUDA] Con Un Modo
#3

._.
PHP Code:
else if ((mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_WALK) && random_num(1get_pcvar_num(cvar_walkchance)) == get_pcvar_num(cvar_walk) && floatround((iPlayersnum-2)*get_pcvar_float(cvar_walkratio), floatround_ceil) >= && iPlayersnum >= get_pcvar_num(cvar_walkminplayers)) || mode == MODE_WALK)
{
//Walk Mode
g_plagueround true
g_walkround 
true

// Turn someone into a Survivor, Predator, Wesker, Sniper, Ninja, Leon
id fnGetRandomAlive(random_num(1iPlayersnum))
humanme(id1,1,0,0,0,1,1)

// Turn someone into a Nemesis (not the survivor!)
while (g_survivor[id]) id fnGetRandomAlive(random_num(1iPlayersnum));
zombieme(id011,1,1)

// iMaxZombies is rounded up, in case there aren't enough players
iMaxZombies floatround((iPlayersnum-2)*get_pcvar_float(cvar_plagueratio), floatround_ceil)
iZombies 0

// Randomly turn iMaxZombies players into zombies
while (iZombies iMaxZombies)
{
if (
id g_maxplayers)
id++
else
id 1

// Dead or already a zombie or survivor
if (!is_user_alive(id) || g_zombie[id] || g_survivor[id])
continue;

// Random chance
if (random_num(01))
{
// Turn into a nemesis, assasin, hunter
zombieme(id011,1,1)
iZombies++
}
}

// Turn the rest of players into humans
for (id 1id <= g_maxplayersid++)
{
// Only those of them who arent zombies or survivor
if (!is_user_alive(id) || g_zombie[id] || g_survivor[id])
continue

// Remove previous tasks and make them survivors
remove_task(id+TASK_TEAM)
humanme(id1,1,0,0,0,1,1)

/* Switch to CT
if (fm_get_user_team(id) != CS_TEAM_CT) // need to change team?
{
fm_set_user_team(id, CS_TEAM_CT)
set_task(0.1+g_teams_i, "fm_set_user_team_msg", id+TASK_TEAM)
g_teams_i += 0.1; // increase teams task counter
}*/
}

// Play plague sound
PlaySound(sound_plague[random_num(0sizeof sound_plague -1)]);

// Show Plague HUD notice
set_hudmessage(050200, -1.00.1710.05.01.01.0, -1)
ShowSyncHudMsg(0g_MsgSync"%L"LANG_PLAYER"NOTICE_WALK")

// Round start forward
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_WALK0);

si necesitas otra parte decime ;)
__________________
TimooCS is offline
Send a message via MSN to TimooCS Send a message via Skype™ to TimooCS
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 03-04-2013 , 16:35   Re: [AYUDA] Con Un Modo
#4

optimiza el humanme uno poco...

en el humanme también se puede poner un 2 e.e
baneado is offline
TimooCS
Veteran Member
Join Date: Dec 2012
Location: Argentina
Old 03-04-2013 , 16:38   Re: [AYUDA] Con Un Modo
#5

y para que serviria el 2? y el humanme es asi capo.. ni idea como optimizarlo porque es asi -.-
__________________
TimooCS is offline
Send a message via MSN to TimooCS Send a message via Skype™ to TimooCS
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 03-04-2013 , 16:50   Re: [AYUDA] Con Un Modo
#6

Quote:
Originally Posted by TimooCS View Post
y para que serviria el 2? y el humanme es asi capo.. ni idea como optimizarlo porque es asi -.-
para no tener que utilizar: humanme(id, 0, 1, 1, 0, 1, 0...)

si con en el humanme pones un wesker y un survivor le puedes poner el 1 al survivor y el 2 al wesker
y dentro del humanme: if (survwesk == 1), else if (survwesk == 2)

estoy con el movil y no te lo puedo explicar mejor..
baneado is offline
TimooCS
Veteran Member
Join Date: Dec 2012
Location: Argentina
Old 03-04-2013 , 17:08   Re: [AYUDA] Con Un Modo
#7

mm... aver si llego a entender.. sino muestro los errores.
__________________
TimooCS is offline
Send a message via MSN to TimooCS Send a message via Skype™ to TimooCS
Old 03-04-2013, 20:10
XxDioSxX
This message has been deleted by XxDioSxX. Reason: laggg
XxDioSxX
Senior Member
Join Date: Nov 2012
Location: argentina
Old 03-04-2013 , 20:10   Re: [AYUDA] Con Un Modo
#8

aver si alguien me corrije por que ando medio oxidado para crear modos ahora..xD

PHP Code:
}
    else if ((
mode == MODE_NONE && (!get_pcvar_num(cvar_preventconsecutive) || g_lastmode != MODE_ASD) && random_num(1get_pcvar_num(cvar_asdchance)) == get_pcvar_num(cvar_asd) && floatround((iPlayersnum-2)*get_pcvar_float(cvar_asdratio), floatround_ceil) >= && iPlayersnum >= get_pcvar_num(cvar_asdminplayers)) || mode == MODE_ASD)
{

// Modo ASD
g_asdround true
        
        
        
// Turn 3 into a nemesis
        
for ( new 03i++ )
        {
            
id fnGetRandomAlive(random_num(1iPlayersnum))
            if (!
g_nemesis[id])
                
zombieme(id010// cambia los id
            
else
                
i--
        }
        
// Turn 3 into a assessinos
        
for ( new 03i++ )
        {
            
id fnGetRandomAlive(random_num(1iPlayersnum))
            if (!
g_nemesis[id])  // no importa si esta con la del nemesis solo cambia la id
                
zombieme(id020//cambia los id
            
else
                
i--
        }
        
// Turn 3 into a Hunter???? es una nueva clase zombie?
        
for ( new 0< ; i++ )
        {
            
id fnGetRandomAlive(random_num(1iPlayersnum))
            if (!
g_nemesis[id])
                
zombieme(id0, ?, 0)  // cambia los id
            
else
                
i--
        }
            
// el resto lo pasamos a zombie
        
for (id 1id <= g_maxplayersid++)
        {
            
// Not alive
            
if (!is_user_alive(id))
                continue;
            
            
// Depredador or already a zombie
            
if (g_survivor[id] || g_zombie[id])
                continue;
            
            
// Turn into a zombie
            
zombieme(id001)
        }
        
 
// cambia los human id con los tuyos....
id fnGetRandomAlive(random_num(1iPlayersnum))
humanme(id1// 1 humanos
id fnGetRandomAlive(random_num(1iPlayersnum))
if (
g_zombie[id])
{
    
humanme(id1// 2 humanos
    


id fnGetRandomAlive(random_num(1iPlayersnum))
if (
g_zombie[id])
{
    
humanme(id1// 3 humanos
    
}

id fnGetRandomAlive(random_num(1iPlayersnum))
if (
g_zombie[id])
{
    
humanme(id1// 4 humanos
    
}

id fnGetRandomAlive(random_num(1iPlayersnum))
if (
g_zombie[id])
{
    
humanme(id1// 5 humanos
    
}

// Play l4d sound
PlaySound(sound_l4d[random_num(0sizeof sound_l4d -1)]);


ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_ASD0);


Last edited by XxDioSxX; 03-04-2013 at 20:13. Reason: pinche lagg..xD
XxDioSxX is offline
Send a message via MSN to XxDioSxX Send a message via Skype™ to XxDioSxX
TimooCS
Veteran Member
Join Date: Dec 2012
Location: Argentina
Old 03-04-2013 , 20:38   Re: [AYUDA] Con Un Modo
#9

ahora pruebo y te digo ;)
__________________
TimooCS is offline
Send a message via MSN to TimooCS Send a message via Skype™ to TimooCS
XxDioSxX
Senior Member
Join Date: Nov 2012
Location: argentina
Old 03-04-2013 , 20:54   Re: [AYUDA] Con Un Modo
#10

avisame los error y si no tenes problemas al compilar cuando probes decime si tiene bug...
el modo que hice tiene

sniper,wesker, leon, ninja, survivor VS 3 nemesis, 3 assessinos,3 hunter? y el resto zombies
XxDioSxX is offline
Send a message via MSN to XxDioSxX Send a message via Skype™ to XxDioSxX
 


Thread Tools
Display Modes

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 08:22.


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