Emgawe.117 Posted June 28, 2016 Share Posted June 28, 2016 سلام عليكم شباب ابي كود الريموف ازاله الاعب من الماب ضروري Link to comment
N3xT Posted June 28, 2016 Share Posted June 28, 2016 مافهمت وش قصدك ازالة اللاعب من الماب , لكن اذا قصدك ما تخليه يلعب الماب killPed Link to comment
Emgawe.117 Posted June 28, 2016 Author Share Posted June 28, 2016 انا ابيه مثلا احدد على اسمه وادق على زر ريموف ويقوم يموت ! يخرج من الماب ازاله بالعربي Link to comment
Mr.R Posted June 28, 2016 Share Posted June 28, 2016 انا ابيهمثلا احدد على اسمه وادق على زر ريموف ويقوم يموت ! يخرج من الماب ازاله بالعربي انا فاهم قصدك زر اسمه ريموف اذا ضغطه يموت , كان موجود على ايام البيس مود عموماً تفضل #Client addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == اسم الزر ) then triggerServerEvent ( "Kill", localPlayer ) end end ) #Server addEvent ( "Kill", true ) addEventHandler ( "Kill", root, function ( player ) killPed ( player ) outputChatBox ( "* تمت ازالتك", player, 255, 255, 255, true ) end ) Link to comment
Emgawe.117 Posted June 28, 2016 Author Share Posted June 28, 2016 انا ابيهمثلا احدد على اسمه وادق على زر ريموف ويقوم يموت ! يخرج من الماب ازاله بالعربي انا فاهم قصدك زر اسمه ريموف اذا ضغطه يموت , كان موجود على ايام البيس مود عموماً تفضل #Client addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == اسم الزر ) then triggerServerEvent ( "Kill", localPlayer ) end end ) #Server addEvent ( "Kill", true ) addEventHandler ( "Kill", root, function ( player ) killPed ( player ) outputChatBox ( "* تمت ازالتك", player, 255, 255, 255, true ) end ) ربي يعطيكك ألف عافـية يـبععدي . Link to comment
Adham Posted June 28, 2016 Share Posted June 28, 2016 addEvent ( "Kill", true ) addEventHandler ( "Kill", root, function ( ) killPed ( source ) outputChatBox ( "* تمت ازالتك", source, 255, 255, 255, true ) end ) Link to comment
Emgawe.117 Posted June 28, 2016 Author Share Posted June 28, 2016 الحين سويت زر الريموف باقي الاضافة الي الجولة وش استخدم Link to comment
Emgawe.117 Posted June 28, 2016 Author Share Posted June 28, 2016 شف اخي الحين انا سويت زر إزالة اللاعب من الماب.. الحين انا أبي ادخل اللاعب الي الماب مثلا احدد على اسمه وادق على زر اضافة ويقوم يدخل الماب فهمت؟ Link to comment
Mr.R Posted June 28, 2016 Share Posted June 28, 2016 addEvent ( "Kill", true ) addEventHandler ( "Kill", root, function ( ) killPed ( source ) outputChatBox ( "* تمت ازالتك", source, 255, 255, 255, true ) end ) ماتفرق ^.^ Link to comment
Adham Posted June 28, 2016 Share Posted June 28, 2016 onClientGUIClick guiGridListGetSelectedItem guiGridListGetItemText getPlayerFromName setElementPosition Link to comment
#Soking Posted June 28, 2016 Share Posted June 28, 2016 local screenW, screenH = guiGetScreenSize() Window_ = guiCreateWindow((screenW - 305) / 2, (screenH - 268) / 2, 305, 268, "# Test _", false) guiWindowSetSizable(Window_, false) guiSetAlpha(Window_, 1.00) Button_GridList = guiCreateGridList(9, 22, 286, 194, false, Window_) Com = guiGridListAddColumn(Button_GridList, "Players", 0.9) Button_Add = guiCreateButton(10, 226, 137, 22, "add Player", false, Window_) guiSetFont(Button_Add, "default-bold-small") guiSetProperty(Button_Add, "NormalTextColour", "FF00FE29") Button_Remover = guiCreateButton(157, 226, 137, 22, "Remove Player", false, Window_) guiSetFont(Button_Remover, "default-bold-small") guiSetProperty(Button_Remover, "NormalTextColour", "FFFE0000") function aRefreshData_ ( ) guiGridListClear( Button_GridList ) for _,Players in ipairs(getElementsByType("player")) do local Row_ = guiGridListAddRow(Button_GridList) guiGridListSetItemText(Button_GridList, Row_, 1, getPlayerName(Players), false, false) guiGridListSetItemColor(Button_GridList,Row_,Column_,9,255,0) end end addEventHandler('onClientPlayerQuit',getRootElement(),aRefreshData_) addEventHandler('onClientPlayerJoin',getRootElement(),aRefreshData_) addEventHandler('onClientResourceStart',resourceRoot,aRefreshData_) addEventHandler('onClientPlayerChangeNick',getRootElement(),aRefreshData_) addEventHandler('onClientPlayerSpawn',getRootElement(),aRefreshData_) addEventHandler('onClientGUIClick',getRootElement( ), function ( ) local aPlayer_ = getPlayerFromPartialName( guiGridListGetSelectedItemText ( Button_GridList, Com ) ) if ( source == Button_Add ) then fadeCamera( false ) setTimer( function( ) fadeCamera( true ) setElementPosition(aPlayer_, xPos, yPos ,zPos) setElementDimension(aPlayer_,Dimension) setElementInterior(aPlayer_,Interior) end , 4000 , 1 ) elseif ( source == Button_Remover ) then setElementHealth(aPlayer_ , 0 ) 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