Raised This Month: $ Target: $400
 0% 

help witch advanced vault system by destro


Post New Thread Reply   
 
Thread Tools Display Modes
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
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 01-26-2016 , 03:23   Re: help witch advanced vault system by destro
Reply With Quote #2

Can u attach the whole code?
Craxor is offline
Send a message via ICQ to Craxor
JoaoVieira
Senior Member
Join Date: May 2013
Location: Portugal
Old 01-26-2016 , 18:45   Re: help witch advanced vault system by destro
Reply With Quote #3

try this:

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
    
}
    
    
get_user_frags(iAttacker)
    
get_user_deaths(iVictim)
    
    return 
HAM_IGNORED

and

PHP Code:
public test(id) {
         
        
client_print(idprint_chat"Your kills: %d, deaths: %d"iAttackeriVictim)

If it doesn't work or if it wasn't what do you wanted , tell me

[PS: Im new on this]
JoaoVieira is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-26-2016 , 19:23   Re: help witch advanced vault system by destro
Reply With Quote #4

Quote:
Originally Posted by JoaoVieira View Post
PHP Code:
public test(id) {
         
        
client_print(idprint_chat"Your kills: %d, deaths: %d"iAttackeriVictim)

If it doesn't work or if it wasn't what do you wanted , tell me

[PS: Im new on this]
@Joao
That will not work.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
JoaoVieira
Senior Member
Join Date: May 2013
Location: Portugal
Old 01-27-2016 , 07:30   Re: help witch advanced vault system by destro
Reply With Quote #5

like this?

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
    
}
   
    new 
Attacker[33] = get_user_frags(iAttackeriAttacker32)
    new 
Victim[32] = get_user_frags(iAttackeriVictim31)
    
    return 
HAM_IGNORED

PHP Code:
public test(id) {
         
        
client_print(idprint_chat"Your kills: %d, deaths: %d"AttackerVictim)


Last edited by JoaoVieira; 01-27-2016 at 07:32.
JoaoVieira is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-27-2016 , 11:11   Re: help witch advanced vault system by destro
Reply With Quote #6

@Joao No
PHP Code:
new Attacker[33] = get_user_frags(iAttackeriAttacker32)
new 
Victim[32] = get_user_frags(iAttackeriVictim31


PHP Code:
new iFrag get_user_fragsiAttacker )  //Get the killer's frags
new iDeath cs_get_user_deathsiAttacker //Get the killer's deaths] 
PHP Code:
client_print(idprint_chat"Your kills: %d, deaths: %d"AttackerVictim


PHP Code:
client_print(idprint_chat"Your kills: %d, deaths: %d"iFragiDeath //Print them in chat 
Now let the op post his code or ask some questions so we can help him. Because I have no idea why he would get the killer's frags and the victim's deaths.

Edit: @Joao After looking at the op post again, he's not trying to get the victims death you are. So I edited my post
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 01-27-2016 at 11:16.
wickedd 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 09:29.


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