Jump to content

[Plugin] RESET_SCORE // kenveloo


kenveloo

Recommended Posts

Nume plugin: RESET_SCORE

 Autor: kenveloo

 Engine ( HLDS / SRCDS ) : HLDS

 Versiune: 0.1

 Informatii: este un plugin pe care îl folosiți pentru a vă reseta scorul la 0 "/rs & /resetscore"

 Download: https://www.mediafire.com/file/fk0ku7ifvypatkw/reset_score.sma/file

 Instalare:  Adaugati fisierul "name.amxx" in folderul amxmodx/plugins
Mergeti in amxmodx/configs/plugins.ini, deschideti fisierul si adaugati la urma "name.amxx" 

  • Like 1
  • Love 1
  • Wow 1

1k.png.67dd8694981a027620fdf7a834f11a13.png

animated-arrow-image-0103.gif Respect & loyalty  animated-arrow-image-0104.gif

 

Link to comment
Share on other sites

  • kenveloo changed the title to [Plugin] RESET_SCORE // kenveloo
  • Premium
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

C:\Users\iusti\Downloads\reset_score.sma(15) : error 037: invalid string (possibly non-terminated string)
C:\Users\iusti\Downloads\reset_score.sma(16) : error 037: invalid string (possibly non-terminated string)
C:\Users\iusti\Downloads\reset_score.sma(16 -- 18) : error 001: expected token: ",", but found "new"
C:\Users\iusti\Downloads\reset_score.sma(21) : error 029: invalid expression, assumed zero
C:\Users\iusti\Downloads\reset_score.sma(26) : warning 217: loose indentation
C:\Users\iusti\Downloads\reset_score.sma(29) : warning 217: loose indentation
C:\Users\iusti\Downloads\reset_score.sma(29) : error 076: syntax error in the expression, or invalid function call
C:\Users\iusti\Downloads\reset_score.sma(29) : error 036: empty statement
C:\Users\iusti\Downloads\reset_score.sma(29) : error 017: undefined symbol "power_display"
C:\Users\iusti\Downloads\reset_score.sma(29) : fatal error 107: too many error messages on one line

Compilation aborted.
8 Errors.
Could not locate output file C:\Users\iusti\OneDrive\Desktop\Compilate AMXX//reset_score.amx (compile failed).
[Finished in 514ms]

 @kenveloo

1. new power_rsdisplay - Asta trebuie s-o faci globala nu in plugin_init. 

2. Ai uitat niste ghilimele sus la register_clcmd si niste paranteze. 

3, Sa faci o verificare in caz de jucatorul are deja 0 cu 0 

4. Pluginul este total habar nu am ce dar nu pare a resetscoare mai bine o incercare de ceva reset score. 

->

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define PLUGIN "Reset Score"
#define VERSION "1.0"
#define AUTHOR "kenveloo & edit CyBer[N]eTicK"

new power_rsdisplay;


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)


	register_clcmd("say /resetscore" , "reset_score")
	register_clcmd("say /rs" , "reset_score")
	
	// Cvars
	power_rsdisplay = register_cvar("amx_rsdisplay", "0") 

	// 1 = Arata tuturor ca ti-ai resetat scorul
	// 0 = Iti arata nu mai tie ca ti l-ai resetat/
}

public reset_score(id){
	new Kills = get_user_flags(id);
	new Death = get_user_deaths(id);
	new Name[32];
	get_user_name(id, Name, charsmax(Name))
	if(Kills == 0 && Death == 0){
		ChatColor(id, "!g[ResetScore]!t Scorul tau este deja resetat!");
		return PLUGIN_HANDLED;
	}
	set_user_flags(id, 0);
	cs_set_user_deaths(id, 0);

	if(get_pcvar_num(power_rsdisplay) == 1){
	ChatColor(0, "!g[ResetScore]!t !g%s!t si-a resetat scorul acum are !g0-0", Name);
	}
	else if(get_pcvar_num(power_rsdisplay) == 0){
	ChatColor(id, "!g[ResetScore]!t Ti-ai resetat Scorul cu succes. !g0-0");
	}
	return PLUGIN_HANDLED;
}


///////////////////STOCK-uri////////////////////////
stock ChatColor(const id,const input[], any:...) 
{ 
new msg[191], players[32], count = 1; 
vformat(msg,190,input,3); 
replace_all(msg,190,"!g","^4");// green 
replace_all(msg,190,"!n","^1");// normal 
replace_all(msg,190,"!t","^3");// team 

if (id) players[0] = id; else get_players(players,count,"ch"); 
for (new i=0;i<count;i++) 
if (is_user_connected(players[i])) 
{ 
message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("SayText"),_,players[i]); 
write_byte(players[i]); 
write_string(msg); 
message_end(); 
} 
} 
stock client_director(index,const command[],any:...)
{
   message_begin(MSG_ONE,51,_,index)
   write_byte(strlen(command) + 2)
   write_byte(10)
   write_string(command)
   message_end()
}

 

  • Like 3

C9GkgUd.gifPGLSTAR Tehnician AmxModX & Support Server Counter-Strike 1.6

💙💛❤️ Dragostea fără suferință și fapte, nu există. 💙💛❤️ - Andrei Nrcs
🤍Nu judec pe nimeni, nu condamn pe nimeni, pentru faptele sale sau după cum este, aceasta este neputința umană vrei, nu vrei trebuie să o accepți. 🤍
Atunci când se ridică sus oamenii de nimic, nelegiuiţii mişună pretutindeni. - Împăratul David

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...