d43dr4 Posted December 16, 2012 Share Posted December 16, 2012 السلام عليكم شباب ابي تصححون لي كود وهو يفتح نافذة ، للي عندهم خاصية الباند مفتوحة ابي اغير يصير يفتح للي عندهم ذي الخاصية : function.banPlayer --- الاصل command.ACL --- وش ابيه انا ذا الكود : addCommandHandler( 'errorhpanel', function( player ) if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( player ) ), aclGetGroup( 'RPC' ) ) or hasObjectPermissionTo( player, 'function.banPlayer', false ) then if not getElementData( player, 'HP_Opened' ) and not getElementData( player, 'mrk_in' ) then triggerClientEvent( player, 'HP_SetVisible', root, true ); اتمنى تصححونه باقرب وقت شكرا Link to comment
Blaawee Posted December 16, 2012 Share Posted December 16, 2012 hasObjectPermissionTo *Time to learn Link to comment
Sora Posted December 16, 2012 Share Posted December 16, 2012 افف لهذي الدرجه ماتقدر حتى تبدل function.banPlayer ب command.ACL -___________- Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 يا اخي شوف فوق انا جربت اغير function.banPlayer ب command.ACL و ما زبط Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 سورا ، قلتلك من قبل انا اجرب وحدي قبل ما اطرح الموضوع جربت ما زبط Link to comment
Sora Posted December 16, 2012 Share Posted December 16, 2012 (edited) if hasObjectPermissionTo( player, "command.ACL", false) تم التصحيح عذراً Edited December 16, 2012 by Guest Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 سورا ، وش تظنني سويت ذا اللي سويته و مازبببططططططططط Link to comment
Sora Posted December 16, 2012 Share Posted December 16, 2012 شوف المثال في الويكي if hasObjectPermissionTo ( player, "resource.YourResourceName.accessPrivateArea", false ) then -- اي شيء تبيه يحصل اذا كان مسموح else -- اي شيء تبيه يحصل اذا كان غير مسموح end + اطرح الكود كامل Link to comment
Sora Posted December 16, 2012 Share Posted December 16, 2012 addCommandHandler( 'errorhpanel', function ( player ) if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( player ) ), aclGetGroup( 'RPC' ) ) or hasObjectPermissionTo( player, 'command.ACL', false ) then if not getElementData( player, 'HP_Opened' ) and not getElementData( player, 'mrk_in' ) then triggerClientEvent( player, 'HP_SetVisible', root, true ) end end end) Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 خرب السكربت ي سورا Link to comment
Sora Posted December 16, 2012 Share Posted December 16, 2012 ^ ماحطيت الكود كامل وماعرف فين المشكله بالضبط :\ ياليت تحط الكود كامل + تعطيني نتائج /debugscript 3 Link to comment
abu5lf Posted December 16, 2012 Share Posted December 16, 2012 خرب السكربت ي سورا اطرح كودك Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 ما يمديني اطرح الكود كامل لانه طويل بس هذا الجزء اللي نحتاجه addCommandHandler( 'errorhpanel', function ( player ) if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( player ) ), aclGetGroup( 'RPC' ) ) or hasObjectPermissionTo( player, 'command.ACL', false ) then if not getElementData( player, 'HP_Opened' ) and not getElementData( player, 'mrk_in' ) then triggerClientEvent( player, 'HP_SetVisible', root, true ) end end end) else outputChatBox( '* Access denied for this command!', player, 255, 36, 51 ); end; end ); في /debugscript 3 ما يجي اي شيء حول هذا سكربت Link to comment
Blaawee Posted December 16, 2012 Share Posted December 16, 2012 (edited) ما يمديني اطرح الكود كامل لانه طويلبس هذا الجزء اللي نحتاجه addCommandHandler( 'errorhpanel', function ( player ) if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( player ) ), aclGetGroup( 'RPC' ) ) or hasObjectPermissionTo( player, 'command.ACL', false ) then if not getElementData( player, 'HP_Opened' ) and not getElementData( player, 'mrk_in' ) then triggerClientEvent( player, 'HP_SetVisible', root, true ) end end end) else outputChatBox( '* Access denied for this command!', player, 255, 36, 51 ); end; end ); في /debugscript 3 ما يجي اي شيء حول هذا سكربت متآكد ذآ كودك ؟ addCommandHandler( 'errorhpanel', function( player ) if hasObjectPermissionTo( player, 'command.ACL', true ) and not getElementData( player, 'HP_Opened' ) and not getElementData( player, 'mrk_in' ) then triggerClientEvent( player, 'HP_SetVisible', root, true ); else outputChatBox( '* Access denied for this command!', player, 255, 36, 51 ); end end ) #EDIT Edited December 16, 2012 by Guest Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 غلط ، لسه مازال اللي عندهم خاصية الباند يقدرون يفتحون النافذه Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 شبآب وين رحتو سحبتو علي ي الحلوين ؟ Link to comment
Sora Posted December 16, 2012 Share Posted December 16, 2012 سوي قروب مخصص للي يقدر يفتح النافذه واستخدم هذا الفنكشن isObjectInACLGroup Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 نعم نحن بس معقدين السالفة سويتها ي سورا آسف شباب خطأي انا Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 سورا ، كيف اسوي بس شخص معين يقدر يفتحها مثلا بسرياله او باسمه ؟ يعني ما ابي تكون ب قروب اسل Link to comment
AhmadQTR Posted December 16, 2012 Share Posted December 16, 2012 سورا ، كيف اسوي بس شخص معين يقدر يفتحهامثلا بسرياله او باسمه ؟ يعني ما ابي تكون ب قروب اسل getPlayerFromName Link to comment
Sora Posted December 16, 2012 Share Posted December 16, 2012 serial = "XXXXXXXXXXXXXXXXX" if getPlayerSerial(player) == serial then -- do something 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