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

[ZP][ES] Ayuda Con Logros


  
 
 
Thread Tools Display Modes
Author Message
darkaness
Junior Member
Join Date: Jun 2013
Location: mexico
Old 08-05-2013 , 23:06   [ZP][ES] Ayuda Con Logros
#1

Hola amigos de alliedmodders quisiera su ayuda para hacer este logro.

este logro consiste en que si matas al survivor te da 50 ammopack como ganancia pero quisiera que solo se hiciera 1 vez. me prodrian ayudar

esta es la forma con la que hago la bonificasion
PHP Code:
if (g_survivor[victim] && g_zombie[attacker])
{
                
g_ammopacks[attacker] += 50 
                   zp_colored_print
(attacker"^x04[Logro]: Ganastes 50 Ammos Packs Por Matar a Un Survivor"
                
            


Last edited by darkaness; 08-05-2013 at 23:07.
darkaness is offline
Matians
Veteran Member
Join Date: Nov 2010
Location: ME QUIEREN ROBAR
Old 08-06-2013 , 00:51   Re: [ZP][ES] Ayuda Con Logros
#2

Agregas un bool y pones true, si lo tiene en true no le das nada.

ej...

PHP Code:
new bool:ganoap[33]

// cambias el if

if (g_survivor[victim] && g_zombie[attacker] && !ganoap[attacker])
{
    
g_ammopacks[attacker] += 50
    ganoap
[attacker] = true
    
// agrega tu code y cerra la llave y listo. 
__________________
Quote:
Originally Posted by YakumoHiratsuhi View Post
@DiegoCS
No sé talvez solo sea yo, pero tu me caes mal campeón.


JAJAJAJAJAJAJAJAJA

Quote:
Originally Posted by meTaLiCroSS View Post
Con 12 años quien no habla mierda detras de un PC, esperate a que te diga algo en persona jajajajaj VIVO DE AHI NO SALE JAJAJA
Matians is offline
darkaness
Junior Member
Join Date: Jun 2013
Location: mexico
Old 08-06-2013 , 02:13   Re: [ZP][ES] Ayuda Con Logros
#3

ok lo probare =)
darkaness is offline
Matians
Veteran Member
Join Date: Nov 2010
Location: ME QUIEREN ROBAR
Old 08-06-2013 , 02:18   Re: [ZP][ES] Ayuda Con Logros
#4

Si no te llega a salir te dejo la solución. Pero te recomiendo que lo intentes, te da auto satisfacción hacer eso.

Sentí que dije, si te haces la re paja. O te agarra alto orgasmo.
__________________
Quote:
Originally Posted by YakumoHiratsuhi View Post
@DiegoCS
No sé talvez solo sea yo, pero tu me caes mal campeón.


JAJAJAJAJAJAJAJAJA

Quote:
Originally Posted by meTaLiCroSS View Post
Con 12 años quien no habla mierda detras de un PC, esperate a que te diga algo en persona jajajajaj VIVO DE AHI NO SALE JAJAJA

Last edited by Matians; 08-06-2013 at 02:18.
Matians is offline
darkaness
Junior Member
Join Date: Jun 2013
Location: mexico
Old 08-06-2013 , 03:10   Re: [ZP][ES] Ayuda Con Logros
#5

funciona bien pero hace que solo por mapa se aga 1 vez y yo quiero que se aga 1 vez para siempre ( osea que lo hice 1 ves y ya no lo pueda hacer nunca ).
darkaness is offline
Matians
Veteran Member
Join Date: Nov 2010
Location: ME QUIEREN ROBAR
Old 08-06-2013 , 03:18   Re: [ZP][ES] Ayuda Con Logros
#6

Ah, yo entendí por mapa...

Bueno ahí ya tenes que tener vos un guardado propio, y es otra cosa xD.
__________________
Quote:
Originally Posted by YakumoHiratsuhi View Post
@DiegoCS
No sé talvez solo sea yo, pero tu me caes mal campeón.


JAJAJAJAJAJAJAJAJA

Quote:
Originally Posted by meTaLiCroSS View Post
Con 12 años quien no habla mierda detras de un PC, esperate a que te diga algo en persona jajajajaj VIVO DE AHI NO SALE JAJAJA
Matians is offline
darkaness
Junior Member
Join Date: Jun 2013
Location: mexico
Old 08-06-2013 , 03:29   Re: [ZP][ES] Ayuda Con Logros
#7

ohh y que le tendria que agregar ??
darkaness is offline
DiegoCS
Senior Member
Join Date: Mar 2013
Old 08-06-2013 , 09:17   Re: [ZP][ES] Ayuda Con Logros
#8

tienes que guardar la variable
PHP Code:
g_ganoap[id
DiegoCS is offline
 



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 02:41.


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