Raised This Month: $ Target: $400
 0% 

Advanced ResetScore 2015


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
FanTaaaaaa
Junior Member
Join Date: Apr 2014
Location: Palestine
Old 10-05-2014 , 17:06   Advanced ResetScore 2015
Reply With Quote #1

Welcome..

This plugin for if you want to reset your score its not only /rs and you will reset your score.. you think its like the old version? nope its not.. here is screenshotes for my plugin

First screenshot: http://i62.tinypic.com/2e0k3kw.jpg

Second screenshot: http://i62.tinypic.com/25kj3ex.jpg

Good luck
/*

Plugin: Advanced Resetscore
Version: 1.0.0
Author: happy_2012
Website: www.zombies4ever.tk

*/

#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", "Troopz")

// 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(id, 0)
set_user_frags(id, 0)
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)

if(get_pcvar_num(pcvar_Display) == 1)
{
color_saytext(id, "^x01[^x04Server Name^x01] You have just reseted your score")
}
}

public advertise() {

set_hudmessage(255, 0, 0, -1.0, 0.20, 0, 0.2, 12.0)
show_hudmessage(0, "This server is running Advanced Resetscore^n,Visit www.sbz-multimod.webs.com")

}

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[^x04Server Name^x01] ^x01Say ^x04/rs ^x01to reset your score")
}
}

color_saytext(player, const message[], any:...){

new text[301]
format(text, 300, "%s", message)

new dest
if (player) dest = MSG_ONE
else dest = MSG_ALL

message_begin(dest, get_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(text, 300, "%s", text1)
replace(text, 300, "!g", "^x04")
replace(text, 300, "!t", "^x03")
replace(text, 300, "!y", "^x01")
return text

}
__________________
  • Plugins Developer

FanTaaaaaa is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-05-2014 , 17:40   Re: Advanced ResetScore 2015
Reply With Quote #2

Attach the SMA instead of posting the code in your post

Quote:
Originally Posted by FanTaaaaaa View Post
This plugin for if you want to reset your score its not only /rs and you will reset your score.. you think its like the old version? nope its not.. here is screenshotes for my plugin
What makes your different from the other(s)? The screenshots do not show any differences
__________________
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
ONEMDX
Junior Member
Join Date: Jan 2013
Old 10-05-2014 , 17:41   Re: Advanced ResetScore 2015
Reply With Quote #3

And what is so advanced and 2015 ?

My opinion: this is a trash

Last edited by ONEMDX; 10-05-2014 at 17:41.
ONEMDX is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 10-05-2014 , 18:01   Re: Advanced ResetScore 2015
Reply With Quote #4

This isn't different from the others. It is jsut a way to he advertise his website...
__________________
Jhob94 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 10-05-2014 , 21:58   Re: Advanced ResetScore 2015
Reply With Quote #5

Just use pcvar instead cvar. ;)
Code:
if(get_cvar_num("rs_advertise") == 1)

Last edited by zmd94; 10-06-2014 at 04:43.
zmd94 is offline
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 10-06-2014 , 00:38   Re: Advanced ResetScore 2015
Reply With Quote #6

he didn't code this for sure
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه

Last edited by 5aloOod; 10-06-2014 at 00:39.
5aloOod is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 10-06-2014 , 04:44   Re: Advanced ResetScore 2015
Reply With Quote #7

Code:
#define AUTHOR "happy_2012"
Who is happy_2012?
zmd94 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 07:33.


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