Raised This Month: $ Target: $400
 0% 

Duda al setiar exp


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
smacompile
Member
Join Date: Jun 2012
Location: tijuana
Old 09-13-2012 , 20:12   Duda al setiar exp
#1

tengo una duda como seteo 20 de exp al matar a un player probe de varias formas y no me salio , incluso asi:
PHP Code:
#include <hamsandwich>

public plugin_init() {    
    
RegisterHamHam_Killed"player""Ham_PlayerKilled");
}

public 
Ham_PlayerKilledvictimattacker 
{
    if( !
is_user_connected(victim) || !is_user_connected(attacker) )
        return 
HAM_IGNORED;

    if( 
get_user_team(victim) == get_user_team(attacker) )
        return 
HAM_IGNORED

    if (
get_user_team(attacker) == &&  get_user_team(victim) == 2){
        
g_exp[attacker] += 20
    
}

    if (
get_user_team(attacker) == &&  get_user_team(victim) == 1){
        
g_exp[attacker] += 20
    
}

    
update_xp(attacker1); 
      
    return 
HAM_IGNORED;

este tuto segui:
http://forums.alliedmods.net/showthread.php?t=173940
smacompile 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 20:10.


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