Jump to content
GIGN Forum

War3ft Par Teamkill Un Xp


Recommended Posts

  • 1 year later...

Da iej amxmodx/scriting/war3ft/xp.lin un tur tu atradīsi sekojošo:

    // Check for a team kill
    if ( get_user_team( iAttacker ) == get_user_team( iVictim ) )
    {
        // Remove XP since he killed his teammate
        iBonusXP = XP_Give( iAttacker, -1 * iXP );

        // This message should be displayed no matter what XP_kill_objectives is, b/c it's a no-no
        if ( iBonusXP != 0 )
        {
            client_print( iAttacker, print_chat, "%s You have lost %d XP for killing a teammate", g_MODclient, -1 * iBonusXP );
        }

    }

un vaig pamainit uz sekojošo

    // Check for a team kill
    if ( get_user_team( iAttacker ) == get_user_team( iVictim ) )
    {
        // Remove XP since he killed his teammate
        iBonusXP = XP_Give( iAttacker, 1 * iXP );

        // This message should be displayed no matter what XP_kill_objectives is, b/c it's a no-no
        if ( iBonusXP != 0 )
        {
            client_print( iAttacker, print_chat, "%s You have awarded %d exp for killing enemy", g_MODclient, 1 * iBonusXP );
        }

    }

Ka redzi tur kur killing exp bija -1 ,tad tagad jaliek 1 abas vietas! Un zinojimu par exp dabusanu vari uzrkstit pats!

Un visa ta probleema!

Nav tur jamaina nekadi daudzie argumenti vai jaskripto itka zombijus uztver ka kadu rasi! vnk izdari shitaa un redzeesi! Pats to izdariju un man sanaaca! ;)

Edited by alvinsr
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...