|Mr|-Talal07-| Posted July 31, 2013 Share Posted July 31, 2013 (edited) -- Client Side addEventHandler("onClientGUIClick",Button, function () local sel = guiGridListGetSelectedItem(gridList) if sel ~= -1 then local player = getPlayerFromName(guiGridListGetItemText(gridList,sel,1)) if isElement(player) then triggerServerEvent("onSlapPlayer",localPlayer,player) end end end ,false) -- Server Side addEvent("onSlapPlayer",true) addEventHandler("onSlapPlayer",root, function (thePlayer) if isElement(thePlayer) then killPed(thePlayer,source) end end ) Edited July 31, 2013 by Guest Link to comment
AHMAD1234 Posted July 31, 2013 Share Posted July 31, 2013 جرب هالكود ورد لي خبر , addCommandHandler('Kill', function() setElementHealth(localPlayer,0) end ) تكون وهميه client في جانب الـ setElementHealth الـ Link to comment
فاّرس Posted July 31, 2013 Share Posted July 31, 2013 طيب ياخي جربه ؟ وشوف يموت ولا لا؟ Link to comment
|Mr|-Talal07-| Posted July 31, 2013 Share Posted July 31, 2013 -- Client Side addEventHandler("onClientGUIClick",Button, function () local sel = guiGridListGetSelectedItem(gridList) if sel ~= -1 then local player = getPlayerFromName(guiGridListGetItemText(gridList,sel,1)) if isElement(player) then triggerServerEvent("onSlapPlayer",localPlayer,player) end end end ,false) -- Server Side addEvent("onSlapPlayer",true) addEventHandler("onSlapPlayer",root, function (thePlayer) if isElement(thePlayer) then killPed(thePlayer,source) end end ) طيب يا سيد جرب ذاا Link to comment
فاّرس Posted July 31, 2013 Share Posted July 31, 2013 انا في الكلنت عندي شغال ويموت اللاعب -___- الي ابي اعرفه ليه حاطين وظيفه كلنت وما تشتغل ؟ ._. Link to comment
AHMAD1234 Posted July 31, 2013 Share Posted July 31, 2013 انا في الكلنت عندي شغال ويموت اللاعب -___-الي ابي اعرفه ليه حاطين وظيفه كلنت وما تشتغل ؟ ._. وهميه Link to comment
فاّرس Posted July 31, 2013 Share Posted July 31, 2013 معقول حتى لو مت مافي احد يشوفني ميت ؟,؟ اذا على كذا ابي اعرف الحين من جد ليه حطوها كلنت ؟؟ المهم وصلته الطريقه ذذذ 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