#STZ Posted May 20, 2016 Share Posted May 20, 2016 ممكن تصحيح هذا الكود و هو عند الضغط علي الزر يعطي درع 100 واذا لديه يكتب له addEventHandler ("onClientGUIClick", getRootElement(), function () if source == armour then setPedArmor ( player, 100 ) outputChatBox("تم تعبئة درعك") if getPedArmor(player) == 100 then return outputChatBox("تم تعبئة درعك من قبل", player, 220, 0, 0 ) Link to comment
Me[Z]oO Posted May 20, 2016 Share Posted May 20, 2016 --Client addEventHandler ("onClientGUIClick", root, function () if source == armour then if getPedArmor(localPlayer) == 100 then outputChatBox("تم تعبئة درعك من قبل يزم -_-",25,255,0 ) else triggerServerEvent('Mezo',localPlayer) outputChatBox("تم تعبئة درعك",source) end end end) --Server addEvent('Mezo',true) addEventHandler('Mezo',root, function() setPedArmor ( source, 100 ) end) Link to comment
</Mr.Tn6eL> Posted May 20, 2016 Share Posted May 20, 2016 addEventHandler ("onClientGUIClick", resourceRoot, function () if source == armour then if getPedArmor(localPlayer) == 100 then outputChatBox("تم تعبئة درعك من قبل يزم -_-",25,255,0 ) else triggerServerEvent('Mezo',localPlayer) outputChatBox("تم تعبئة درعك") end end end) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now