Alıntı akcaliberkk Nickli Üyeden Alıntı Mesajı göster
PHP- Kodu:
/*
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  300.0 //Default of 10 minuites

new pcvar_Display
public plugin_init()
{
    
register_plugin("Reset Score""1.0""Silenttt")
    
    
//You may type /reset or /rr
    
register_clcmd("say /reset""reset_score")
    
register_clcmd("say /rr""reset_score")
    
    
//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")
    
}
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)
        
chat_color(0"!t[ ~ NiCoMeDiA ~ ] !y--> %s !gScorunu Sifirladi ..!"name)
    }
    else
    {
        
chat_color(id"!t[ ~ NiCoMeDiA ~ ] !y--> !gScorunu Sifirladin ..!")
    }
}
public 
connectmessage(id)
{
    if(
is_user_connected(id))
    {
        
client_print(idprint_chat"[ ~ NiCoMeDiA ~ ] --> /reset veya /rr Yazarak Scorunu Sifirliyabilirsin ..!)")
    }
}
stock chat_color(const id, const input[], any:...) 
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4")
    
replace_all(msg190"!y""^1")
    
replace_all(msg190"!t""^3")
    
replace_all(msg190"!team2""^0")
    
    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();
        }
    }
    

Yazı kaldırıldı.
Serverinde Kullandığın Top15 Top10 rankstats me pluginin varmı kendi kullandığın

internettekiler yamuk yumuk .s