|
Senior Member
Join Date: Feb 2011
Location: Limbo City
|
03-19-2013
, 00:10
Re: [TUT] Combos ZP
|
#31
|
Quote:
Originally Posted by Caramelo_ZP
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(0 , 255 , 255 , -1.0, 0.6, 0, 6.0, 1.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 i = 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]
|
|
|
|