Jump to content

[Pedido]Sistema Stattrack


Karbust
 Share

Recommended Posts

This system is from cs go basically:

 

 

 

Introduced in the Arms Deal update, StatTrak™ is an added component of weapons in Counter-Strike: Global Offensive and can be found when opening a Weapon Case. StatTrak™ guns have an orange LED display attached to the gun to track the amount of "confirmed kills" by the owner of the gun. StatTrak™ kniveshave the confirmed kills etched into the blade instead of using an LED counter. Confirmed kills exclude all bot kills, regardless of the bot's skill level.

In metin2 it counts the number of players killed and monster kills, and if possible, the boss kills, showing the kills that weapon or skin made on the game...

Link to comment
Share on other sites

self.AppendTextLine ( "StatTrack", 0xffCOLOR)

self.AppendTextLine ( "Monsters:% d"% player.GetItemMetinSocket (slotIndex, 1))

self.AppendTextLine ( "Jogadores:% d"% player.GetItemMetinSocket (slotIndex, 2))

 

if (pkKiller && pkKiller-> ISPC ()) {

if (LPITEM pWeaponCostume = pkKiller-> GetWear (COSTUME_WEAPON)) {

if (ISPC ())

pWeaponCostume-> SetSocket (2, pWeaponCostume-> GetSocket (2) +1);

else if (ISPC () && IsStone ()!)

pWeaponCostume-> SetSocket (1, pWeaponCostume-> GetSocket (1) +1);

}

}

 

Link to comment
Share on other sites

Obrigado, mas aonde adiciono isso?

 

A parte do python sei que é no uitooltip.py, mas não sei aonde, e o código para a source é em que ficheiro e aonde? :o

 

EDIT: Já tratei da parte do cliente, agora só me falta saber onde trato da parte da source...

Link to comment
Share on other sites

Eu apenas compartilhei o código, não é de minha autoria. Mais basta procurar a função de morte/kill na source e adicionar a seguir.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...