Jump to content

pro

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by pro

  1. setTimer(FunctionName,1000*60*10,0) هاد فنكش لبدأ مهمة يعني انو يجي وقت دا خل مهمة ولا لفتح مهمة يعني بعد 10 د يقدر يدخل مهمة
  2. سلام عليكم كيفكن شباب انشالله بخير شباب اريد اكواد مهم شوتر اريد كود لما يكونو في مهمة يقدرون يطلقو صواريخ ويقدرو يقفزو زاذا خارج مهم ما يقدرو يعمل شي اريد كمان مهمة تبدأ بوقت يعين بعد 10 دقايق تفتح مهمة يقدرو يدخلو وشكررا
  3. pro

    طلب كودد

    هي ملف سيرفر شوفو addCommandHandler ( "movebitch", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playM", player, source ) end end ) addCommandHandler ( "nuts", function ( plr ) triggerClientEvent (root, "playS",root, plr ) end ) addCommandHandler ( "gay", function ( rr ) triggerClientEvent ( root, "playU", root, rr ) end ) addCommandHandler ( "damn", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playY", player, source ) end end ) addCommandHandler ( "goat", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playT", player, source ) end end ) addCommandHandler ( "hello", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playR", player, source ) end end ) addCommandHandler ( "toosadforme", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playE", player, source ) end end ) addCommandHandler ( "damnson", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playW", player, source ) end end ) addCommandHandler ( "wow", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playQ", player, source ) end end ) addCommandHandler ( "thuglife", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playA", player, source ) end end ) addCommandHandler ( "surprise", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playD", player, source ) end end ) addCommandHandler ( "ridingdirty", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playF", player, source ) end end ) addCommandHandler ( "rofl", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playG", player, source ) end end ) addCommandHandler ( "thug3", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playJ", player, source ) end end ) addCommandHandler ( "S", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playk", player, source ) end end ) وهي كلينت addEvent( "playM", true ) addEventHandler( "playM", localPlayer, function ( source ) local sound = playSound( "movebitch.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 wants you to get out of his way!", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end ) addEvent( "playS", true ) addEventHandler( "playS", root, function (plr) if isElement(sound) then return stopSound(sound) end sound = playSound( "nuts.mp3", false ) outputChatBox (""..getPlayerName(plr) .."#067E06 deez nuts",root, 255, 255, 255, true ) end ) addEvent( "playU", true ) addEventHandler( "playU", root, function ( rr ) if isElement(sound) then return stopSound(sound) end sound = playSound( "gay.mp3", false ) outputChatBox (""..getPlayerName( rr ).."#067E06 thinks that's gay!",root, 255, 255, 255, true ) end ) addEvent( "playY", true ) addEventHandler( "playY", localPlayer, function ( source ) local sound = playSound( "damn.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 boooon", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end ) addEvent( "playT", true ) addEventHandler( "playT", localPlayer, function ( source ) local sound = playSound( "goat.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 screams like a goat!", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end ) addEvent( "playR", true ) addEventHandler( "playR", localPlayer, function ( source ) local sound = playSound( "hello.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 is rolling on floor laughing!", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end ) addEvent( "playE", true ) addEventHandler( "playE", localPlayer, function ( source ) local sound = playSound( "toosadforme.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 feels sorry for you!", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end ) addEvent( "playW", true ) addEventHandler( "playW", localPlayer, function ( source ) local sound = playSound( "damnson.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 damnson", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end ) addEvent( "playQ", true ) addEventHandler( "playQ", localPlayer, function ( source ) local sound = playSound( "wow.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 wow;)", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end ) addEvent( "playJ", true ) addEventHandler( "playJ", localPlayer, function ( source ) local sound = playSound( "thug3.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 is living a thug life!", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end ) addEvent( "playA", true ) addEventHandler( "playA", localPlayer, function ( source ) local sound = playSound( "thuglife.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 thuglife", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end ) addEvent( "playD", true ) addEventHandler( "playD", localPlayer, function ( source ) local sound = playSound( "surprise.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 made you a surprise!", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end ) addEvent( "playF", true ) addEventHandler( "playF", localPlayer, function ( source ) local sound = playSound( "ridingdirty.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 is going on a trip!", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end ) addEvent( "playG", true ) addEventHandler( "playG", localPlayer, function ( source ) local sound = playSound( "rofl.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 is rolling on floor laughing!", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end ) addEvent( "playK", true ) addEventHandler( "playK", localPlayer, function ( source ) local sound = playSound( "goodbye.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 says goodbye!", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end )
  4. pro

    طلب كودد

    زر شو هي ملف سيرفر addCommandHandler ( "nuts", function ( source ) for k, player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, "playS", player, source ) end end ) بكتب هي كلمة باف 8 NUTS بتجي غنية ولما احطهان تاني اريد تفصل وترجع تشتغل يعني ما يشتغلو مرتين
  5. pro

    طلب كودد

    ممكن تعملي مثال على هذا هي كود addEvent( "playS", true ) addEventHandler( "playS", localPlayer, function ( source ) local sound = playSound( "nuts.mp3", false ) outputChatBox ( getPlayerName( localPlayer ).."#067E06 deez nuts", 255, 255, 255, true ) attachElements ( sound, source, 0,0,0,0,0,0) end )
  6. سلام عليكم كيفكم شباب انشالله بخير انا اريد كود بس ما اعرف اسمه انا عندي مود لما اكتب باف8 كلمة تجي موسيقى ولما احط وحدة تاني اولانية مت تفصل يعني يصير في غنيتين انا اريد افصل بين ناتهم يعني شغلت اولا وريد اشغل تانية تفصل الولا وتشتغل تانية ونشالله تكونو فهمتوني
  7. pro

    طلب كود

    شكرا عرد سريع مشكوور
  8. السَلآْم عَلْيُكّمٌ وٍرٍحَمُةّ الله وٍبُرٍكآته كيفكون شباب انشالله بخير ابي كود اقتل لاعب يجيني فلوس وشكرا
  9. سلام عليكم كل عام وانتو بخير يارب مهم عايز اكواد سجن.يبلش وقت 1د 3د 5د 1ساعة 3ساعة 5ساعة 10ساعات 24 ساعة اوعايز احداثيات لما ينسجن لاعب يتقل عل احداثيات وما يقدر يطلع من سجن لحتا يخلص وقت وشكرا
  10. اريد لما لاعب يعمل. حساب.register ينحغظ حسابو تلفائي
  11. سلام عليكم اريد كود حماية لحساب لاعب لما يعمل حساب جديد وشكرا
  12. addEvent("isPolice",true) addEventHandler("isPolice",root, function () if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("K-Police")) then triggerClientEvent(source,"Yes",source) end end ) addEvent("killPlayer",true) addEventHandler("killPlayer",root, function (player) local player = getPlayerFromName(player) if ( player ) then killPed(player) outputChatBox("* [ Police ] : The Player Killed Successfuly",source,0,255,0) outputChatBox("* [ Police ] : You Are Killed By " .. getPlayerName(source),player,255,0,0) end end ) addEvent("onDes",true) addEventHandler("onDes",root, function (player) local player = getPlayerFromName(player) local veh = getPedOccupiedVehicle(player) destroyElement(veh) outputChatBox("* [ Police ] : The Player Vehicle Successfuly Destoryed",source,0,255,0) outputChatBox("* [ Police ] : Your Vehicle Destroy By " .. getPlayerName(source),player,255,0,0) end ) addEvent("onBlow",true) addEventHandler("onBlow",root, function (player) local player = getPlayerFromName(player) local veh = getPedOccupiedVehicle(player) blowVehicle(veh) outputChatBox("* [ Police ] : The Player Vehicle Successfuly Blowed",source,0,255,0) outputChatBox("* [ Police ] : Your Vehicle Blow By " .. getPlayerName(source),player,255,0,0) end ) addEventHandler("onPlayerLogin",root, function (_,acc) if isObjectInACLGroup("user." .. getAccountName(acc),aclGetGroup("K-Police")) then outputChatBox("* Welcome Police Man Press p To Open Police Panel",source,255,255,255,true) end end ) addEventHandler("onResourceStart",resourceRoot, function () if not aclGetGroup("K-Police") then outputChatBox("* Admin Please Add Group Name Police To Add Player in it To Be Police",root,255,0,0) end end ) function delayedChat ( text ) outputChatBox ( "تم تفعيل المورد بنجاح !" ) end setTimer ( delayedChat, 50, 0, "اهلا بكم" ) اخي اكواد غلط
  13. اانا حطيتي افتكرت بشتغل عليه
  14. ماشي بس برمجلي عليه ملف سيرفر
  15. انا قلت لصاحبي يجبلي اكواد لوحة شرطة قلي عندي بس ناقص ملف سيرفر
  16. انا قلتلو ابي كودات لوحة شرطي قلي عندي بس ناقص ملف سيرفر يمكن جايبها من سيرفرات
  17. ناقص ملف ابي ملف سيرفر عشان يشتغل يعني تاخد مود وتعمل ملف سيرفر
  18. مود ما في مشاكل بس ناقس من ملف سيرفر
  19. سلام عليكم ورحمة الله وبركاته شباب انا عندي مود لوحة شرطي فيها اخطاء ابي حلل\ كلينت local screenW, screenH = guiGetScreenSize() mainwndmaster = guiCreateWindow(screenW - 393 - 10, (screenH - 562) / 2, 393, 562, "Police Panel.", false) guiSetAlpha(mainwndmaster,0.89999997615814) guiSetVisible(mainwndmaster,false) ali1 = guiCreateLabel(24, 524, 78, 19, "Work State :", false, mainwndmaster) guiLabelSetColor(ali1, 250, 0, 0) ali2 = guiCreateLabel(121, 524, 78, 19, "Work State :2", false, mainwndmaster) guiLabelSetColor(ali2, 250, 0, 0) ali3 = guiCreateLabel(215, 524, 78, 19, "State : ", false, mainwndmaster) guiLabelSetColor(ali3, 250, 0, 0) ali4 = guiCreateLabel(303, 524, 78, 19, "Online", false, mainwndmaster) guiLabelSetColor(ali4, 38, 238, 11) lblmq = guiCreateLabel(219, 21, 154, 14, "المخالفات المرورية للاعب =", false, mainwndmaster) lblmq2 = guiCreateLabel(50, 21, 154, 14, "", false, mainwndmaster) wnd14 = guiCreateButton(24, 431, 349, 35, "Destroy Car", false, mainwndmaster) guiSetProperty(wnd14, "NormalTextColour", "FF09F2AE") wnd11 = guiCreateButton(24, 386, 349, 35, "Slap", false, mainwndmaster) guiSetProperty(wnd11, "NormalTextColour", "FFFB0101") wnd8 = guiCreateButton(24, 296, 349, 35, "Jail", false, mainwndmaster) guiSetProperty(wnd8, "NormalTextColour", "FFFDBE01") master = guiCreateButton(24, 476, 349, 35, "X", false, mainwndmaster) guiSetProperty(master, "NormalTextColour", "FFDF1B4E") wnd5 = guiCreateGridList(27, 39, 346, 247, false, mainwndmaster) guiGridListSetSelectionMode(wnd5,2) local column = guiGridListAddColumn(wnd5,"Jail Time", 0.9) row1 = guiGridListAddRow(wnd5) row2 = guiGridListAddRow(wnd5) row3 = guiGridListAddRow(wnd5) row4 = guiGridListAddRow(wnd5) row5 = guiGridListAddRow(wnd5) row6 = guiGridListAddRow(wnd5) row7 = guiGridListAddRow(wnd5) row8 = guiGridListAddRow(wnd5) row9 = guiGridListAddRow(wnd5) row10 = guiGridListAddRow(wnd5) guiGridListSetItemText(wnd5,row1,column,"1 min", false, false) guiGridListSetItemColor ( wnd5, row1, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row2,column,"2 min", false, false) guiGridListSetItemColor ( wnd5, row2, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row3,column,"3 min", false, false) guiGridListSetItemColor ( wnd5, row3, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row4,column,"4 min", false, false) guiGridListSetItemColor ( wnd5, row4, column, 0, 0, 255 ) wnd6 = guiCreateButton(24, 341, 349, 35, "UnJail", false, mainwndmaster) guiSetProperty(wnd6, "NormalTextColour", "FF0CF706") local screenW, screenH = guiGetScreenSize() wndsbab = guiCreateWindow((screenW - 359) / 2, (screenH - 139) / 2, 359, 139, "السبب", false) guiWindowSetSizable(wndsbab, false) guiSetVisible(wndsbab,false) editsbab = guiCreateEdit(61, 50, 231, 36, "", false, wndsbab) lblsbab = guiCreateLabel(125, 25, 103, 15, "الرجاء كتابة السبب", false, wndsbab) guiLabelSetColor(lblsbab, 253, 1, 1) donesbab = guiCreateButton(89, 103, 164, 26, "تم", false, wndsbab) xsbab = guiCreateButton(305, 100, 44, 29, "x", false, wndsbab) local screenW, screenH = guiGetScreenSize() wndadmin = guiCreateWindow((screenW - 530) / 2, (screenH - 281) / 2, 530, 281, "work state", false) guiWindowSetSizable(wndadmin, false) guiSetVisible(wndadmin,false) ijbtn = guiCreateButton(50, 98, 204, 63, "اجباري", false, wndadmin) noijbtn = guiCreateButton(284, 98, 204, 63, "غير اجباري", false, wndadmin) --------------------- --Key to poen panel --------------------- bindKey ("m", "down", function() local cursorValue = not isCursorShowing() if not guiGetVisible(mainwndmaster) == true then setElementData ( localPlayer, "police_m", cursorValue ) showCursor( cursorValue ) else guiSetVisible(mainwndmaster,false) guiSetText(mainwndmaster,"") guiSetText(lblmq2,"") showCursor( false ) end end ) addEvent("openpoliceowner",true) addEventHandler("openpoliceowner",root, function() local cursorValue = not isCursorShowing() if not guiGetVisible(wndadmin) == true then guiSetVisible(wndadmin,true) showCursor( cursorValue ) else showCursor( cursorValue ) guiSetVisible(wndadmin,false) end end ) addEvent("openpolice",true) addEventHandler("openpolice",root, function(Target1,ownerveh1,target3,target4) if not guiGetVisible(mainwndmaster, true) then guiSetVisible(mainwndmaster,true) guiSetText(mainwndmaster,Target1 or ownerveh1 or target3 or target4 ) local kkop = guiGetText(mainwndmaster) local kkop2 = getPlayerFromName(kkop) guiSetText(lblmq2,getElementData( kkop2, '3KS' )) end end ) addEvent("noopenpolice",true) addEventHandler("noopenpolice",root, function() guiSetVisible(mainwndmaster,false) end ) ----------------------- --add player to list ---------------------- --------------------- --close panel --------------------- ---------------------- -- Watch the player ---------------------- function spectatePlayer(player) if tostring(player) then int = getElementInterior(player) dim = getElementDimension(player) if int and dim then setCameraTarget(player) setElementInterior(player,int) setElementDimension(player,dim) end end end ---------------------- --When client click button --------------------- function onClickza() selectedPlayerslap = guiGetText(mainwndmaster) if source == wnd11 then -- slap if selectedPlayerslap then guiSetVisible(wndsbab,true) end elseif source == xsbab then guiSetVisible(wndsbab,false) elseif source == master then guiSetVisible(mainwndmaster,false) guiSetText(mainwndmaster,"") guiSetText(lblmq2,"") showCursor( false ) elseif source == donesbab then triggerServerEvent ("slap", getLocalPlayer(), tostring(selectedPlayerslap),guiGetText(editsbab)) guiSetVisible(wndsbab,false) elseif source == wnd14 then -- destroy triggerServerEvent ("destroy", getLocalPlayer(), selectedPlayerslap) triggerServerEvent ("destroy2", getLocalPlayer(), selectedPlayerslap) elseif source == ijbtn then -- guiSetText(ali2,"Mandatory") guiLabelSetColor(ali2, 250, 0, 0) elseif source == noijbtn then -- guiSetText(ali2,"optional") guiLabelSetColor(ali2, 250, 0, 255) elseif source == wnd8 then -- jail jail = guiGridListGetItemText ( wnd5, guiGridListGetSelectedItem ( wnd5 ), 1 ) if jail then triggerServerEvent ("jail", getLocalPlayer(), guiGetText(mainwndmaster), jail) end elseif source == wnd6 then -- unjail if selectedPlayerslap then triggerServerEvent ("unjail", getLocalPlayer(), guiGetText(mainwndmaster)) end end end addEventHandler("onClientGUIClick",root,onClickza) buttons= { ['F1'] = true, ['F11'] = true, ['['] = true, [']'] = true, ['F2'] = true, ['F3'] = true, ['F4'] = true, ['F5'] = true, ['F6'] = true, ['F12'] = true, ['F7'] = true, ['F9'] = true, ['F10'] = true, ['j'] = true, ['m'] = true, } addEventHandler( 'onClientKey', root, function (button , prees) if prees and getElementInterior(localPlayer) == 6 then if buttons[button] then cancelEvent() end end end) addEventHandler( 'onClientKey', root, function (button , prees) if prees and getElementInterior(localPlayer) == 3 then if buttons[button] then cancelEvent() end end end) سيرفر addEvent("isPolice",true) addEventHandler("isPolice",root, function () if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("K-Police")) then triggerClientEvent(source,"Yes",source) end end ) addEvent("killPlayer",true) addEventHandler("killPlayer",root, function (player) local player = getPlayerFromName(player) if ( player ) then killPed(player) outputChatBox("* [ Police ] : The Player Killed Successfuly",source,0,255,0) outputChatBox("* [ Police ] : You Are Killed By " .. getPlayerName(source),player,255,0,0) end end ) addEvent("onDes",true) addEventHandler("onDes",root, function (player) local player = getPlayerFromName(player) local veh = getPedOccupiedVehicle(player) destroyElement(veh) outputChatBox("* [ Police ] : The Player Vehicle Successfuly Destoryed",source,0,255,0) outputChatBox("* [ Police ] : Your Vehicle Destroy By " .. getPlayerName(source),player,255,0,0) end ) addEvent("onBlow",true) addEventHandler("onBlow",root, function (player) local player = getPlayerFromName(player) local veh = getPedOccupiedVehicle(player) blowVehicle(veh) outputChatBox("* [ Police ] : The Player Vehicle Successfuly Blowed",source,0,255,0) outputChatBox("* [ Police ] : Your Vehicle Blow By " .. getPlayerName(source),player,255,0,0) end ) addEventHandler("onPlayerLogin",root, function (_,acc) if isObjectInACLGroup("user." .. getAccountName(acc),aclGetGroup("K-Police")) then outputChatBox("* Welcome Police Man Press p To Open Police Panel",source,255,255,255,true) end end ) addEventHandler("onResourceStart",resourceRoot, function () if not aclGetGroup("K-Police") then outputChatBox("* Admin Please Add Group Name Police To Add Player in it To Be Police",root,255,0,0) end end )
×
×
  • Create New...