Raised This Month: $51 Target: $400
 12% 

CS 1.6 Lost Team Plugin Customization


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hasanalizxc
Senior Member
Join Date: May 2018
Old 04-14-2020 , 07:50   CS 1.6 Lost Team Plugin Customization
Reply With Quote #1

Hi AlliedModders Family,

Hope you are fine. I have a plugin that gives 3000 dollars money to the team that lost 3 rounds in a row. But this plugin needs some modification. Whenever I use the sv_restartround 1 command on the server or change the map, the plugin continues to count rounds from where it left off. My request is to re-edit this plugin and reset the count when the map is changed or when the sv_restartround 1 command is used.

Translations: ct kazandi=ct win, t kazandi=t win


Code:
/* Plugin generated by AMXX-Studio */

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

#define PLUGIN "3ellostpara"
#define VERSION "1.0"
#define AUTHOR "tahademirbaas"
new tkazandi = 0
new ctkazandi = 0

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_event( "SendAudio", "ct_win", "a", "2&%!MRAD_ctwin" );	
	register_event( "SendAudio", "t_win", "a", "2&%!MRAD_terwin" );
}

public t_win(){
	tkazandi++
	if(tkazandi == 4){
	tkazandi = 0	
	new players[32], playerCount, player
	get_players(players, playerCount)

	for(new i=0; i<playerCount; i++)
	{
		player = players[i]        
		if(get_user_team(player) == 2){
			cs_set_user_money(player,cs_get_user_money(player) + 3000)	
			
		}
	}
	client_print_color(0,0,"^3[ff]^4 T Takimi 3 El Kazandigi Icin CT Takimina ^3 3000 $^4 Moral Odulu Veriliyor")
	}
	return PLUGIN_HANDLED
	
	
}

public ct_win(){
	
	ctkazandi++
	if(ctkazandi == 4){
	ctkazandi = 0	
	new players[32], playerCount, player
	get_players(players, playerCount)

	for(new i=0; i<playerCount; i++)
	{
		player = players[i]        
		if(get_user_team(player) == 1){
			cs_set_user_money(player,cs_get_user_money(player) + 3000)	
			
		}
	}
	client_print_color(0,0,"^3[PRS GAMING]^4 CT Takimi 3 El Kazandigi Icin T Takimina ^3 3000 $^4 Moral Odulu Veriliyor")
	}
	return PLUGIN_HANDLED
	
	
}

Last edited by hasanalizxc; 05-03-2020 at 15:10.
hasanalizxc is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-14-2020 , 08:33   Re: CS 1.6 Lost Team Plugin Customization
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=295362
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
hasanalizxc
Senior Member
Join Date: May 2018
Old 05-03-2020 , 09:24   Re: CS 1.6 Lost Team Plugin Customization
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
This addon is not working on my server it gives an error "XOR error" while installing plugin. Any alternative?
hasanalizxc is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-03-2020 , 09:56   Re: CS 1.6 Lost Team Plugin Customization
Reply With Quote #4

XOR error?! Please show an image of said error.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
hasanalizxc
Senior Member
Join Date: May 2018
Old 05-03-2020 , 10:14   Re: CS 1.6 Lost Team Plugin Customization
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
XOR error?! Please show an image of said error.
I can't show an image because my server provider doesn't want to install again this plugin. He pissed off. Can you recommend to me alternative one?
hasanalizxc is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-03-2020 , 13:31   Re: CS 1.6 Lost Team Plugin Customization
Reply With Quote #6

It sounds like your server provider doesn't know what he's doing or you're talking nonsense. I would suggest an alternative server provider rather than a different plugin. Are you saying that your server provider doesn't allow you to install plugins by yourself, in 2020?

There is no such things as an "XOR error" in AMX Mod X. Give me the correct reason for your problem if you want help.

There is nothing wrong with the plugin, so there's no reason to look for an alternative. The one you provided is a much WORSE alternative.
__________________

Last edited by OciXCrom; 05-03-2020 at 13:31.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 06:53.


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