Jump to content

طلب اكواد شوب


kolme2

Recommended Posts

الزر :

infoB1 = guiCreateButton(480,106,169,21,"Show Money in Chat | 2$",false,info) 

بالنسبة للكود :

 local playerMoney = getPlayerMoney(source) 

^ الكلنت ^

addEvent("infoB1", true) 
addEventHandler("infoB1", rootElement, 
function() 
local playerMoney = getPlayerMoney(source) 
if ( playerMoney < 5000 ) then 
outputChatBox("#FFFF1A[#FFFFFF "..getPlayerName(source).." #FFFF1A] is Poor He Have : #FFFF1A[#00FF00 "..playerMoney.."$ #FFFF1F] ",root,255,255,0,true) 
else 
outputChatBox("#FFFF1A[#FFFFFF "..getPlayerName(source).." #FFFF1A] is Rich He Have : #FFFF1A[#00FF00 "..playerMoney.."$ #FFFF1F] ",root,255,255,0,true) 
end 
end ) 

^السيرفر^

Edited by Guest
Link to comment
  • Other Languages Moderators
اذا كان خارج ايفينت كذا خطأ
local playermoney = getPlayerMoney ( getLocalPlayer () ) 

local playermoney = getPlayerMoney ( ) 

Link to comment

ولا كود شغال جربت

ولكن الخطا من سيرفر

هذا هو الكود

addEvent("infoB1", true) 
addEventHandler("infoB1", rootElement, 
function() 
local playermoney = getPlayerMoney ( ) 
outputChatBox("#FFFF1A[#FFFFFF "..getPlayerName(source).." #FFFF1A] is Poor He Have : #FFFF1A[#00FF00 "..playerMoney.."$ #FFFF1F] ",root,255,255,0,true) 
else 
outputChatBox("#FFFF1A[#FFFFFF "..getPlayerName(source).." #FFFF1A] is Rich He Have : #FFFF1A[#00FF00 "..playerMoney.."$ #FFFF1F] ",root,255,255,0,true) 
end 
end ) 

Link to comment
ولا كود شغال جربت

ولكن الخطا من سيرفر

هذا هو الكود

addEvent("infoB1", true) 
addEventHandler("infoB1", rootElement, 
function() 
local playermoney = getPlayerMoney ( ) 
outputChatBox("#FFFF1A[#FFFFFF "..getPlayerName(source).." #FFFF1A] is Poor He Have : #FFFF1A[#00FF00 "..playerMoney.."$ #FFFF1F] ",root,255,255,0,true) 
else 
outputChatBox("#FFFF1A[#FFFFFF "..getPlayerName(source).." #FFFF1A] is Rich He Have : #FFFF1A[#00FF00 "..playerMoney.."$ #FFFF1F] ",root,255,255,0,true) 
end 
end ) 

else مدري وش تبي ما فيه if عشان تكتبها

جرب ذا

addEvent("infoB1", true) 
addEventHandler("infoB1", getRootElement (), 
function() 
local playermoney = getPlayerMoney ( ) 
outputChatBox("#FFFF1A[#FFFFFF "..getPlayerName(source).." #FFFF1A] is Poor He Have : #FFFF1A[#00FF00 "..playerMoney.."$ #FFFF1F] ",root,255,255,0,true) 
end) 

Link to comment
  • Other Languages Moderators
addEvent("infoB1", true) 
addEventHandler("infoB1", root, 
function() 
     local playerMoney = getPlayerMoney(source) 
     outputChatBox("#FFFF1A[#FFFFFF "..getPlayerName(source).." #FFFF1A] is Poor He Have : #FFFF1A[#00FF00 "..playerMoney.."$ #FFFF1F] ",root,255,255,0,true) 
end) 

Link to comment
  • Other Languages Moderators

تأكد أنك حطيت الكود سيرفر

addEvent("infoB1", true) 
addEventHandler("infoB1", root, 
function() 
     local playerMoney = getPlayerMoney(source) 
     outputChatBox("#FFFF1A[#FFFFFF "..getPlayerName(source).." #FFFF1A] is Poor He Have : #FFFF1A[#00FF00 "..playerMoney.."$ #FFFF1F] ",root,255,255,0,true) 
end) 

+

حط كود الكلينت

Link to comment
  • Other Languages Moderators
addEvent("scoreB1", true) 
addEventHandler("scoreB1", root, 
function() 
     local kill = getElementData(source, "Kills") or 0 
     local death = getElementData(source, "Deaths") or 0 
     outputChatBox("Your Kill: "..kill.." | Your Death: "..death, root,255,255,0,true) 
end) 

Link to comment
  • Other Languages Moderators
بالسكوري فيه مشكلة

مايحسب القتل و الموت

AeQq1.png

false مستحيل يقول لك

تأكد أنك نسخت الكود صح

و حط كودك بعد ما عدلت عليه

Link to comment
  • Other Languages Moderators
اخوي

انا عدلت على كودك :D

لكن كودك يقول 0 مايعدل

شي طبيعي إذا ما كان عندك ألمنت داتا بعدد القتل و الموت

لازم يكون عندك سكربت للقتل - الموت

ذا موجود في البيس مود

إذا كنت تستخدم البيس مود و أنت مطفيه وقت الي جالس تجرب بالأكواد شي طبيعي يقول 0

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...