•  
     

Reset Score - AMXX

Zera o score e deaths

Código: Selecionar todos

#include <amxmodx>
#include <cstrike>
#include <fun>
public plugin_init(){
register_plugin("Reset Score","1.0","Anderson")
register_clcmd("say /resetscore","reset_score")
register_clcmd("say /restartscore","reset_score")
register_clcmd("say /rs","reset_score")
register_clcmd("say /rr","reset_score")
register_clcmd("say .rr","reset_score")  
}
public reset_score(id){
cs_set_user_deaths(id,0)
set_user_frags(id,0)
cs_set_user_deaths(id,0)
set_user_frags(id,0)
new name[33]
get_user_name(id,name,32)
client_print(0,print_chat,"%s zerou o score",name)
return PLUGIN_HANDLED
}
 
Muita gente tbm utiliza o say .frag

Seria uma boa colocar :D
 

Código: Selecionar todos

#include <amxmodx>
#include <cstrike>
#include <fun>
public plugin_init(){
register_plugin("Reset Score","1.0","Anderson")
register_clcmd("say /resetscore","reset_score")
register_clcmd("say /restartscore","reset_score")
register_clcmd("say /rs","reset_score")
register_clcmd("say /rr","reset_score")
register_clcmd("say .rr","reset_score") 
register_clcmd("say .frag","reset_score")   
}
public reset_score(id){
cs_set_user_deaths(id,0)
set_user_frags(id,0)
cs_set_user_deaths(id,0)
set_user_frags(id,0)
new name[33]
get_user_name(id,name,32)
client_print(0,print_chat,"%s zerou o score",name)
return PLUGIN_HANDLED
}