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

problema con rr5


  
 
 
Thread Tools Display Modes
MexPower
Veteran Member
Join Date: Nov 2012
Old 05-20-2013 , 15:47   Re: problema con rr5
#11

Quote:
Originally Posted by StrikerV2 View Post
PD :

PHP Code:
register_clcmd("say /vale","rr5"
--------------------------->
PHP Code:
register_clcmd("say /vale","rr5"ADMIN_KICK
Eso que?
__________________
Allied Modders En Espaņol
MexPower is offline
Winchester90
Senior Member
Join Date: May 2013
Location: Dale! RG4L Baby
Old 05-20-2013 , 15:54   Re: problema con rr5
#12

Por dios!

PHP Code:
#include <amxmodx> 
#include <amxmisc>

public plugin_init() 

    
register_clcmd("say /vale","rr5"

public 
rr5()

    if(
is_user_admin(id))
    {
    
server_cmd("sv_restart 5"
    
set_task(2.0"hud"

}
public 
hud()

    
set_hudmessage(00255, -1.0, -1.016.06.0
    
show_hudmessage(0"BATE MAKER VALE"
    
    
set_task(2.0"hud"

__________________
Proyectos No comercio XD
Zombie Resurection 1.0 (45%)
Winchester90 is offline
StrikerV2
Senior Member
Join Date: Nov 2012
Location: Chile , O Yes!
Old 05-20-2013 , 19:52   Re: problema con rr5
#13

Quote:
Originally Posted by Winchester90 View Post
Por dios!

PHP Code:
#include <amxmodx> 
#include <amxmisc>

public plugin_init() 

    
register_clcmd("say /vale","rr5"

public 
rr5()

    if(
is_user_admin(id))
    {
    
server_cmd("sv_restart 5"
    
set_task(2.0"hud"

}
public 
hud()

    
set_hudmessage(00255, -1.0, -1.016.06.0
    
show_hudmessage(0"BATE MAKER VALE"
    
    
set_task(2.0"hud"

mejor como deje yo.

register_clcmd("say /vale","rr5", ADMIN_KICK)
__________________
Mi firma era tan sexy .-.

Last edited by StrikerV2; 05-20-2013 at 19:52.
StrikerV2 is offline
Send a message via MSN to StrikerV2
Fuck_You
Senior Member
Join Date: Dec 2011
Location: return city[id];
Old 05-20-2013 , 20:48   Re: problema con rr5
#14

Quote:
Originally Posted by Winchester90 View Post
Por dios!

PHP Code:
#include <amxmodx> 
#include <amxmisc>

public plugin_init() 

    
register_clcmd("say /vale","rr5"

public 
rr5()

    if(
is_user_admin(id))
    {
    
server_cmd("sv_restart 5"
    
set_task(2.0"hud"

}
public 
hud()

    
set_hudmessage(00255, -1.0, -1.016.06.0
    
show_hudmessage(0"BATE MAKER VALE"
    
    
set_task(2.0"hud"

aprende a tabular bien tu code, aprende a colocar bien los index y los parametros y luego mofate de los demas "Por dios"

le agrege algunas cosas

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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Nuevo plugin"
#define VERSION "1.0"
#define AUTHOR "Fuck You"

new currentrr 0cvartimecvarveces;
new const 
message[] = "Bate Maker Vale";

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /rr""restart"ADMIN_BAN)
    
cvartime register_cvar("amx_rrtime""5")
    
cvarveces register_cvar("amx_rrveces""3")
}

public 
restart(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED;
    
    if(
currentrr get_pcvar_num(cvarveces))
        
currentrr += 1;
    else
    {
        
currentrr 0;
        return 
PLUGIN_HANDLED;
    }
    new 
Float:tiempo;
    
    
server_cmd("sv_restart %i"get_pcvar_num(cvartime))
    
tiempo get_pcvar_num(cvartime) - 1.0;
    
set_task(tiempo"hud",0)
    
tiempo get_pcvar_num(cvartime) + 1.0;
    
set_task(tiempo"restart"0)
    return 
PLUGIN_HANDLED;
}

public 
hud()
{
    
set_hudmessage(02550, -1.0, -1.0)
    
show_hudmessage(0"%s: %i"messagecurrentrr)

Code:
OutPut del Hud:

Bate Maker Vale: 1
Bate Maker Vale: 2
Bate Maker Vale: 3
__________________

Last edited by Fuck_You; 05-20-2013 at 21:13.
Fuck_You 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 04:20.


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