Raised This Month: $ Target: $400
 0% 

help witch advanced vault system by destro


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ipse
New Member
Join Date: Jan 2016
Old 01-26-2016 , 02:12   help witch advanced vault system by destro
Reply With Quote #1

Hello.
I'm Russian boy.
Help me, please.

I using Advanced Vault System by Destro v 1.5

How to get the kills and deaths of player?

I adding the number of death and kills for player:

PHP Code:
public HamKilled(iVictimiAttacker) {

    if(!
is_user_connected(iVictim) || !is_user_connected(iAttacker)) {
        return 
HAM_IGNORED
    
}

    if(!
iVictim || !iAttacker || iAttacker == iVictim) {
        return 
HAM_IGNORED
    
}
    
    ++
g_EPlayer[iAttacker][EPlayerKill]
    ++
g_EPlayer[iVictim][EPlayerDeath]
    
    return 
HAM_IGNORED

Result: its ok.
The numbers are stored.

PHP Code:
public test(id) {
        
client_print(idprint_chat"Your kills: %d, deaths: %d"g_EPlayer[id][EPlayerKill], g_EPlayer[id][EPlayerKill])

Result: its not ok...

The numbers are equal to zero.


I'm pro eng, xD. I'm sorry. Thanks for help me.

Last edited by ipse; 01-26-2016 at 02:14.
ipse is offline
 


Thread Tools
Display Modes

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 09:29.


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