Jump to content

طلب كود


Recommended Posts

addEvent(JetPack',true)

addEventHandler(JetPack', root,

function ()

if (getPlayerMoney(source) >= 3000) then

takePlayerMoney (source,3000)

setElementHealth(source,100)

outputChatBox("* #0099ccSuccessfully bought Health #000000[ #ff0000-$2500 #000000]#00ff00 !",source,0,255,0,true)

else --- dont use elseif this is good way ..

outputChatBox("* you Don't have enough Money !",source,255,0,0,true)

end

end

)

تقصد كذا ولالا ولو خطأ ساعندي

Link to comment
addEvent(JetPack',true) 
addEventHandler(JetPack', root, 
function () 
if (getPlayerMoney(source) >= 3000) then 
takePlayerMoney (source,3000) 
setElementHealth(source,100) 
outputChatBox("* #0099ccSuccessfully bought Health #000000[ #ff0000-$2500 #000000]#00ff00 !",source,0,255,0,true) 
else --- dont use elseif this is good way .. 
outputChatBox("* you Don't have enough Money !",source,255,0,0,true) 
end 
end 
) 

تراني اعرف بس مابي اسوي

ههههههههههههههههههههههههههههه

Link to comment
addEvent(JetPack',true) 
addEventHandler(JetPack', root, 
function () 
if (getPlayerMoney(source) >= 3000) then 
takePlayerMoney (source,3000) 
setElementHealth(source,100) 
outputChatBox("* #0099ccSuccessfully bought Health #000000[ #ff0000-$2500 #000000]#00ff00 !",source,0,255,0,true) 
else --- dont use elseif this is good way .. 
outputChatBox("* you Don't have enough Money !",source,255,0,0,true) 
end 
end 
) 

تراني اعرف بس مابي اسوي

ههههههههههههههههههههههههههههه

addEvent('JetPack',true) 
addEventHandler('JetPack', root, 
function () 
if (getPlayerMoney(source) >= 3000) then 
takePlayerMoney (source,3000) 
setElementHealth(source,100) 
outputChatBox("* #0099ccSuccessfully bought Health #000000[ #ff0000$2500#000000]#00ff00 !",source,0,255,0,true) 
else 
outputChatBox("* you Don't have enough Money !",source,255,0,0,true) 
end 
end 
) 

Link to comment
addEvent('Laser',true) 
addEventHandler('Laser', root, 
    function () 
       if (getPlayerMoney(source) >= 3000) then 
       takePlayerMoney (source,3000) 
       setElementLaser(source,100) 
       outputChatBox("* #0099ccSuccessfully bought Laser #000000[ #ff0000-$2500 #000000]#00ff00 !",source,0,255,0,true) 
       else --- dont use elseif this is good way .. 
       outputChatBox("* you Don't have enough Money !",source,255,0,0,true) 
       end 
    end 
) 

شفلي الصح والخطأ

Link to comment
addEvent('Laser',true) 
addEventHandler('Laser', root, 
    function () 
       if (getPlayerMoney(source) >= 3000) then 
       takePlayerMoney (source,3000) 
       setElementLaser(source,100) 
       outputChatBox("* #0099ccSuccessfully bought Laser #000000[ #ff0000-$2500 #000000]#00ff00 !",source,0,255,0,true) 
       else --- dont use elseif this is good way .. 
       outputChatBox("* you Don't have enough Money !",source,255,0,0,true) 
       end 
    end 
) 

شفلي الصح والخطأ

setElementLaser

11954322131712176739question_mark_naught101_02.svg.med.png

11954322131712176739question_mark_naught101_02.svg.med.png

:?:

Edited by Guest
Link to comment

انت تبي كود الاختفاء

ذا هو

function inv() 
    local money = getPlayerMoney(source) 
    if ( money >= 3000 ) then 
        takePlayerMoney(source,3000) 
        setElementAlpha(source,0) 
        setTimer(setElementAlpha,60000,1,source,255) 
    else 
        outputChatBox("You Don't Have Enough Money") 
    end 
end 
addEvent("inv",true) 
addEventHandler("inv",getRootElement(),inv) 

Link to comment
انت تبي كود الاختفاء

ذا هو

function inv() 
    local money = getPlayerMoney(source) 
    if ( money >= 3000 ) then 
        takePlayerMoney(source,3000) 
        setElementAlpha(source,0) 
        setTimer(setElementAlpha,60000,1,source,255) 
    else 
        outputChatBox("You Don't Have Enough Money") 
    end 
end 
addEvent("inv",true) 
addEventHandler("inv",getRootElement(),inv) 

images?q=tbn:ANd9GcRtZEXV-fgAPxAlCRpPh5sEmV4VKfsRaCwXHNZLeikcAPxePTpbWA&t=1

لا هو يبي كود الليزر الي يطلع من السلاح

Link to comment

ركز معي الحين

الشوب لازم له ملفين ملف سيرفر ملف كلينت

ملف الكلينت يكون فيه التصميم و ربط الازرار

هذا كود الكلينت الي ربطنا به الزر

function buyinv() 
if ( source == b ) then 
triggerServerEvent("inv",getLocalPlayer()) 
end 
end 
addEventHandler("onClientGUIClick",getRootElement(),buyinv) 

b الــ

هو اسم الزر الي اذا ضغطه يحدث الي في ملف السيرفر

شوف بــ

triggerServerEvent("inv",getLocalPlayer()) 

ارسلنه الى السيرفر

هذا الكود تحطه في ملف السيرفر

function inv() 
    local money = getPlayerMoney(source) 
    if ( money >= 3000 ) then 
        takePlayerMoney(source,3000) 
        setElementAlpha(source,0) 
        setTimer(setElementAlpha,60000,1,source,255) 
    else 
        outputChatBox("You Don't Have Enough Money") 
    end 
end 
addEvent("inv",true) 
addEventHandler("inv",getRootElement(),inv) 

اذا ما فهمتم حاول انك تفهم

او راجع الويكي في الاوامر الي ما فهمتها

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