-
Posts
2,382 -
Joined
-
Last visited
-
Days Won
57
Everything posted by iMr.WiFi..!
-
--client addEventHandler ("onClientGUIClick",clearButton, function () name = getPlayerName(localPlayer) triggerServerEvent ( "Cl", localPlayer, name) end ) addEvent ("CLEAR",true) addEventHandler ("CLEAR",root, function (name) guiGridListClear (gridName) rw = guiGridListAddRow (gridName) guiGridListSetItemText (gridName,rw,1,"**CLEARED BY "..name.."**",false,false) end جرب
-
شوف الويكي وسوي الكود ولو فيه غلط نساعدك
-
شوف الويكي وسوي الكود ولو فيه غلط نساعدك
-
الحين في شات جريد ليست ولا شات بوكس ؟؟
-
الحين في شات جريد ليست ولا شات بوكس ؟؟
-
اطرح الكيلنت كامل + السيرفر
-
addEventHandler("onClientGUIClick",root, function ( ) local sel = guiGridListGetSelectedItem(pList ) local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList),1) local player = getPlayerFromName ( plr ) if source == desBtn and sel ~= -1 and isPedInVehicle(plr) then triggerServerEvent("destroy", localPlayer, plr) destroyElement ( getPedOccupiedVehicle(player) ) end end end ) جرب
-
وعليكم سلام ورحمة الله وبركاته ~ -- يشيل السيارة نهائياً destroyElement -- اذا كان محدد شيء من الجريد ليست guiGridListGetSelectedItem
-
-- client addEventHandler("onClientGUIClick", root, function () local sel = guiGridListGetSelectedItem ( grid ) local plr = guiGridListGetItemText ( grid,2 Sel, 1 ) if source == Btn and sel ~= -1 then local WiFi = guiGetText ( Edit ) -- اسم الايديت triggerServerEvent("SlapPlayer", localplayer, plr, WiFi) end end ) -- server addEvent("SlapPlayer",true) addEventHandler("SlapPlayer", root, function (plr,WiFi) killPed(plr) outputChatBox(plr.."has Slapped By "..getPlayerName (source).."Reason:"..WiFi , 255, 0, 0, false) end )
-
ميزو كودك هنا في خطأ outputChatBox(plr.."has Slapped By "..getPlayerName (source).."Reason ".. mezo.." , 255, 0, 0, false) التصحيح : outputChatBox(plr.."has Slapped By "..getPlayerName (source).."Reason ".. mezo.. , 255, 0, 0, false)
-
addEventHandler("onClientGUIClick", root, function () local sel = guiGridListGetSelectedItem ( grid ) local plr = guiGridListGetItemText ( grid,2 Sel, 1 ) if source == Btn and sel ~= -1 then edit1 = guiGetText ( Edit ) -- اسم الايديت triggerServerEvent("SlapPlayer", localplayer, plr, edit1) end end ) addEvent("SlapPlayer",true) addEventHandler("SlapPlayer", root, function (plr,edit1) killPed(plr) outputChatBox(plr.."has Slapped By "..getPlayerName (source).."Reason:"..edit1 , 255, 0, 0, false) end )
-
-- client addEventHandler("onClientGUIClick", root, function () local sel = guiGridListGetSelectedItem ( grid ) local plr = guiGridListGetItemText ( grid,2 Sel, 1 ) if source == Btn and sel ~= -1 then triggerServerEvent("SlapPlayer", localplayer, plr) end end ) addEvent("SlapPlayer",true) addEventHandler("SlapPlayer", root, function (plr) killPed(plr) outputChatBox(plr.."has Slapped By "..getPlayerName (source) , 255, 0, 0, false) end ) مهي مجربة انشاءالله تتحسن في هذا شيء
-
الله الله وش الحركات ذي ودك الي يطلع من السيرفر يدخل الجنه ؟
-
طيب جرب wnd = guiCreateWindow(458, 273, 447, 499, "Police Manager Panel | لوحة رئيس الشرطة", false) guiWindowSetSizable(wnd, false) guiWindowSetMovable(wnd, false) guiSetAlpha(wnd, 1.00) pList = guiCreateGridList(17, 25, 202, 452, false, wnd) guiGridListAddColumn(pList, "# Players List", 0.9) slapbtn = guiCreateButton(226, 30, 193, 36, "~# Slap #~", false, wnd) guiSetProperty(slapbtn, "NormalTextColour", "FFFF1D1D") desbtn = guiCreateButton(226, 76, 193, 36, "~# Destroy Car #~", false, wnd) guiSetProperty(desbtn, "NormalTextColour", "FFFF1D1D") gvbtn = guiCreateButton(226, 118, 193, 36, "~# Give License #~", false, wnd) guiSetProperty(gvbtn, "NormalTextColour", "FF1BFF03") tkbtn = guiCreateButton(226, 164, 193, 36, "~# Take License #~", false, wnd) guiSetProperty(tkbtn, "NormalTextColour", "FFFF0202") jailOpen = guiCreateButton(226, 215, 193, 36, "~# Jail Player #~", false, wnd) guiSetProperty(jailOpen, "NormalTextColour", "FFFF0202") unbtn = guiCreateButton(226, 266, 193, 36, "~# UnJail Player #~", false, wnd) guiSetProperty(unbtn, "NormalTextColour", "FF1BFF03") enbtn = guiCreateButton(226, 316, 193, 36, "~# English #~", false, wnd) guiSetProperty(enbtn, "NormalTextColour", "FF02B4FF") arbtn = guiCreateButton(226, 367, 193, 36, "~# Arabic #~", false, wnd) guiSetProperty(arbtn, "NormalTextColour", "FF02B4FF") Close = guiCreateButton(226, 413, 193, 36, "~# Close #~", false, wnd) guiSetProperty(Close, "NormalTextColour", "FFFFAE01") VersionLabel = guiCreateLabel(226, 457, 193, 15, "# Police Manager Panal | V1.5.2", false, wnd) guiLabelSetColor(VersionLabel, 255, 82, 29) label2 = guiCreateLabel(227, 474, 193, 15, "# Created By | Sha[D]ow & mIDO", false, wnd) guiLabelSetColor(label2, 45, 255, 29) guiSetVisible(wnd,false) -------------------------------------------------------------- local screenW, screenH = guiGetScreenSize() jailWnd = guiCreateWindow((screenW - 337) / 2, (screenH - 238) / 2, 337, 238, "# Jail Information", false) guiWindowSetMovable(jailWnd, false) guiWindowSetSizable(jailWnd, false) guiSetAlpha(jailWnd, 1.00) tList = guiCreateGridList(23, 24, 140, 151, false, jailWnd) guiGridListAddColumn(tList, "# Time", 0.9) jList = guiCreateGridList(175, 24, 138, 152, false, jailWnd) guiGridListAddColumn(jList, "# Places", 0.9) jailButton = guiCreateButton(23, 186, 138, 32, "Jail Player", false, jailWnd) guiSetProperty(jailButton, "NormalTextColour", "FFAAAAAA") JailClose = guiCreateButton(175, 186, 138, 32, "Close", false, jailWnd) guiSetProperty(JailClose, "NormalTextColour", "FFAAAAAA") guiSetVisible(jailWnd,false) -------------------------------------------------------------- bindKey ("m","down", function () triggerServerEvent ("check",localPlayer) end) addEvent ("openWND",true) addEventHandler ("openWND",root, function () guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) guiSetInputEnabled (guiGetVisible(wnd)) end ) -------------------------------------------------------------- addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == jailOpen ) then guiSetVisible(wnd,false) guiSetVisible(jailWnd,true) end end ) -------------------------------------------------------------- addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == JailClose ) then guiSetVisible(jailWnd,false) guiSetInputEnabled (false) showCursor(false) end end ) -------------------------------------------------------------- addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == Close ) then guiSetVisible(wnd,false) guiSetInputEnabled (false) showCursor(false) end end ) -------------------------------------------------------------- function update () guiGridListClear(pList) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (pList) guiGridListSetItemText (pList,rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) -------------------------------------------------------------- -------------------------------------------------------------- addEventHandler("onClientGUIClick",tkbtn,function ( ) sel = guiGridListGetSelectedItem( pList ) if sel ~= -1 then triggerServerEvent ("takecar", localPlayer,getPlayerFromName (guiGridListGetItemText(pList ,sel,1))) end end,false) ^^ Edit
-
يخي سعود تعب تعب مو طبيعي يششرحلكم يخي لازم تحذف هذا addEventHandler("onClientResourceStart", resourceRoot, ولا مابيشتغل لانه هو داخل حدث الكود local screenW, screenH = guiGetScreenSize() wnd = guiCreateWindow(458, 273, 447, 499, "Police Manager Panel | لوحة رئيس الشرطة", false) guiWindowSetSizable(wnd, false) guiWindowSetMovable(wnd, false) guiSetAlpha(wnd, 1.00) pList = guiCreateGridList(17, 25, 202, 452, false, wnd) guiGridListAddColumn(pList, "# Players List", 0.9) slapbtn = guiCreateButton(226, 30, 193, 36, "~# Slap #~", false, wnd) guiSetProperty(slapbtn, "NormalTextColour", "FFFF1D1D") desbtn = guiCreateButton(226, 76, 193, 36, "~# Destroy Car #~", false, wnd) guiSetProperty(desbtn, "NormalTextColour", "FFFF1D1D") gvbtn = guiCreateButton(226, 118, 193, 36, "~# Give License #~", false, wnd) guiSetProperty(gvbtn, "NormalTextColour", "FF1BFF03") tkbtn = guiCreateButton(226, 164, 193, 36, "~# Take License #~", false, wnd) guiSetProperty(tkbtn, "NormalTextColour", "FFFF0202") jailOpen = guiCreateButton(226, 215, 193, 36, "~# Jail Player #~", false, wnd) guiSetProperty(jailOpen, "NormalTextColour", "FFFF0202") unbtn = guiCreateButton(226, 266, 193, 36, "~# UnJail Player #~", false, wnd) guiSetProperty(unbtn, "NormalTextColour", "FF1BFF03") enbtn = guiCreateButton(226, 316, 193, 36, "~# English #~", false, wnd) guiSetProperty(enbtn, "NormalTextColour", "FF02B4FF") arbtn = guiCreateButton(226, 367, 193, 36, "~# Arabic #~", false, wnd) guiSetProperty(arbtn, "NormalTextColour", "FF02B4FF") Close = guiCreateButton(226, 413, 193, 36, "~# Close #~", false, wnd) guiSetProperty(Close, "NormalTextColour", "FFFFAE01") VersionLabel = guiCreateLabel(226, 457, 193, 15, "# Police Manager Panal | V1.5.2", false, wnd) guiLabelSetColor(VersionLabel, 255, 82, 29) label2 = guiCreateLabel(227, 474, 193, 15, "# Created By | Sha[D]ow & mIDO", false, wnd) guiLabelSetColor(label2, 45, 255, 29) guiSetVisible(wnd,false) jailWnd = guiCreateWindow((screenW - 337) / 2, (screenH - 238) / 2, 337, 238, "# Jail Information", false) guiWindowSetMovable(jailWnd, false) guiWindowSetSizable(jailWnd, false) guiSetAlpha(jailWnd, 1.00) tList = guiCreateGridList(23, 24, 140, 151, false, jailWnd) guiGridListAddColumn(tList, "# Time", 0.9) jList = guiCreateGridList(175, 24, 138, 152, false, jailWnd) guiGridListAddColumn(jList, "# Places", 0.9) jailButton = guiCreateButton(23, 186, 138, 32, "Jail Player", false, jailWnd) guiSetProperty(jailButton, "NormalTextColour", "FFAAAAAA") JailClose = guiCreateButton(175, 186, 138, 32, "Close", false, jailWnd) guiSetProperty(JailClose, "NormalTextColour", "FFAAAAAA") guiSetVisible(jailWnd,false) بدله بدل من سطر رقم 1 لين سطر58
-
جرب الكود الكلينت مع السيرفر ,, + اطرح الكلينت
-
addEventHandler("onClientGUIClick",root, function ( ) local sel = guiGridListGetSelectedItem( pList ) if source == tkbtn and sel ~= -1 then local plr = guiGridListGetItemText(pList ,sel,1) local myPlayer = getPlayerFromName ( plr ) triggerServerEvent ("takecar", localPlayer, myPlayer) end end end ) addEvent ("takecar", true) addEventHandler ("takecar", root, function ( myPlayer ) toggleControl ( myPlayer, "enter_exit", false ) outputChatBox ( "# Your License Has Been Removed", myPlayer, 255, 0, 0, true ) end ) جرب Edit *
-
function () isPlayerNoob = getPlayerName(player) if ( isPlayerNoob ) then getBans( isPlayerNooB , 999999 , " ماذا تريد ايها النوب هنا ؟ " ) end end هههههه كود هريسس بس المطلوب يتحقق انه اللاعب نوب اذا نوب يصك ابوه بان هههههههههههههههههههه
-
'onPlayerJoin' setPlayerMuted outputChatBox 'onPlayerCommand' cancelEvent Edit &
-
triggerClientEvent triggerServerEvent isObjectInACLGroup getAccountName getPlayerAccount aclGetGroup
-
يعني تبي الاسم يتلون او تجيب كود اللون حق اللاعب ؟
-
بالله من وين جبت ذذ الفنكشن ؟ -- getAdminName
-
JP = { {"1",'minutes',60000}, {"2",'mintes',120000}, {"3",'mintes',180000}, {"5",'mintes',3000000}, {"10",'mintes',600000}, {"15",'mintes',900000}, {"20",'mintes',1200000}, {"30",'mintes',1800000}, {"40",'mintes',2400000}, {"1",'hours',3600000}, {"2",'hours',7200000}, {"3",'hours',10800000}, {"4",'hours',14400000}, {"5",'hours',18000000}, {"24",'hours',86400000} } changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then -- Check Parematers if getElementType ( GridList ) == "gui-gridlist" then -- Check The Type of ' GridList ' if guiGridListClear ( GridList ) then -- Clear GridList for i, v in next, getElementsByType ( "player" ) do -- Get Everything by Type ' player ' local Row = guiGridListAddRow ( GridList ) -- Add Row guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); -- Set New Values end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; GUIEditor = { button = {} } wnd = guiCreateWindow(121, 135, 525, 333, "#", false) guiWindowSetSizable(wnd, false) grid = guiCreateGridList(12, 55, 227, 268, false, wnd) col1 = guiGridListAddColumn(grid, "ID", 0.5) col2 = guiGridListAddColumn(grid, "Time", 0.5) grid2 = guiCreateGridList(259, 55, 227, 268, false, wnd) col3 = guiGridListAddColumn(grid2, "Name", 0.9) changeGridListItemToPlayersName ( grid2, col3) GUIEditor.button[1] = guiCreateButton(116, 26, 238, 24, "Jail", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") guiSetVisible (wnd, false) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("m", "down", OpenWin) for _, v in ipairs (JP) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) guiGridListSetItemText(grid, Row, 2, v[2], false, false) guiGridListSetItemData(grid, Row,1, v[3], false, false) end addEventHandler("onClientGUIClick", GUIEditor.button[1], function ( ) local sel = guiGridListGetSelectedItem(grid) local sel2 = guiGridListGetSelectedItem(grid2) local Jail = (guiGridListGetItemData ( grid,sel,1 )) local Player = guiGridListGetItemText ( grid, Sel, 1 ) setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) if sel ~= -1 and sel2 ~= -1 then setTimer ( Jail , setElementPosition ( 2122.21818, 53121, 10.5141 ) ) end end) فنكشنات بتحتاجه عشان تحفظ الجيل حق اللاعب getElementPosition setElementPosition setAccountData getAccountData Edit "*