Jump to content

طلب كود


Recommended Posts

Posted

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

)

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

Posted
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 
) 

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

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

Posted
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 
) 

Posted
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 
) 

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

Posted (edited)
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
Posted
ههههههههههههههههههههههههههههه مادري اانا حطيته صح ولالا

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

بس مدري , استنى الردود

Posted

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

ذا هو

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) 

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

ذا هو

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

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

Posted
ابي كود

jetpack

وكود المخفي

لاهنتم ضروري

وكود

التجميد

الحين انا احول

هو قال ابي كود المخفي

انا هذا الي انا اقدر عليه

و في البداية ما قال ليزر قال في النص الموضوع

Posted
بس ملف سيرفر كود المخفي
function buyinv() 
if ( source == b ) then 
triggerServerEvent("inv",getLocalPlayer()) 
end 
end 
addEventHandler("onClientGUIClick",getRootElement(),buyinv) 

b = اسم الزر

ذا الكلينت

Posted

ركز معي الحين

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

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

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

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) 

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

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

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