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

[ZP] How do i do to give exp whit external plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kreemps
New Member
Join Date: Apr 2017
Old 04-25-2017 , 15:52   [ZP] How do i do to give exp whit external plugins
Reply With Quote #1

Hi, my name is kreemps... hi need your help whit the external plugin on zp.. ( extra items)


my problem is the next. when one human buys a pipe bomb(the extra item) and kills, he does not receive exp, so my question is, how do i do exp to the human when he kills gets the exp?

can you understand me?
PHP Code:
// my sistem level.

const Max_Level 300

enum _
:eGanancias
{
    
MATAR_HUMANO 0,
    
MATAR_ZOMBIE,
    
MATAR_SURVIVOR,
    
MATAR_NEMESIS,
    
MATAR_SNIPER,
    
MATAR_ASSASIN,
    
INFECTAR_HUMANO
}
enum _:eDataGanancias
{
    
e_sGananciaName[33],
    
e_iGananciaAmmount,
    
e_iGananciaPuntos
}
new const 
g_sGananciasMatar[eGanancias][eDataGanancias] =
{
    { 
"Matar Humano"8},
    { 
"Matar Zombie"8},
    { 
"Matar Survivor"2825 },
    { 
"Matar Nemesis"2820 },
    { 
"Matar Sniper"2820 },
    { 
"Matar Assasin"2820 },
    { 
"Infectar Humano"8}
}
new 
g_level[33], g_exp[33]

// fw_PlayerKilled

new iType =  (g_nemesis[victim] ? MATAR_NEMESIS g_survivor[victim] ? MATAR_SURVIVOR g_assassin[victim] ? MATAR_ASSASIN g_zombie[victim] ? MATAR_ZOMBIE g_sniper[victim] ? MATAR_SNIPER MATAR_HUMANO)
    
UpdateLevel(attackerg_sGananciasMatar[iType][e_iGananciaAmmount], g_sGananciasMatar[iType][e_sGananciaName], g_sGananciasMatar[iType][e_iGananciaPuntos]) 


//  zombieme(id, infector, nemesis, silentmode, rewards, assassin)
// (rewards && infector)

UpdateLevel(infectorg_sGananciasMatar[INFECTAR_HUMANO][e_iGananciaAmmount], g_sGananciasMatar[INFECTAR_HUMANO][e_sGananciaName], g_sGananciasMatar[INFECTAR_HUMANO][e_iGananciaPuntos])


//public

public UpdateLevel(idiExpsMessage[], iPts)
{
       if(
g_level[id] == Max_Level) return;
       
       static 
iLeveliLevel g_level[id]
       if(
g_happyhouriExp iExp kGanancia[id] * GananciasHappy 
       
else iExp iExp kGanancia[id]
       
g_exp[id] += iExp
       g_puntos
[id] += iPts
       
       zp_colored_print
(id"^x04[ZP]^x01 Has Ganado ^x04%d^x01 de exp y ^x04%d^x01 de puntos por ^x04%s^x01"iExpiPtssMessage)

       while((
g_exp[id] >= Level_Up(g_level[id])) && g_level[id] < Max_Levelg_level[id]++, g_ammopacks[id] += g_level[id]
       
       
       if(
iLevel g_level[id]) zp_colored_print(id"^x04[ZP]^x01 Subiste al Nivel ^x04%d^x01, Te damos ^x04%d^x01 AmmoPacks de recomenza "g_level[id],  g_level[id]) 

PipeBomb


Beforehand thank you very much.
Kreemps 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 19:56.


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