Jump to content

Doffy

Members
  • Posts

    1,546
  • Joined

  • Last visited

  • Days Won

    31

Everything posted by Doffy

  1. GUIEditor = { gridlist = {}, window = {}, label = {}, edit = {} } ------ function changeGridListItemToPlayersName( GridList, Column ) -- to 3NAD if GridList and Column then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ) end end end end end ------ addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(377, 203, 620, 434, ".:[ نظام توزيع الفلوس v2.5 | طرب تآيم ]:.", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible( GUIEditor.window[1], false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 63, 350, 348, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#اللاعبين", 0.9) aP = guiCreateButton(407, 253, 147, 41, "[ Give Player ]", false, GUIEditor.window[1]) guiSetProperty(aP, "NormalTextColour", "FFFD8300") aG = guiCreateButton(407, 162, 147, 41, "[ Give All ]", false, GUIEditor.window[1]) guiSetProperty(aG, "NormalTextColour", "FFEFFE00") Edit = guiCreateEdit(383, 387, 228, 29, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(512, 360, 67, 17, "* المبلغ : ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 0, 220, 252) GUIEditor.label[2] = guiCreateLabel(28, 32, 182, 15, "Created By FaNaaN | 6rB Time ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-small") guiLabelSetColor(GUIEditor.label[2], 41, 251, 0) guiLabelSetHorizontalAlign(GUIEditor.label[2], "left", true) GUIEditor.label[3] = guiCreateLabel(383, 48, 187, 15, "مرحبا ً بك في لوحةة توزيع الفلوس !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 0, 248, 250) GUIEditor.label[4] = guiCreateLabel(383, 93, 187, 15, "قم بكتآبةة المبلغ في إيديت \"الفراغ\"", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 0, 248, 250) end ) addCommandHandler("systemGM", function() guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor.window[1])) changeGridListItemToPlayersName(GUIEditor.gridlist[1], 1) end ) addEventHandler("onClientGUIClick", root, function() if source == aG then local Amount = guiGetText(Edit) triggerServerEvent("MoneyAction", localPlayer, "GiveAll", {Amount}) elseif source == aP then local Amount = guiGetText(Edit) local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if sel and sel ~= -1 then local playerName = guiGridListGetItemText(GUIEditor.gridlist[1] , sel, 1) triggerServerEvent("MoneyAction", localPlayer, "GivePlayer", {playerName, Amount}) else outputChatBox("* Please select a player first",255,0,0,true) end end end )
  2. شو يطلعلك بالدي بق ؟
  3. Posted November 8, 2017 يمكن انه قام من زمان هههههه وين انت يا قديم
  4. اولا ازاي tonumber ? اصلا قيمة الفلوس هتبقي ارقام ازاي بقا هتحولها رقم وهيا رقم اصلا
  5. مالك ياض شطايق نفسك
  6. وين الخطأ بالزبط ؟ شو يطلعلك بالدي بق ؟
  7. القسم الخطأ @!#NssoR_) وبخصوص الكود تفضل addEventHandler("onResourceStart",resourceRoot, function( ) setWeaponProperty("deagle", "pro", "maximum_clip_ammo", 100) setWeaponProperty("combat shotgun", "pro", "maximum_clip_ammo", 100) setWeaponProperty("sawed-off", "pro", "maximum_clip_ammo", 100) setWeaponProperty("uzi", "pro", "maximum_clip_ammo", 100) end ) وضيف انت اسلحة من عندك لو بدك تضيف والكود حطه بملف السيرفر ^ للمعلومة يعني .
  8. قوله انت انا هروح اللعب ض1 مكسل اشرحله ف رحت اديته جاهز وخلاص
  9. هههههههههههههههههههههههههههههههههههههههههههههه كل دا علشان حتت كود الله يشفي الجميع
  10. لا مؤاخذة يعني كودك كله تخبيص ض1
  11. Doffy

    كيف؟

    + setTimer killTimer
  12. Doffy

    طلب

    addEventHandler("onClientGUIDoubleClick",root, function if ( source == YourGridList ) then local selectd = guiGridListGetSelectedItem( YourGridList ) if selected == 0 then guiSetVisible(wnd, false) guiSetVisible(YourWindow, true) end end end ) wnd = اسم لوحة حقتك الي تبيها تتقفل لما تضغط مرتين YourWindow = اللوحة الي تبيها تفتح مكان اللوحة حقتك YourGridList = اسم الجريد ليست حقك الي رح يضغط فيه دوبل كليك if selected == 0 then -- يتحقق انه الرو الاول الي اختاره اللاعب 0 = الرو الاول اتمني تكون فهمت شي ض1
  13. try --Client GUIEditor = { gridlist = {}, window = {}, label = {}, edit = {} } GUIEditor.window[1] = guiCreateWindow(377, 203, 620, 434, ".:[ نظام توزيع الفلوس v2.5 | طرب تآيم ]:.", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible( GUIEditor.window[1], false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 63, 350, 348, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#اللاعبين", 0.9) aP = guiCreateButton(407, 253, 147, 41, "[ Give Player ]", false, GUIEditor.window[1]) guiSetProperty(aP, "NormalTextColour", "FFFD8300") aG = guiCreateButton(407, 162, 147, 41, "[ Give All ]", false, GUIEditor.window[1]) guiSetProperty(aG, "NormalTextColour", "FFEFFE00") Edit = guiCreateEdit(383, 387, 228, 29, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(512, 360, 67, 17, "* المبلغ : ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 0, 220, 252) GUIEditor.label[2] = guiCreateLabel(28, 32, 182, 15, "Created By FaNaaN | 6rB Time ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-small") guiLabelSetColor(GUIEditor.label[2], 41, 251, 0) guiLabelSetHorizontalAlign(GUIEditor.label[2], "left", true) GUIEditor.label[3] = guiCreateLabel(383, 48, 187, 15, "مرحبا ً بك في لوحةة توزيع الفلوس !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 0, 248, 250) GUIEditor.label[4] = guiCreateLabel(383, 93, 187, 15, "قم بكتآبةة المبلغ في إيديت \"الفراغ\"", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 0, 248, 250) for i, p in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, getPlayerName ( p), false, false ) end function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end addCommandHandler('systemGM',OpenWin) addEventHandler('OnClientGUIClick', root , function ( ) if ( source == aG ) then local aMoney = guiGetText(Edit) local name = getPlayerName(getLocalPlayer()) triggerServerEvent('giveall',localPlayer, aMoney, name) elseif ( source == aP ) then local money = guiGetText(Edit) local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if sel ~= -1 then local playerName = guiGridListGetItemText ( GUIEditor.gridlist[1] , sel ,1 ) triggerServerEvent ( 'givep' , localPlayer , playerName, money ) else outputChatBox("* Please select a player first",255,0,0,true) end end end ) --Server addEvent("givep",true) addEventHandler("givep",getRootElement(), function( playerName, money ) local plr = getPlayerFromName(playerName) givePlayerMoney(plr, money) outputChatBox("["..getPlayerName(source).."] has given you [ $"..money.." ]",plr,0,255,0,true) outputChatBox("* Done Given Player ( "..playerName.." ) Money : $"..money.."",source,0,255,0,true) end ) addEvent("giveall", true) addEventHandler("giveall",getRootElement(), function(aMoney,name) for i,v in ipairs(getElementsByType("player")) do givePlayerMoney (v,aMoney) end outputChatBox("($"..aMoney..") بأعطاء جميع اللاعبين مبلغ ["..name.."] قام اللاعب",v,0,255,0,true) playSoundFrontEnd(getRootElement(), 44) end)
  14. في بارتمر في حدث "onPlayerWasted" يجبلك المقتول والقاتل
  15. "onPlayerWasted" -- killer getPlayerTeam getPlayerWantedLevel setElementPosition هذا لو انت حاطط السجن بعالم صفر اما لو حاطط بعالم وهمي استخدم setElementDimension ولو حاطه ف int استخدم setElementInterior
  16. اعتقد انه دا setPedControlState
  17. "onPedDamage" -- atatcker getPlayerWantedLevel getPlayerWeapon triggerClientEvent -- source isPedInVehicle setPedAnimation warpPedIntoVehicle createMarker "onMarkerHit" -- to Police givePlayerMoney destroyElement setElementPosition -- المجرم setPlayerWantedLevel -- showCursor اما تخليه يجري وراك دي العلم عند الله ضض
  18. Doffy

    Error [CD20]

    Today I play in the game I've got when I opened Crash game again and again I had this problem when I try to login to any server (Error downloading requested files. Failed to initialize download.) I've re-installed the game more than once and have deleted it and installed it again but it did not come out and I have this problem again, I want to help solve this problem. @ccw
  19. شو الفنكشن الي يجلب لك المدينة الي انت فيها مثل Los santos وكذا
  20. +1 ممكن يسوي كذا --Client ForbSkins = {66, 33} function isSkinAllowed(skin) if skin then for _,v in ipairs(ForbSkins) do if skin == v then return false end end end return true end addEventHandler("onClientGUIClick", guiRoot, function() if source == Skinb then local skinID = tonumber(guiGetText(skiNA)) or 0 if skinID >= 0 then if isSkinAllowed(skinID) then triggerServerEvent("onPlayerChangeSkin", localPlayer, skinID) else outputChatBox("شخصية ممنوعه", 255, 0, 0) end end end end ) --Server addEvent("onPlayerChangeSkin",true) addEventHandler("onPlayerChangeSkin",getRootElement(), function(skinID) setElementModel(source, skinID) end )
  21. الطلب الاول "onClientGUIClick" triggerServerEvent getPlayerMoney takePlayerMoney outputChatBox الطلب الثاني createMarker "onClientMarkerHit" getElementType guiSetVisible showCursor guiSetInputEnabled
×
×
  • Create New...