Raised This Month: $ Target: $400
 0% 

simple reset score log


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 08-10-2013 , 11:47   Re: simple reset score log
Reply With Quote #1

Try this:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <colorchat>

#define PLUGIN "rs basic"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /resetscore""cmdReset")
    
register_clcmd("say /restartscore""cmdReset")
    
register_clcmd("say /rs""cmdReset")
    
    
register_clcmd("say_team /resetscore""cmdReset")
    
register_clcmd("say_team /restartscore""cmdReset")
    
register_clcmd("say_team /rs""cmdReset")
    
}

public 
cmdReset(id){
    if( !
is_user_bot(id) && 1<=id<=get_maxplayers() ) {
           
cs_set_user_deaths(id0)
           
set_user_frags(id0)
           
cs_set_user_deaths(id0)
           
set_user_frags(id0)
    
           
ColorChat(idGREEN"^4[Resete Score] ^1Uspesno ste resetovali skor!")   
    } 
    return 
PLUGIN_HANDLED


Last edited by DWIGHTpN; 08-10-2013 at 11:48.
DWIGHTpN is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 08-10-2013 , 12:18   Re: simple reset score log
Reply With Quote #2

PHP Code:
public cmdReset(id){
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
    
client_print(idprint_chat"^4[Resete Score] ^1Uspesno ste resetovali skor!")    
    



PHP Code:
public cmdReset(id){
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
    
client_print(idprint_chat"^4[Resete Score] ^1Uspesno ste resetovali skor!")        

Then update players frags in the scoreboard.

@DWIGHTpN

No.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Reply



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 15:57.


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