Raised This Month: $ Target: $400
 0% 

[ES] Como ejecuto cierta cvar en cierto mapa?


  
 
 
Thread Tools Display Modes
Author Message
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 11-16-2009 , 19:20   [ES] Como ejecuto cierta cvar en cierto mapa?
#1

El titulo lo dice todo u.u

Digamos que si el mapa esta en inferno, el roundtime sea 20, cuando el roundtime normal es 50.

No .cfg's... porfa: D
AfteR. is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 11-16-2009 , 19:22   Re: [ES] Como ejecuto cierta cvar en cierto mapa?
#2

amxmodx/config/maps/de_infierno.cfg

adentro de de_infierno.cfg
pones
mp_roundtime 20
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 11-16-2009 , 19:25   Re: [ES] Como ejecuto cierta cvar en cierto mapa?
#3

Quote:
Originally Posted by AfteR. View Post

No .cfg's... porfa: D
AfteR. is offline
01010011 01000111
BANNED
Join Date: Nov 2009
Old 11-16-2009 , 19:37   Re: [ES] Como ejecuto cierta cvar en cierto mapa?
#4

get_map_name...
if(equali...
01010011 01000111 is offline
Old 11-16-2009, 19:41
Asd'
This message has been deleted by Asd'.
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 11-16-2009 , 19:47   Re: [ES] Como ejecuto cierta cvar en cierto mapa?
#5

PHP Code:
#include <amxmodx>
 
new const author[] = "lucas_7_94"
new const name[] = "RoundTime =O"
 
public plugin_init() {
    
register_plugin(name"1.0"author)
    new 
mapname[32]
    
get_mapname(mapnamecharsmax(mapname))
    if (
equali(mapname"de_inferno")) 
        
server_cmd("mp_roundtime 50")

Esta mal o me estoy equivocando ?
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.

Last edited by lucas_7_94; 11-16-2009 at 20:10. Reason: Fixed by AntiBots [?]
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 11-16-2009 , 20:07   Re: [ES] Como ejecuto cierta cvar en cierto mapa?
#6

lucas estas muy equivocado usando un static en plugin_inits q es llamado 1 sola vez en su puta creacion de la variable.


Saludos.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-16-2009 , 20:09   Re: [ES] Como ejecuto cierta cvar en cierto mapa?
#7

Code:
 臖      #8 Sic   k   neSS                      ~ [ My heart is just too dark to care ] ~      dice:
*porque static?
*no tendria que ser new?
ReymonARG // dice:
*por
*static es
*para q se cree una vez
*y luega la usas
*que en la memoria
*para q queres una static
*si la usas una vez
*que memoria ocupada
*al pedo
   臖      #8 Sic   k   neSS                      ~ [ My heart is just too dark to care ] ~      dice:
*claro
*ahora entiendo
*para que mierda
*es un staticxD
*nunca lo use
xD!

Last edited by #8 SickneSS; 11-16-2009 at 20:14.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 11-16-2009 , 20:10   Re: [ES] Como ejecuto cierta cvar en cierto mapa?
#8

Es asi?

PHP Code:
#include <amxmodx>
 
new const author[] = "lucas_7_94"
new const name[] = "RoundTime =O"
 
public plugin_init() {
    
register_plugin(name"1.0"author)
    new 
mapname[32]
    
get_mapname(mapnamecharsmax(mapname))
    if (
equali(mapname"de_inferno")) 
        
server_cmd("mp_roundtime 50")

Raddish is offline
01010011 01000111
BANNED
Join Date: Nov 2009
Old 11-16-2009 , 20:10   Re: [ES] Como ejecuto cierta cvar en cierto mapa?
#9

Quote:
Originally Posted by #8 SickneSS View Post
maybe in plugin_precache?
Entendiste al menos un 1% de lo que dijo reymon?

Quote:
Originally Posted by AntiBots View Post
lucas estas muy equivocado usando un static en plugin_inits q es llamado 1 sola vez en su puta creacion de la variable.


Saludos.
01010011 01000111 is offline
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 11-16-2009 , 21:58   Re: [ES] Como ejecuto cierta cvar en cierto mapa?
#10

Se bugean los que me dieron :S

Cambio a inferno, y anda. Cambio a dust2 y el comando sigue u.u
AfteR. is offline
 



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


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