Max+ Posted April 19, 2013 Share Posted April 19, 2013 هههههههههههههههه خربهأ برستيج ضضض1 Link to comment
ABO-SR777777A Posted April 24, 2013 Author Share Posted April 24, 2013 سويته كلينت addEventHandler ( "onClientGUIClick", root, function ( ) if source == اسم الزر then triggerServerEvent("kick",getLocalPlayer()) end end) Link to comment
فاّرس Posted April 24, 2013 Share Posted April 24, 2013 ^ طيب مآفيه شيء صح ,, بس اختصر triggerServerEvent("kick",getLocalPlayer()) بـ : triggerServerEvent("kick",localPlayer) افضل ^ Link to comment
iPrestege Posted April 24, 2013 Share Posted April 24, 2013 اطرح الكود الكلنت و السيرفر آشوفهم ..؟ Link to comment
ABO-SR777777A Posted April 24, 2013 Author Share Posted April 24, 2013 كلينت addEventHandler ( "onClientGUIClick", root, function ( ) if source == اسم الزر then triggerServerEvent("kick",getLocalPlayer()) end end) --- سيرفر addEvent("kick", true) addEventHandler("kick", root, function () kickPlayer (source,"سبب الكيك") end) Link to comment
iPrestege Posted April 24, 2013 Share Posted April 24, 2013 كلينت addEventHandler ( "onClientGUIClick", root, function ( ) if source == اسم الزر then triggerServerEvent("kick",getLocalPlayer()) end end) --- سيرفر addEvent("kick", true) addEventHandler("kick", root, function () kickPlayer (source,"سبب الكيك") end) خطأ لآزم تجيب الاعب من القريد وتسوي -- client -- guiGridListGetItemText guiGridListGetSelectedItem -- server -- getPlayerFromName وارسلها اللي من الكلنت بالترايقر وجيب اسم الاعب من السيرفر , Link to comment
ABO-SR777777A Posted April 24, 2013 Author Share Posted April 24, 2013 صصصصصصصصصصصصصصصعب Link to comment
iPrestege Posted April 24, 2013 Share Posted April 24, 2013 لم يتم التجربة .. -- Client -- addEventHandler("onClientGUIClick",getRootElement(), function ( ) if ( source == GUIEditor_Button[5] ) then local Player = guiGridListGetItemText ( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) if ( guiGridListGetSelectedItem(GUIEditor_Grid[1]) == -1 ) then return outputChatBox("الرجاء اختيار لاعب ..") end triggerServerEvent("KickSelectedPlayer",localPlayer,Player) end end ) -- Server -- addEvent("KickSelectedPlayer",true) addEventHandler("KickSelectedPlayer",getRootElement(), function ( Player ) SelectedElement = getPlayerFromName ( Player ) if ( SelectedElement ) then kickPlayer( SelectedElement,"Reason" ) end end ) بالتوفيق و لاتنسى تضيفة السكربت لـ الصلاحيات بـ الادمن ... Link to comment
ABO-SR777777A Posted April 24, 2013 Author Share Posted April 24, 2013 يقلي WARNING: 10\server.lua:6: Access denied @ 'kickPlayer' Link to comment
iPrestege Posted April 24, 2013 Share Posted April 24, 2013 يقليWARNING: 10\server.lua:6: Access denied @ 'kickPlayer' ضيفة لـ قروب الادمن؟ resource. ? Link to comment
iMr.Dawix~# Posted April 24, 2013 Share Posted April 24, 2013 يقليWARNING: 10\server.lua:6: Access denied @ 'kickPlayer' ما عنده خصائص كيك حطه في قروب يسمح للكيك resource.اسم مودك Link to comment
ABO-SR777777A Posted April 25, 2013 Author Share Posted April 25, 2013 يب اشتغل الحين ابي الباند ! بحاول اسويه Link to comment
ABO-SR777777A Posted April 25, 2013 Author Share Posted April 25, 2013 كود الباند addEventHandler("onClientGUIClick",getRootElement(), function ( ) if ( source == GUIEditor_Button[5] ) then local Player = guiGridListGetItemText ( GUIEditor_Grid[1], guiGridListGetSelectedItem ) ( GUIEditor_Grid[1] ), 1 ) outputChatBox("الرجاء اختيار لاعب ..") end triggerServerEvent("KickSelectedPlayer",localPlayer,Player) end end ) - سيرفر addEvent("onPlayerLogin",true) addEventHandler ( 'onPlayerLogin', getRootElement ( ), function ( Player ) SelectedElement = getPlayerFromName ( Player ) if ( SelectedElement ) then if Serial ~= getPlayerSerial ( source ) then banPlayer ( source, false, false, true, getRootElement ( ), 'reason ban' ) end end end ) Link to comment
iPrestege Posted April 25, 2013 Share Posted April 25, 2013 -- Server -- addEvent("BanSelectedPlayer",true) addEventHandler("BanSelectedPlayer",getRootElement(), function ( Player ) local element = getPlayerFromName ( Player ) if ( element ) then outputChatBox("* [ "..getPlayerName(element).." ] Has Been Banded By "..getPlayerName(source).." ",getRootElement(),0,255,255,true) banPlayer ( element, false, false, true, getRootElement ( ), 'Reason' , 3600 ) end end ) -- Client -- addEventHandler("onClientGUIClick",getRootElement(), function ( ) local Player = guiGridListGetItemText ( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) if ( source == GUIEditor_Button[5] ) then if ( guiGridListGetSelectedItem(GUIEditor_Grid[1]) == -1 ) then return outputChatBox("الرجاء اختيار لاعب ..") end triggerServerEvent("KickSelectedPlayer",localPlayer,Player) elseif ( source == GUIEditor_Button[6] ) then if ( guiGridListGetSelectedItem(GUIEditor_Grid[1]) == -1 ) then return outputChatBox("الرجاء اختيار لاعب ..") end triggerServerEvent("BanSelectedPlayer",localPlayer,Player) end end ) Link to comment
ABO-SR777777A Posted April 25, 2013 Author Share Posted April 25, 2013 طيب ابي الباند ساعه بس مو مأبد Link to comment
iPrestege Posted April 25, 2013 Share Posted April 25, 2013 طيب ابي الباند ساعه بس مو مأبد هذآ سآعه ((= Link to comment
ABO-SR777777A Posted April 25, 2013 Author Share Posted April 25, 2013 لالا معليش زبط باند طيب ابي مود الميوت Link to comment
iPrestege Posted April 25, 2013 Share Posted April 25, 2013 -- Server -- addEvent("MuteSelectedPlayer",true) addEventHandler("MuteSelectedPlayer",getRootElement(), function ( Player ) local element = getPlayerFromName ( Player ) if ( element ) then outputChatBox("* [ "..getPlayerName(element).." ] Has Been Muted By "..getPlayerName(source).." ",getRootElement(),0,255,255,true) setPlayerMuted ( element , true ) setTimer ( function ( ) outputChatBox("* [ "..getPlayerName(element).." ] Has Been UnMuted ",getRootElement(),0,255,255,true) setPlayerMuted ( element , false ) end,300000,1) end end ) -- Client -- addEventHandler("onClientGUIClick",getRootElement(), function ( ) local Player = guiGridListGetItemText ( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) if ( source == GUIEditor_Button[5] ) then if ( guiGridListGetSelectedItem(GUIEditor_Grid[1]) == -1 ) then return outputChatBox("الرجاء اختيار لاعب ..") end triggerServerEvent("KickSelectedPlayer",localPlayer,Player) elseif ( source == GUIEditor_Button[6] ) then if ( guiGridListGetSelectedItem(GUIEditor_Grid[1]) == -1 ) then return outputChatBox("الرجاء اختيار لاعب ..") end triggerServerEvent("BanSelectedPlayer",localPlayer,Player) elseif ( source == GUIEditor_Button[7] ) then if ( guiGridListGetSelectedItem(GUIEditor_Grid[1]) == -1 ) then return outputChatBox("الرجاء اختيار لاعب ..") end triggerServerEvent("MuteSelectedPlayer",localPlayer,Player) end end ) Link to comment
ABO-SR777777A Posted April 25, 2013 Author Share Posted April 25, 2013 معليش عادي اطلب ثاني Link to comment
ABO-SR777777A Posted April 25, 2013 Author Share Posted April 25, 2013 طيب ابي لما اضغط ميوت على اسمه يجيله ميوت ادق مره ثانيه ينفك الميوت والكمله تتغير Link to comment
ABO-SR777777A Posted April 25, 2013 Author Share Posted April 25, 2013 طيب كيف ابحث على اكود من الويكي Link to comment
#Al-Ha[J]aRii Posted April 25, 2013 Share Posted April 25, 2013 طيب كيف ابحث على اكود من الويكي شكلك ولا مرة فتحت الويكي https://wiki.multitheftauto.com/wiki/Main_Page 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