Jump to content

محتاج مساعده بجعل بكيفية اعطاء اي لاعب عدد قتل شوف الموضوع


Recommended Posts

السلام عليكم

يا اخوان محتاج مساعده

في اعطاء عدد قتل زومبي

مو تحط عدد قتل

تزيده

يعني معي 10 قتل المود يزيد عليه 10

يصير 20

عدد القتل تبعي

كيف

setElementData ??

Link to comment

  
  
Add = 10 ---- The Kills To Add 
KillData = "Kills" ----- Kills Data Name 
playerKills = getElementData ( playerSource, KillData) or 0 ---- Get Kills Data To Add On It 
  
setElementData ( playerSource, KillData, ( playerKills + tonumber(Add) )) ---- Set Kills Data 
  
  
  
Link to comment
  
  
Add = 10 ---- The Kills To Add 
KillData = "Kills" ----- Kills Data Name 
playerKills = getElementData ( playerSource, KillData) or 0 ---- Get Kills Data To Add On It 
  
setElementData ( playerSource, KillData, ( playerKills + tonumber(Add) )) ---- Set Kills Data 
  
  
  

اخي الكود ما زبط

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...