Raised This Month: $32 Target: $400
 8% 

Advanced Resetscore 1.0.0 (15/08/2013 - Thursday)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
happy_2012
Senior Member
Join Date: Aug 2012
Old 08-15-2013 , 05:47   Advanced Resetscore 1.0.0 (15/08/2013 - Thursday)
Reply With Quote #1

ADVANCED RESETSCORE
Counter-Strike 1.6 Gameplay Plugin
About:
This plugin resets your kill, death and frags on the score board, this plugin can be added on any server, but requires at least AMX Mod X 1.8.1

Commands:
- say /resetscore
- say /restartscore
- say /rs

- say_team /resetscore
- say_team /restartscore
- say_team /rs

NOTE: It's also not needed to add the '/' symbol to any of the previous commands I've stated above!

Plugin Code:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "Advanced Resetscore"
#define VERSION "1.0.0"
#define AUTHOR "happy_2012"
#define rs_adtime 120.0
new pcvar_Advertise
new pcvar_Display
public plugin_init() {
 
 
register_plugin("Advanced Resetscore""1.0.0""happy_2012")
 
 
// General chat resetscore commands
 
register_clcmd("say /resetscore""reset_score")
 
register_clcmd("say resetscore""reset_score")
 
register_clcmd("say /restartscore""reset_score")
 
register_clcmd("say restartscore""reset_score")
 
register_clcmd("say /rs""reset_score")
 
register_clcmd("say rs""reset_score")
 
 
// Team chat resetscore commands
 
register_clcmd("say_team /resetscore""reset_score")
 
register_clcmd("say_team resetscore""reset_score")
 
register_clcmd("say_team /restartscore""reset_score")
 
register_clcmd("say_team restartscore""reset_score")
 
register_clcmd("say_team /rs""reset_score")
 
register_clcmd("say_team rs""reset_score")
 
 
pcvar_Advertise register_cvar("rs_advertise""1")
 
pcvar_Display register_cvar("rs_display""1")
 
 if(
get_cvar_num("rs_advertise") == 1)
 {
  
set_task(rs_adtime"advertise"___"b")
 }
 
}
public 
reset_score(id) {
 
 
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)
 {
  
color_saytext(id"^x01[^x04 Advanced Resetscore ^x01] You have just reseted your score")
 }
}
public 
advertise() {
 
 
set_hudmessage(25500, -1.00.2000.212.0)
 
show_hudmessage(0"This server is running Advanced Resetscore^nMade by happy_2012 @ www.zombies4ever.tk")
 
}
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))
 {
  
color_saytext(id"^x01[^x04 Advanced Resetscore ^x01] ^x01Say ^x04/rs ^x01to reset your score")
 }
}
color_saytext(player, const message[], any:...){
 
 new 
text[301]
 
format(text300"%s"message)
 new 
dest
 
if (playerdest MSG_ONE
 
else dest MSG_ALL
 
 message_begin
(destget_user_msgid("SayText"), {0,0,0}, player)
 
write_byte(1)
 
write_string(check_text(text))
 return 
message_end()
 
}
check_text(text1[]){
 
 new 
text[301]
 
format(text300"%s"text1)
 
replace(text300"!g""^x04")
 
replace(text300"!t""^x03")
 
replace(text300"!y""^x01")
 return 
text
 
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ fbidis\\ ansi\\ ansicpg1256\\ deff0\\ deflang11265{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ ltrpar\\ f0\\ fs16 \n\\ par }
*/ 
Credits:
happy_2012 (Troopz): Creating and coding the plugin
silentt: The idea of making resetscore plugin as the main developer of it

Special Thanks:
dias: For some codes I've used from her/his zombie plague classes plugins
silentt: For the idea of making resetscore plugin as the main developer of it
KiLLeR: For helping me testing the plugin and providing a test server

Installation:
- Open your FTP / gamemod directory
- Open addons directory
- Open amxmodx directory
- Move/copy the scripting file to scripting folder (OPTIONAL)
- Move/copy the plugin file to plugins folder
- Open configs directory
- Edit your plugins.ini file and add a line: advanced_resetscore.amxx

Download:
You can find the scripting file, plugin file and a compressed file (.zip file) in the attachments below!

Regards,
happy_2013
Attached Files
File Type: sma Get Plugin or Get Source (advanced_resetscore.sma - 3338 views - 2.8 KB)
__________________
Discord contacts:
I rarely look at private messages here, but I am very active on Discord!

Last edited by YamiKaitou; 08-15-2013 at 07:08.
happy_2012 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 08-15-2013 , 06:18   Re: Advanced Resetscore 1.0.0 (15/08/2013 - Thursday)
Reply With Quote #2

there are lot of plugins like that
__________________
Jhob94 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-15-2013 , 07:08   Re: Advanced Resetscore 1.0.0 (15/08/2013 - Thursday)
Reply With Quote #3

ZIP file remove, you are not allowed to upload AMXX files
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 08-15-2013 , 08:29   Re: Advanced Resetscore 1.0.0 (15/08/2013 - Thursday)
Reply With Quote #4

Why is this advanced? Plugin is redundant
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
happy_2012
Senior Member
Join Date: Aug 2012
Old 08-15-2013 , 10:24   Re: Advanced Resetscore 1.0.0 (15/08/2013 - Thursday)
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
ZIP file remove, you are not allowed to upload AMXX files
I know I am not allowed to upload .amxx file, but I thought I can move to a ZIP file, thanks anyway

And yes it's better than other resetscore plugins I see on this forums (I guess)
__________________
Discord contacts:
I rarely look at private messages here, but I am very active on Discord!
happy_2012 is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-15-2013 , 10:25   Re: Advanced Resetscore 1.0.0 (15/08/2013 - Thursday)
Reply With Quote #6

You just added some colors, and add this:

PHP Code:

// General chat resetscore commands 
 
register_clcmd("say /resetscore""reset_score"
 
register_clcmd("say resetscore""reset_score"
 
register_clcmd("say /restartscore""reset_score"
 
register_clcmd("say restartscore""reset_score"
 
register_clcmd("say /rs""reset_score"
 
register_clcmd("say rs""reset_score"
  
 
// Team chat resetscore commands 
 
register_clcmd("say_team /resetscore""reset_score"
 
register_clcmd("say_team resetscore""reset_score"
 
register_clcmd("say_team /restartscore""reset_score"
 
register_clcmd("say_team restartscore""reset_score"
 
register_clcmd("say_team /rs""reset_score"
 
register_clcmd("say_team rs""reset_score"
sami_spt is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-15-2013 , 10:28   Re: Advanced Resetscore 1.0.0 (15/08/2013 - Thursday)
Reply With Quote #7

Quote:
Originally Posted by happy_2012 View Post
I know I am not allowed to upload .amxx file, but I thought I can move to a ZIP file, thanks anyway
It is the same thing, why would one method be allowed and another not be?

Quote:
And yes it's better than other resetscore plugins I see on this forums (I guess)
How so?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 08-15-2013 , 11:27   Re: Advanced Resetscore 1.0.0 (15/08/2013 - Thursday)
Reply With Quote #8

Quote:
Originally Posted by happy_2012 View Post
And yes it's better than other resetscore plugins I see on this forums (I guess)
There are more then one reset score plugin on forum. And one is already approved with more features
__________________
Jhob94 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-16-2013 , 02:31   Re: Advanced Resetscore 1.0.0 (15/08/2013 - Thursday)
Reply With Quote #9

Badly coded (mistakes copied from existing plugins) and redundant.
Unapproved.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Moinmono
New Member
Join Date: Aug 2017
Old 08-09-2017 , 15:38   Re: Advanced Resetscore 1.0.0 (15/08/2013 - Thursday)
Reply With Quote #10

how to change wording of you have just reset your score ??
Moinmono is offline
Reply


Thread Tools
Display Modes

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 10:14.


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