GAME_OVER!! Posted August 22, 2012 Share Posted August 22, 2012 بسم الله الرحمن الرحيم @~> السلام عليكم روحمة الله وبركاتة @~> علومكم اخباركم انا كان عندي فكره انه لما الاعب يضغط زر يشتغل مود ويطفي مود للاعب فقط ----------------------- --server ---------------------- addEvent("script", true) addEventHandler("script", getRootElement(), function ( Player, resourceName ) if ( resourceName ) then local resource = getResourceFromName ( resourceName ) local start = startResource ( skin ) local stop = stopResource( skin1 ) if ( start ) then outputChatBox ( resourceName .. " start skin", Player, 255, 0, 0 ) else outputChatBox ( "error~!", Player, 255, 0, 0 ) if ( stop ) then outputChatBox ( resourceName .. " stop skin1", Player, 255, 0, 0 ) else outputChatBox ( "error~!", Player, 255, 0, 0 ) end end end end ) ------------------------- --client ------------------------ addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == button ) then triggerServerEvent("script",getLocalPlayer()) end end ) وفي محاوله ثانيه ------------------------- --server ------------------------ addEvent("script", true) addEventHandler("script", getRootElement(), function(plr) accountName = getAccountName(getPlayerAccount(plr)) if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then executeCommandHandler("stop skin",plr) executeCommandHandler("start skin",plr) else aclGroupAddObject (aclGetGroup("Admin"), "user."..accountName) executeCommandHandler("stop skin",plr) executeCommandHandler("star skin",plr) aclGroupRemoveObject (aclGetGroup("Admin"), "user."..accountName) end outputChatBox("start skin", plr, 255, 255, 0, true) local name = getPlayerName(source) outputChatBox ( "#FFFF1A [ #FFFFFF" .. name .. " start skin", getRootElement(), 255, 255, 0, true ) else outputChatBox("~][~error~][~!", plr, 255, 0, 0, true) end else outputChatBox("~][~error~][~!",plr,255,0,0,true) end end end ) ------------------- --client ------------------ addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == button ) then triggerServerEvent("script",getLocalPlayer()) end end ) Link to comment
TAPL Posted August 22, 2012 Share Posted August 22, 2012 المشكلة يا خوي أنك ما تقدر تطفي مود لـ لاعب واحد فقط بس تقدر تلغي أستبدال الشخصية بـ الكود ذا engineRestoreModel Link to comment
GAME_OVER!! Posted August 22, 2012 Author Share Posted August 22, 2012 المشكلة يا خويأنك ما تقدر تطفي مود لـ لاعب واحد فقط بس تقدر تلغي أستبدال الشخصية بـ الكود ذا engineRestoreModel بالنسبه لشخصيه هاذا مثال فقط وبالنسبه اني ماقدر يعني هاذا شيء مستحيل؟ 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