Raised This Month: $ Target: $400
 0% 

[Help]Como Hago Esto!


  
 
 
Thread Tools Display Modes
Author Message
lJosdel
Member
Join Date: Mar 2013
Old 07-16-2013 , 17:54   [Help]Como Hago Esto!
#1

Como hago que el resetscore muestre el nombre en publico el que se lo resetio y yo pongo el mensaje Solo diganme como hacerlo me imagino si es simple
lJosdel is offline
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 07-16-2013 , 18:48   Re: [Help]Como Hago Esto!
#2

pone un titulo descriptivo.

off: siempre quise decir eso T_T
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"
Roccoxx is offline
Send a message via MSN to Roccoxx
Ciio
Veteran Member
Join Date: Oct 2009
Location: Arica, Chile
Old 07-16-2013 , 19:35   Re: [Help]Como Hago Esto!
#3

deja el codigo del plugin y te podremos ayudar :s
__________________
Ciio is offline
Send a message via MSN to Ciio
lJosdel
Member
Join Date: Mar 2013
Old 07-17-2013 , 12:46   Re: [Help]Como Hago Esto!
#4

PHP Code:
/*
   This is a simple plugin I made that will just restart a players score
   making their deaths and kills set to 0, this is to help players out a
   little bit because they no longer have to reconnect or retry if they
   want their score to start over, they can just type a simple command
   
      ---------------------------------
       --------- MADE BY SILENTTT -----
        ------ MADE BY SILENTTT ------
         --  MADE BY SILENTTT -------
        ------ MADE BY SILENTTT ------
       --------- MADE BY SILENTTT -----
      ---------------------------------
*/

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime     600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display

public plugin_init()
{
    
register_plugin("Reset Score""1.0""Silenttt")
    
    
//You may type /resetscore or /restartscore
    
register_clcmd("say resetscore""reset_score")
    
register_clcmd("say restartscore""reset_score")
    
register_clcmd("say rs""reset_score")
    
    
//This command by default will be set at 0
    //Change it to 1 in server.cfg if you want
    //A message to be shown to advertise this.
    
pcvar_Advertise register_cvar("sv_rsadvertise""0")
    
//This command by default is also 0
    //Change it to 1 in server.cfg if you want
    //It to show who reset their scores when they do it
    
pcvar_Display register_cvar("sv_rsdisplay""0")
    
    if(
get_cvar_num("sv_rsadvertise") == 1)
    {
        
set_task(adtime"advertise"___"b")
    }
}

public 
reset_score(id)
{
    
//These both NEED to be done twice, otherwise your frags wont
    //until the next round
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
    if(
get_pcvar_num(pcvar_Display) == 1)
    {
        new 
name[33]
        
get_user_name(idname32)
        
client_print(0print_chat"%s Tú Acabas de Reiniciar Tu Score"name)
    }
    else
    {
        
ChatColor(id"!g[SAO] !yAcabas de Reiniciar Tu Score")
    }
    return 
PLUGIN_HANDLED
}

public 
advertise()
{
    
set_hudmessage(25500, -1.00.2000.212.0)
    
show_hudmessage(0"Escribe /rs Y tu Score Se Reseteara")
}

public 
client_putinserver(id)
{
    if(
get_pcvar_num(pcvar_Advertise) == 1)
    {
        
set_task(10.0"connectmessage"id__"a"1)
    }
}

public 
connectmessage(id)
{
    if(
is_user_connected(id))
    {
    
ChatColor(id"!g[SAO] !yEscribe /rs Sin nesecidad de Reiniciar el Server :)")
    }
}

/*--------------------------------------------------------------------------------------------------
-----------------------------------------------COLOR CHAT-----------------------------------------*/

stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Green Color
    
replace_all(msg190"!y""^1"// Default Color
    
replace_all(msg190"!team""^3"// Team Color
    
replace_all(msg190"!team2""^0"// Team2 Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

Mejor?

Last edited by lJosdel; 07-17-2013 at 12:51.
lJosdel is offline
lJosdel
Member
Join Date: Mar 2013
Old 07-19-2013 , 11:26   Re: [Help]Como Hago Esto!
#5

Porfavor Ayudenme t-t
lJosdel is offline
_Pro_
Senior Member
Join Date: Mar 2012
Location: Argentina
Old 07-19-2013 , 11:43   Re: [Help]Como Hago Esto!
#6

No bumpees, nadie te va a ayudar asi. Ademas el titulo no es descriptivo, no sabemos de que se trata el thread, directamente nadie entra a ver...
_Pro_ is offline
Send a message via MSN to _Pro_ Send a message via Skype™ to _Pro_
MexPower
Veteran Member
Join Date: Nov 2012
Old 07-19-2013 , 14:43   Re: [Help]Como Hago Esto!
#7

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

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /rs","clcmd_resetscore")
    
register_clcmd("say /resetscore","clcmd_resetscore")
}
public 
clcmd_resetscore(puta)
{
    
set_user_frags(puta0)
    
cs_set_user_deaths(puta0)
    
    new 
szname[33]; get_user_name(putasznamecharsmax(szname))
    
client_print(0print_chat"%s ha resetiado su score"szname)

__________________
Allied Modders En Espaņol
MexPower 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 05:10.


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