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

Advanced Team Attack Control v3.0.1


Post New Thread Reply   
 
Thread Tools Display Modes
Arion
Senior Member
Join Date: Mar 2007
Old 10-16-2007 , 09:03   Re: Advanced Team Attack Control v3.0.0
Reply With Quote #51

Quote:
Originally Posted by Darkill View Post
Please,
I need a Translation to portuguese (Brazil)
Thanks!
Here you go:

data/lang/atac.txt:
Code:
[bp]
ATAC_TA_WARNING = AVISO DE FOGO AMIGO: %i/%i^nDano Causado: %i (%s)
ATAC_TK_WARNING = AVISO DE MORTE AMIGA: %i/%i
ATAC_TK_KICK = AVISO DE MORTE AMIGA: %i/%i para %s.^nKickando...
ATAC_TK_BAN_MIN = AVISO DE MORTE AMIGA: %i/%i para %s.^nBanindo por %i minutos...
ATAC_TK_BAN_PERM = AVISO DE MORTE AMIGA: %i/%i para %s.^nBanindo permanentemente...
ATAC_CHOOSE = %sEscolha a punicao para %s%s
ATAC_FORGIVE = Perdoar
ATAC_INCREASE_TK = Apenas aumentar Mortes Amigas
ATAC_KICK = Kickar
ATAC_BAN_MIN = Banir por %i minutos
ATAC_BAN_PERM = Banir permanentemente
ATAC_MORE = Mais
ATAC_BACK = Voltar
ATAC_FORGAVE = %s perdoou %s
ATAC_KICKED = %s kickou %s
ATAC_BANNED = %s baniu %s
ATAC_PUNISHED = %s puniu %s
data/lang/atac_punishments.txt:
Code:
[bp]
ATAC_BAD_AIM = Dar Mira Ruim
ATAC_BLIND = Cegar
ATAC_BOMB = Transformar numa Bomba-Relogio
ATAC_BURY = Enterrar
ATAC_CHICKEN = Transformar numa Galinha
ATAC_DROP_REPEATEDLY = Soltar Repetidamente
ATAC_DRUG = Drogar
ATAC_FIRE = Tacar Fogo
ATAC_GLOW = Brilhar Rosa
ATAC_JAIL = Colocar na Jaula por %i segundos
ATAC_ROCKET = Transformar num Foguete
ATAC_SLAP_X_TIMES = Dar %i tapas
ATAC_SLAP_TO_1 = Dar tapas ateh ficar com 1hp
ATAC_SLAY = Matar imediatamente
ATAC_SLAY_SPAWN = Matar no proximo round

Orangutanz could use this.
__________________
Arion is offline
Send a message via MSN to Arion
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 10-16-2007 , 12:39   Re: Advanced Team Attack Control v3.0.0
Reply With Quote #52

Updated language translations are now present on our SVN server, thanks.
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 10-20-2007 , 17:47   Re: Advanced Team Attack Control v3.0.0
Reply With Quote #53

Some Players on our Server complain, that if Teammates get killed by the explidong Bomb they also get those 'Teamkills' added to their TK's.
AllMassive is offline
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 10-20-2007 , 23:41   Re: Advanced Team Attack Control v3.0.0
Reply With Quote #54

Quote:
Originally Posted by AllMassive View Post
Some Players on our Server complain, that if Teammates get killed by the explidong Bomb they also get those 'Teamkills' added to their TK's.
I had this same complaint, not really big but I asked the player to do /atacstatus command to see if it increased and the player reported that it did not infact affect his atac status at all.
__________________

BigBaller is offline
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 10-21-2007 , 07:16   Re: Advanced Team Attack Control v3.0.0
Reply With Quote #55

Quote:
Originally Posted by AllMassive View Post
Some Players on our Server complain, that if Teammates get killed by the explidong Bomb they also get those 'Teamkills' added to their TK's.
How do you mean they get a Hud message or something saying they done even more Team Kills?

Just did some hunting around in the timebomb punishment found the problem.

Move line 225: set_msg_block( gmsgDeathMsg, BLOCK_ONCE )
To line: 228

So the section should look something like this:
Code:
            smoke_effect( origin, 60 ) // Lots of Smoke         }     }     set_msg_block( gmsgDeathMsg, BLOCK_ONCE )     user_kill( id, 1 ) }
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd

Last edited by Orangutanz; 10-21-2007 at 07:26.
Orangutanz is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 10-21-2007 , 08:29   Re: Advanced Team Attack Control v3.0.0
Reply With Quote #56

Either I don't undesratnd how it works or for some reason Plugin_Punishments[ g_Punish_Count ][ fwd_name ] is not collecting the data correctly. I wanted to see what is stored there:
Code:
	if ( g_Punish_Count < MAX_PUNISHMENTS - 1 )
	{
		new null[ 1 ], name[ 32 ], pun_name[32]
		get_plugin( plugin_id, null, 0, name, 31, null, 0, null, 0, null, 0 )
		server_cmd( "amx_pausecfg add ^"%s^"", name )

		Plugin_Punishments[ g_Punish_Count ][ punish_id ]  = plugin_id
		Plugin_Punishments[ g_Punish_Count ][ fwd_name ]   = CreateOneForward( plugin_id, "atac_punishment_name", FP_CELL )
		Plugin_Punishments[ g_Punish_Count ][ fwd_punish ] = CreateOneForward( plugin_id, "atac_player_punish", FP_CELL, FP_CELL )
		Plugin_Punishments[ g_Punish_Count ][ fwd_reset ]  = CreateOneForward( plugin_id, "atac_player_reset", FP_CELL, FP_CELL )
		Plugin_Punishments[ g_Punish_Count ][ fwd_spawn ]  = CreateOneForward( plugin_id, "atac_player_spawn", FP_CELL, FP_CELL )
		format(pun_name, 31, Plugin_Punishments[ g_Punish_Count ][ fwd_name ])	 // added by KWo	
		log_amx("[ATAC3] Registered punishment %s with number %d.", pun_name, g_Punish_Count) // added by KWo

		g_Punish_Count++
		return g_Punish_Count - 1
	}
Here is the result in the log file:
Quote:
Originally Posted by log
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment '3 with number 2.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment -4 with number 3.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment 35 with number 4.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment 96 with number 5.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment ?8 with number 6.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment G9 with number 7.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment O: with number 8.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment W; with number 9.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment _< with number 10.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment i= with number 11.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment q> with number 12.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment y? with number 13.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment ƒ@ with number 14.
L 10/21/2007 - 14:17:22: [atac.amxx] [ATAC3] Registered punishment ŤA with number 15.
What I'm doing wrong to get that data? I want to use that data to inform players who and how got punished. The current code says only "Player A punished player B", but there is no info which way (what the punishment). How can I do that? I thought the correct place is Plugin_Punishments[punishment_number][fwd_name]. Maybe I should use %L instead %s? But I don't remember if format function like it.
Tested with AMX X 1.8 beta.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 10-21-2007 , 10:00   Re: Advanced Team Attack Control v3.0.0
Reply With Quote #57

Quote:
Originally Posted by Orangutanz View Post
How do you mean they get a Hud message or something saying they done even more Team Kills?

Just did some hunting around in the timebomb punishment found the problem.
No no, i dont even have this punishment enabled - i'm talking about the Bomb which is placed at the bombspot and explods - I'm talking about de_ maps in generall.
AllMassive is offline
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 10-21-2007 , 21:01   Re: Advanced Team Attack Control v3.0.0
Reply With Quote #58

Quote:
Originally Posted by AllMassive View Post
No no, i dont even have this punishment enabled - i'm talking about the Bomb which is placed at the bombspot and explods - I'm talking about de_ maps in generall.
Oh yeah, I know what you mean
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz is offline
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 10-21-2007 , 21:05   Re: Advanced Team Attack Control v3.0.0
Reply With Quote #59

Quote:
Originally Posted by KWo View Post
What I'm doing wrong to get that data? I want to use that data to inform players who and how got punished. The current code says only "Player A punished player B", but there is no info which way (what the punishment). How can I do that? I thought the correct place is Plugin_Punishments[punishment_number][fwd_name]. Maybe I should use %L instead %s? But I don't remember if format function like it.
Tested with AMX X 1.8 beta.
You are looking for this line: 901
Code:
client_print( 0, print_chat, "* [ATAC] %L", LANG_PLAYER, "ATAC_PUNISHED", vName, KillerName[ killer ] )
To get the name of the punishment you need to call this:
Code:
new name[ 64 ] name = exec_PunishName( plugin_id, id )
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd

Last edited by Orangutanz; 10-21-2007 at 21:11.
Orangutanz is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 10-22-2007 , 15:34   Re: Advanced Team Attack Control v3.0.0
Reply With Quote #60

Finally I got it compiled this way:
Code:
new pName[64]
if ( !forced )
{
	pName = exec_PunishName( page * 8 + key, id )
	client_print( 0, print_chat, "* [ATAC] %L", LANG_PLAYER, "ATAC_PUNISHED", vName, KillerName[ killer ], pName)
}
I had to use larger size of the pName array. 32 was too small. Gonna check if it works. Still no idea what I was doing wrong in that example I showed You. Why this one -> Plugin_Punishments[ punish_nr ][ fwd_name ] - cannot be used?
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo 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 15:08.


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