Raised This Month: $ Target: $400
 0% 

[TUT] Combos ZP


  
 
 
Thread Tools Display Modes
Author Message
Sidix
Senior Member
Join Date: Feb 2011
Location: Limbo City
Old 03-19-2013 , 00:10   Re: [TUT] Combos ZP
#1

Quote:
Originally Posted by Caramelo_ZP View Post
PHP Code:
// TASK


// TASK_COMBO en el enum de task

#define ID_COMBO (taskid - TASK_COMBO)

new g_combo[33]

public 
take_damage bla )
{
    
    
g_combo[attacker] += floatround(damage)
    
    
set_hudmessage(255 255 ,  -1.00.606.01.0)
    
show_hudmessage(attacker "[Daño : %d][Total: %d]^n[Combo Numero: %d]" floatround(damage) , g_combo[attacker] , return_combo(attacker))
    
    if(
task_exists(attacker+TASK_COMBO))
        
remove_task(attacker+TASK_COMBO)
    
    
set_task(2.0 "get_combo" attacker+TASK_COMBO)
}

public 
return_combo(id)
{
    new 
0
    
new dm g_combo[id]
    
    while(
dm 250)
    {
        
dm -= 250
        i
++
    }
    
    return 
i
}

public 
get_combo(taskid)
{
    new 
id ID_COMBO
    
new bono 
    
    bono 
= (return_combo(id) * (g_vip[id]+1))
    
zp_colored_print(id "%s Combo:^x04 %d^x01 - Daño Total:^x04 %d^x01 - Bonus:^x04 %d." TAG return_combo(id) , g_combo[id] , bono)
    
g_combo[id] = 0
    update_xp
(id bono)

yo hice esto de 0 y me funciona de 0 y sin usar tantas cosas
Si en verdad eres el autor que hace la variable TAG? ni siquiera está registrada...
__________________
[IMG]http://img839.**************/img839/1879/dmcdanteprofile.png[/IMG]
Sidix 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 22:38.


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