Заявки за цветен ResetScore

Ако искате да поръчате да ви намерим определено нещо, без да става дума за коментиране, пишете тук.
User avatar
CR7 Best - MuHaBaM...
CR7 is The Best in World
CR7 is The Best in World
Posts: 224
Joined: 03 Oct 2015, 16:18
Skype: N/A
CS Nick: MuHaBaM e6a u 3aMuHaBaM
Favorite version: CS: Global Offensive
Steam Community ID: xxcristchon
Location: с. Свобода

Re: Заявки за цветен ResetScore

Post by CR7 Best - MuHaBaM... »

Здравейте, може ли да ми направите ResetScore, който когато си рестартираш резултата, определен брой пъти, да ти излезе Hud съобщение.

Chat съобщение:
[ BaseBuildeR ] Ti restartira swoq / restartira swoq rezultat!

Hud съобщение:
BaseBuilder
You score 0/0
Priqtna igra
Hud съобщението да излезе след като човека е написал командата "/rs" 10 пъти!
Ако може пък всеки път, няма проблеми...
User avatar
JackEyedJones
РЕКЛАМАТОР
РЕКЛАМАТОР
Posts: 332
Joined: 18 Apr 2014, 06:17
Skype: voltouch180
CS Nick: <Not Good Simply KoreaN>
Favorite version: CS: 1.6
Location: Plovdiv, Bulgaria, Europe, Entire World
Contact:

Re: Заявки за цветен ResetScore

Post by JackEyedJones »

Code: Select all

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

new g_iResetScore[33];
const RS_TIMES = 10;				//Максимален брой пъти за рестартиране на резулатата.

new const prefix[] = "BaseBuilder" 		//Префикс на съобщенията (Чат и ХЪД).

public plugin_init()
{
	register_plugin("RS Request","v1.0","CSBG");
	register_clcmd("say /rs","restartscore");
}

public restartscore(id)
{
	if(!is_user_connected(id))
		return PLUGIN_HANDLED;

	g_iResetScore[id]++;
	
	if(g_iResetScore[id] < RS_TIMES)
	{
		set_user_frags(id,0); cs_set_user_deaths(id,0); 

		ColorChat(id,GREEN,"^4[%s] ^1Ti restartira swoq rezultat^3!", prefix);
	}
	else if(g_iResetScore[id] >= RS_TIMES)
	{
		set_user_frags(id,0); cs_set_user_deaths(id,0); 
		
		set_hudmessage(0, 255, 0, -1.0, 0.71, 0, 6.0, 5.0)
		show_hudmessage(id, "%s^nYou score 0/0^nPriqtna igra", prefix)
	
		g_iResetScore[id] = 0;
	}

	return PLUGIN_CONTINUE;
}
:coffee1:
User avatar
CR7 Best - MuHaBaM...
CR7 is The Best in World
CR7 is The Best in World
Posts: 224
Joined: 03 Oct 2015, 16:18
Skype: N/A
CS Nick: MuHaBaM e6a u 3aMuHaBaM
Favorite version: CS: Global Offensive
Steam Community ID: xxcristchon
Location: с. Свобода

Re: Заявки за цветен ResetScore

Post by CR7 Best - MuHaBaM... »

Бог да те благослови! Ако има нещо, с което да ти помогна ела на лс! :o
Last edited by sLaughtereD- on 13 Jun 2016, 20:13, edited 1 time in total.
Reason: Нарушена т.5 от правилата на форума.
User avatar
Belchew
V.I.P
V.I.P
Posts: 26
Joined: 04 Sep 2015, 11:18
Skype: milen260
CS Nick: НЕ КАЗВАМ ....
Favorite version: CS: 1.6
Location: Ямбол

Re: Заявки за цветен ResetScore

Post by Belchew »

[NetMasters.Eu] Nick has just reset his score! - T
[NetMasters.Eu] Nick has just reset his score! - CT

Благодаря ,предварително :).
User avatar
Unity Man
VIP
VIP
Posts: 1118
Joined: 12 Oct 2015, 20:21
CS Nick: BiTurbu
Favorite version: CS: Global Offensive

Re: Заявки за цветен ResetScore

Post by Unity Man »

Belchew wrote:[NetMasters.Eu] Nick has just reset his score! - T
[NetMasters.Eu] Nick has just reset his score! - CT

Благодаря ,предварително :).

Code: Select all

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

new g_iResetScore[33];
const RS_TIMES = 10;            //Максимален брой пъти за рестартиране на резулатата.

new const prefix[] = "[NetMasters.Eu]"       //Префикс на съобщенията (Чат и ХЪД).

public plugin_init()
{
   register_plugin("RS Request","v1.0","CSBG");
   register_clcmd("say /rs","restartscore");
}

public restartscore(id)
{
   if(!is_user_connected(id))
      return PLUGIN_HANDLED;

   g_iResetScore[id]++;
   
   if(g_iResetScore[id] < RS_TIMES)
   {
      set_user_frags(id,0); cs_set_user_deaths(id,0); 

      ColorChat(id,GREEN,"^4[%s] ^1has just reset his score!^3!", prefix);
   }
   else if(g_iResetScore[id] >= RS_TIMES)
   {
      set_user_frags(id,0); cs_set_user_deaths(id,0); 
      
      set_hudmessage(0, 255, 0, -1.0, 0.71, 0, 6.0, 5.0)
      show_hudmessage(id, "%s^nYou score 0/0^nPriqtna igra", prefix)
   
      g_iResetScore[id] = 0;
   }

   return PLUGIN_CONTINUE;
}
User avatar
Belchew
V.I.P
V.I.P
Posts: 26
Joined: 04 Sep 2015, 11:18
Skype: milen260
CS Nick: НЕ КАЗВАМ ....
Favorite version: CS: 1.6
Location: Ямбол

Re: Заявки за цветен ResetScore

Post by Belchew »

[NetMasters.Eu] Nick has just reset his score! - T
[NetMasters.Eu] Nick has just reset his score! - CT

Искам направо направен плъгин :).
User avatar
Unity Man
VIP
VIP
Posts: 1118
Joined: 12 Oct 2015, 20:21
CS Nick: BiTurbu
Favorite version: CS: Global Offensive

Re: Заявки за цветен ResetScore

Post by Unity Man »

Belchew wrote:[NetMasters.Eu] Nick has just reset his score! - T
[NetMasters.Eu] Nick has just reset his score! - CT

Искам направо направен плъгин :).
Attachments
resetscore.rar
(3.25 KiB) Downloaded 152 times
User avatar
NenistoW dA k1nG
Потребител
Потребител
Posts: 70
Joined: 21 May 2016, 11:35
Skype: hosheffz.bg
CS Nick: LordPower.
Favorite version: CS: 1.6
Location: Пловдив

Re: Заявки за цветен ResetScore

Post by NenistoW dA k1nG »

[QGS-CS] You restart its score. Your score is 0/0
Last edited by NenistoW dA k1nG on 23 Jul 2016, 21:50, edited 1 time in total.
User avatar
OciXCrom
OciXCrom™ Official Profile
OciXCrom™ Official Profile
Posts: 585
Joined: 21 Mar 2013, 14:21
Skype: doctor.crom1234
CS Nick: OciXCrom
Favorite version: CS: 1.6
Steam Community ID: OciXCrom
Location: jb.iplay.bg:27015
Contact:

Re: Заявки за цветен ResetScore

Post by OciXCrom »

NenistoW dA k1nG wrote:[QGS-CS] You restart its rank successfully. Your score is 0/0
http://cs-bg.info/forum/viewtopic.php?f=8&t=162958
Cvar-ът можеш и сам да си го промениш.

PS, nice English, bro.
User avatar
NenistoW dA k1nG
Потребител
Потребител
Posts: 70
Joined: 21 May 2016, 11:35
Skype: hosheffz.bg
CS Nick: LordPower.
Favorite version: CS: 1.6
Location: Пловдив

Re: Заявки за цветен ResetScore

Post by NenistoW dA k1nG »

OciXCrom wrote:
NenistoW dA k1nG wrote:[QGS-CS] You restart its rank successfully. Your score is 0/0
http://cs-bg.info/forum/viewtopic.php?f=8&t=162958
Cvar-ът можеш и сам да си го промениш.

PS, nice English, bro.
Не знам как се прави и затова търся някой, който може. :)
User avatar
csmanqk2003
Потребител
Потребител
Posts: 11
Joined: 22 Jul 2016, 08:44

Re: Заявки за цветен ResetScore

Post by csmanqk2003 »

[CS-Play] Nick has just reset his score! - T
[CS-Play] Nick has just reset his score! - CT

ako moje ina mene da q izpalnite
Last edited by sLaughtereD- on 23 Jul 2016, 22:09, edited 1 time in total.
Reason: Нарушена т.1 от правилата на форума.
User avatar
OciXCrom
OciXCrom™ Official Profile
OciXCrom™ Official Profile
Posts: 585
Joined: 21 Mar 2013, 14:21
Skype: doctor.crom1234
CS Nick: OciXCrom
Favorite version: CS: 1.6
Steam Community ID: OciXCrom
Location: jb.iplay.bg:27015
Contact:

Re: Заявки за цветен ResetScore

Post by OciXCrom »

Не знаеш как се променя cvar? Мне, няма помощ за такова нещо.
User avatar
ANT.
4funBGofficial. ®
4funBGofficial. ®
Posts: 123
Joined: 08 Aug 2012, 12:13
Skype: ЛС
Favorite version: CS: 1.6
Steam Community ID: antbg
Location: София

Re: Заявки за цветен ResetScore

Post by ANT. »

[Go-Die] Nick has just reset his score! - T
[Go-Die] Nick has just reset his score! - CT
User avatar
CR7 Best - MuHaBaM...
CR7 is The Best in World
CR7 is The Best in World
Posts: 224
Joined: 03 Oct 2015, 16:18
Skype: N/A
CS Nick: MuHaBaM e6a u 3aMuHaBaM
Favorite version: CS: Global Offensive
Steam Community ID: xxcristchon
Location: с. Свобода

Re: Заявки за цветен ResetScore

Post by CR7 Best - MuHaBaM... »

ANT. wrote:[Go-Die] Nick has just reset his score! - T
[Go-Die] Nick has just reset his score! - CT

Code: Select all

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

new Cvar

public plugin_init()
{
   register_clcmd("say /resetscore", "reset_score")
   register_clcmd("say /rs", "reset_score")
   Cvar = register_cvar("rs_message","0")

public reset_score(id)
{
   set_user_frags(id, 0)
   cs_set_user_deaths(id, 0)
   set_user_frags(id, 0)
   cs_set_user_deaths(id, 0)
   
   new name[33]
   get_user_name(id, name, 32)
   if((get_pcvar_num(Cvar) == 1)) {
      Chat(0,"^4[Go-Die] ^4%s has just reset his score!",name)
   }
   Chat(id,"^4[Go-Die] ^3You have just reset your score!")
   client_cmd(id,"spk fvox/bell")
   return PLUGIN_HANDLED
}
stock Chat(const id, const input[], any:...){
   new count = 1, players[32];
   static msg[ 191 ];
   vformat(msg, 190, input, 3);
   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(); } } }
}]
User avatar
ANT.
4funBGofficial. ®
4funBGofficial. ®
Posts: 123
Joined: 08 Aug 2012, 12:13
Skype: ЛС
Favorite version: CS: 1.6
Steam Community ID: antbg
Location: София

Re: Заявки за цветен ResetScore

Post by ANT. »

Може ли цял плъгин
Post Reply

Return to “Заявки”