losarik123 Posted July 8, 2011 Report Share Posted July 8, 2011 eu blin kads var palidzet kad es nemo lost exp no xp.inl un saku compiled vins man met daudz error kads var palidzet lai vins vairs nemeta error? !!!! un ari ar sprites kad mainu krasu racem un saku compiled vins man ari met daduz error Link to comment Share on other sites More sharing options...
losarik123 Posted July 8, 2011 Author Report Share Posted July 8, 2011 kads var pateic ka kompile xp.inl un lai nemeta error Link to comment Share on other sites More sharing options...
remix.cc Posted July 8, 2011 Report Share Posted July 8, 2011 kompile galveno failu... war3.sma laikam... Link to comment Share on other sites More sharing options...
losarik123 Posted July 8, 2011 Author Report Share Posted July 8, 2011 XP_onDeath( iVictim, iAttacker, iWeaponIndex, iHeadshot ) { // We don't want to give XP to the world if ( iAttacker == 0 ) { return; } // We don't want to give XP to suiciders else if ( iAttacker == iVictim ) { return; } new iLevel = p_data[iVictim][P_LEVEL] new iBonusXP, iXP = floatround( XP_GivenByLevel( iLevel ) * fWpnXPMultiplier[iWeaponIndex] ); // Check for a team kill if ( !iAttacker ) { } // Otherwise the player killed the other team else { // Award XP for a kill iBonusXP = XP_Give( iAttacker, iXP ); if ( iBonusXP != 0 && get_pcvar_num( CVAR_wc3_show_kill_obj ) ) { client_print( iAttacker, print_chat, "%s You have been awarded %d XP for killing the enemy", g_MODclient, iBonusXP ); } // User had a headshot? Give bonus XP! if ( iHeadshot ) { iBonusXP = XP_Give( iAttacker, KILL_HEADSHOT ); if ( iBonusXP != 0 && get_pcvar_num( CVAR_wc3_show_kill_obj ) ) { client_print( iAttacker, print_chat, "%s You have been awarded %d XP for getting a headshot", g_MODclient, iBonusXP ); } } new iAssistLevel, iAssistXP, iVictimMaxHealth; new Float:fMultiplier; // Award XP for other people doing damage to this victim for ( new i = 0; i < MAXPLAYERS; i++ ) { // Then this player dealt some damage to this player this round if ( g_iDamageDealt[iVictim] > 0 && iAttacker != i ) { iVictimMaxHealth = get_user_maxhealth( iVictim ); fMultiplier = float( g_iDamageDealt[iVictim] ) / float( iVictimMaxHealth ); iAssistLevel = p_data[P_LEVEL]; iAssistXP = XP_GivenByLevel( iAssistLevel ); // Need a ratio of XP to award to person who dealt damage iBonusXP = XP_Give( i, ( floatround( float( iAssistXP ) * fMultiplier ) / 2 ) ); if ( iBonusXP != 0 && get_pcvar_num( CVAR_wc3_show_kill_obj ) ) { client_print( i, print_chat, "%s You have been awarded %d XP for a kill assist!", g_MODclient, iBonusXP ); } // victim may respawn, so reset the counter g_iDamageDealt[iVictim] = 0; } } if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO ) { // User killed a hostage rescuer if ( g_iPlayerRole[iVictim] == PLR_HOSTAGE_RESCUER ) { iBonusXP = XP_Give( iAttacker, KILL_HOSTAGE_SAVER ); if ( iBonusXP != 0 && get_pcvar_num( CVAR_wc3_show_kill_obj ) ) { client_print( iAttacker, print_chat, "%s You have been awarded %d XP for killing the hostage rescuer", g_MODclient, iBonusXP ); } } // User killed the bomb defuser else if ( g_iPlayerRole[iVictim] == PLR_BOMB_DEFUSER ) { iBonusXP = XP_Give( iAttacker, KILL_DEFUSER ); if ( iBonusXP != 0 && get_pcvar_num( CVAR_wc3_show_kill_obj ) ) { client_print( iAttacker, print_chat, "%s You have been awarded %d XP for killing the bomb defuser", g_MODclient, iBonusXP ); } } // User killed the bomb planter else if ( g_iPlayerRole[iVictim] == PLR_BOMB_PLANTER ) { iBonusXP = XP_Give( iAttacker, KILL_PLANTER ); if ( iBonusXP != 0 && get_pcvar_num( CVAR_wc3_show_kill_obj ) ) { client_print( iAttacker, print_chat, "%s You have been awarded %d XP for killing the bomb planter", g_MODclient, iBonusXP ); } } // User killed the bomb carrier else if ( g_iPlayerRole[iVictim] == PLR_BOMB_CARRIER ) { iBonusXP = XP_Give( iAttacker, KILL_BOMB_CARRIER ); if ( iBonusXP != 0 && get_pcvar_num( CVAR_wc3_show_kill_obj ) ) { client_print( iAttacker, print_chat, "%s You have been awarded %d XP for killing the bomb carrier", g_MODclient, iBonusXP ); } } // user killed the VIP else if ( g_iPlayerRole[iVictim] == PLR_VIP ) { iBonusXP = XP_Give( iAttacker, KILL_VIP ); if ( iBonusXP != 0 && get_pcvar_num( CVAR_wc3_show_objectives ) ) { client_print( iAttacker, print_chat, "%s You have been awarded %d XP for killing the VIP", g_MODclient, iBonusXP ); } } } else if ( g_MOD == GAME_DOD ) { } // Player died, so lets reset their data g_iPlayerRole[iVictim] = 0; } } piemeram es to visu uzrakstiju xp.inl un man war3.sma liekt compile? un nebus vairs lost exp? piemeram es to visu uzrakstiju xp.inl un man war3.sma liekt compile? un nebus vairs lost exp? Link to comment Share on other sites More sharing options...
DarkAngel(h)* Posted July 8, 2011 Report Share Posted July 8, 2011 Tu script kodu liec config failā? :D:D:D To jāliek ir sma failā. Ar amxmodx to programmu var ielikt. Link to comment Share on other sites More sharing options...
losarik123 Posted July 8, 2011 Author Report Share Posted July 8, 2011 ne a kadais ir kods? ko vispar rakstit a to visu copy un passte in war3.sma? a pec tam compile? ja Link to comment Share on other sites More sharing options...
DarkAngel(h)* Posted July 8, 2011 Report Share Posted July 8, 2011 Jā,bet tāpat būs pāris errori,jo tur paaris lietas jaapieliek klāt. Link to comment Share on other sites More sharing options...
losarik123 Posted July 9, 2011 Author Report Share Posted July 9, 2011 aicini man skype nekitosbarbos Link to comment Share on other sites More sharing options...
DarkAngel(h)* Posted July 9, 2011 Report Share Posted July 9, 2011 Tak es neko diži daudz no skirptinga nesaprotu. Prasi alliedmods.net forumā. Link to comment Share on other sites More sharing options...
losarik123 Posted July 9, 2011 Author Report Share Posted July 9, 2011 eu tad kads var palidzet man ar zm+war3 ka taisit compile bez error? Link to comment Share on other sites More sharing options...
remix.cc Posted July 9, 2011 Report Share Posted July 9, 2011 laikam errori ir jaizlabo, un tad ari jaiemacas, ka pareizi vajag kompilet... kaut kur bija rakstits, kaa to darit - pamekle. Link to comment Share on other sites More sharing options...
losarik123 Posted July 10, 2011 Author Report Share Posted July 10, 2011 ok Link to comment Share on other sites More sharing options...
KeeP oFf Posted July 11, 2011 Report Share Posted July 11, 2011 War3ft.sma nekadi kodi nav jāliek. Vienīgi kad kompilē ieliec kautkur kādu burtu un tad nokompilē. Tad paņem atver vēlreiz .sma failu un to ielikto burtu izdzēs un vēlreiz compile tagad tev ir war3ft.amxx kādu tu gribēji. Bet pirms kompilēšanas paņem kodu no šīs lapas kas ir redzama zemāk. Lūdzu lapa kur ir kods, tavam neuzmetu acis: http://wc3mods.net/forums/viewtopic.php?f=21&t=3790&p=21041&hilit=ffa#p21035 Link to comment Share on other sites More sharing options...
losarik123 Posted July 11, 2011 Author Report Share Posted July 11, 2011 ok paldies bet es vispar nesaprtotu ka to darit un es to izdariju un man nesanaca vari pateic savu skype? Link to comment Share on other sites More sharing options...
losarik123 Posted July 15, 2011 Author Report Share Posted July 15, 2011 a pirms compilesana kur man ielec kodu lai nebija lost exp? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now