Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. Looks like a good host with a great reputation ... Good luck ..!
  2. local jobmarker = createMarker(1552.4996337891, -1677.3264160156, 15.1953125, "cylinder", 1.5, 0, 0, 255, 150) GUIEditor = { memo = {}, button = {}, window = {}, } function guiMyCwindow() windowjob = guiCreateWindow(272, 191, 276, 291, "LS Police") guiSetVisible(windowjob, false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.78) GUIEditor.memo[1] = guiCreateMemo(9, 24, 258, 98, "Welcome to the Los Santos Police Department Job! Accept or Decline the job!\nAccept : Help the city survive from criminals!\nDecline: Bye! See You Soon!!", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.button[1] = guiCreateButton(10, 240, 82, 35, "Accept", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(182, 240, 75, 35, "Decline", false, GUIEditor.window[1]) GUIEditor.button[11] = guiCreateButton(95, 225, 82, 23, "Quit Job", false, GUIEditor.window[20]) addEventHandler("onClientGUIClick", GUIEditor.button[1] , joinTeam, false) addEventHandler("onClientGUIClick", GUIEditor.button[11] , removePDWindow, false) addEventHandler("onClientGUIClick", GUIEditor.button[11] , removeTeam, false) addEventHandler( "onClientResourceStart", resourceRoot, guiMyCwindow) end function PDjob(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", jobmarker, PDjob) function PDjobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", jobmarker, PDjobleave) function joinTeam() triggerServerEvent("setPD",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end function removeTeam() triggerServerEvent("removePD",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end function removePDWindow() guiSetVisible(windowjob, false) showCursor(false) end
  3. PaiN^

    1337land

    WOW That is totally amazing .. Could you please add a download link
  4. حتى في النسخة 1.3.1 الكود هذا موجود بس يكون شكله كذا aTab2.ManageACL = guiCreateButton ( 0.75, 0.02, 0.23, 0.04, "Manage ACL", true, aTab2.Tab ) إنت خله كذا aTab2.ManageACL = guiCreateButton ( 0.75, 0.02, 0.23, 0.04, "Manage ACL", true, aTab2.Tab, "ACL" )
  5. Nicely Done brother Really liked the remove feature Thanx ..!
  6. Hello guys ... I wanted to ask if there was any way to change my nickname in the community, Because when i go to the Profile Settings i can't modify it If any one knows how to change my nickname in the community Please post a replay ASAP .. Thank you in advanced <3 ..
  7. Why would you add unwanted arguments ? addEventHandler("onPlayerSpawn", root, function(posX, posY, posZ) if (posX == -2654) and (posY == 638) and (posZ == 13) then playSoundFrontEnd(source, 16) end end )
  8. !.. تـم إصـلاح المشـكلة
  9. -- Server : function GivePlayerItem(player, item, amount) local playerID = getPlayerFromName(player) if( playerID == true ) then setElementData(playerID,"item",amount) else outputChatBox("The name is invalid", player, 255, 0, 0, true) end end addCommandHandler ( "giveitem", GivePlayerItem )
  10. I think you can but I'm not sure ..
  11. PaiN^

    HELP :D

    It must be server sided . Or else it well disappear only for you + You have to get all the cars in the server to make all of theme disappear for _,vehicles in ipairs(getElementsByType("vehicle") do
  12. I think you can do that via Admin Panel .. [ Maps tap ]
  13. .. أتوقع مو كودك لأن فيه تريقر وفنكشنات إنت منت حاطها
  14. + GUI لتلوين أي شي تبغاه في نوافذ الـ guiSetProperty(أسم الشي إللي تبي تلونه,"NormalTextColour", "FF00FF00") بعدين كود اللون إلي تبيه FF تحط
  15. PaiN^

    HELP :D

    LooL I didn't notice it's a client side But it should be server side, So it works to everyone in the server .. Here's the code : -- Server : local car = getPedOccupiedVehicle(source) local carV = getElementAlpha(car) bindKey("F1", "down", function() if (carV == 0) then setElementAlpha(car, 255) outputChatBox("[iNFO] the vehicles are visible now.",166,255,6) elseif (carV == 255) then setElementAlpha(car, 0) outputChatBox("[iNFO] the vehicles are invisible now.",255,100,0) end end )
  16. والله إني أكره إني أفتح الفوتوشوب وأطلع الكود واللفة الطويلة هذي ^^ مشكوور وما قصرت يالذيب جزااك الله خير
  17. PaiN^

    HELP :D

    getLocalPlayer is client side only .. Replace it with source ...
  18. شرح رائع ومفيد أنا أستخدمه في البرمجة ومرة يريح بس عندي تعليق : أنا أشوف لو تثبت البرنامج بالغة الإنجليزية يكون أحسن, لأن الأكواد راح تيجك من اليسار لليمين وتكون مرتبة أكثر ^^ وجزاك الله خير على هذا الشرح الرائع
  19. --> Client : GUIEditor = { button = {}, window = {}, } theWindow = guiCreateWindow(420, 210, 433, 320, "Jetpack giver By Robbster", false) guiWindowSetSizable(theWindow, false) theButton = guiCreateButton(122, 123, 188, 87, "Give yourself Jetpack", false, theWindow) guiSetVisible(theWindow,false) addEventHandler("onClientGUIClick", root, function() if ( source == theButton ) then triggerServerEvent("Jet", localPlayer) end end ) function openWin() if guiGetVisible(theWindow) then guiSetVisible(theWindow, false) showCursor(false) else guiSetVisible(theWindow, true) showCursor(true) end end bindKey("F5", "down", openWin) --> Server : addEvent("Jet", true) addEventHandler("Jet", root, function () local status = doesPedHaveJetPack(source) if status then removePedJetPack(source) else givePedJetPack(source) end end )
  20. setPedRotation setElementPosition setPedAnimation
  21. + isObjectInACLGroup
×
×
  • Create New...