-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
سلام عليكم, عندي اضافة بسيطة, وهي ايفنت لمن يخلص وقت الكاونت داون addEvent("onCountDownEnd") function GuiSetTextCountDown ( guiElement , Text, count ) if not guiElement or not Text or not tonumber(count) then outputDebugString("Bad arugment @ GuiSetTextCountDown ",0,255,0,0) return end guiSetText ( guiElement ,Text..' '..tonumber( count ) ) setTimer( function ( ) -- if not tonumber ( count ) then return false end if count <= 0 then triggerEvent("onCountDownEnd", localPlayer) return end count = count -1 guiSetText ( guiElement ,Text..' '..tonumber( count ) ) end , 1000 ) end والتحقق الي في اول التايمر ماله فايدة ليش؟, لاني تحققت منها فوق اوول شي + اضافة حدث عند انتهاء الكاونت داون مثال addEventHandler("onCountDownEnd", root, function() outputChatBox("انتهى وقت العد التنازلي") end ) يعطيكـ العافية فكرهـ حلوهـ ..
-
Try this one ; http://sourceforge.net/projects/sqlitebrowser/
-
@ ضآوي مآتفرق آهم شيء الترتيب ..
-
لا خلي كل شيء نفسة بس بدل : AlphaButton = زر اللي يسوي اخفاء if ( source == AlphaButton ) then SpeedGame = يسرع الاعب ! if ( source == SpeedGame ) then
-
-- Client Side -- addEventHandler("onClientGUIClick",getRootElement(), function ( ) if ( source == AlphaButton ) then triggerServerEvent("Alpha",localPlayer) elseif ( source == SpeedGame ) then setGameSpeed ( 10 ) end end ) -- Server Side -- addEvent("Alpha",true) addEventHandler("Alpha",getRootElement(), function ( ) setElementAlpha ( source , 0 ) end )
-
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function ( ) for index,player in ipairs(getElementsByType("player")) do bindKey( player,"m","down", "chatbox", "CustomChat" ) end end ) addEventHandler("onPlayerJoin", getRootElement(), function ( ) bindKey( source,"m","down", "chatbox", "CustomChat" ) end ) addCommandHandler("CustomChat", function (element, _, ...) local r,g,b = math.random(255),math.random(255),math.random(255) local PlayerName = getPlayerName(element) local message = table.concat(arg, " ") for _,player in ipairs(getElementsByType("player")) do outputChatBox("CustomChat : " .. tostring(PlayerName) .. ": " .. tostring(message), player,r,g,b) end end ) لم يتم التجربة .. سيرفر
-
Events : "onResourceStart" "onPlayerJoin" Functions : table.concat getElementsByType outputChatBox bindKey addCommandHandler
-
السرعه لا تسوية سيرفر ! عشان مايصير للكل ذذذذذذذذ
-
يطلع كلام ولا يسوي شات خاص؟
-
فية خطأ كودي عكست شيء <> GUIEditor = { button = {}, window = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(477, 224, 302, 140, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiWindowSetMovable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1],false) GUIEditor.label[1] = guiCreateLabel(74, 26, 172, 17, "Do You Want Rental a Boat ? !", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 5, 249, 5) GUIEditor.button[1] = guiCreateButton(183, 53, 103, 50, "No , i Don't !", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFC0000") GUIEditor.label[2] = guiCreateLabel(165, 113, 131, 17, "Created By #iR4y[b]ak", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 4, 147, 247) GUIEditor.button[2] = guiCreateButton(34, 53, 103, 50, "Yes , i Want !", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFD2F00D") GUIEditor.window[2] = guiCreateWindow(521, 239, 256, 161, "", false) guiSetVisible(GUIEditor.window[2],false) guiWindowSetMovable(GUIEditor.window[2], false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetAlpha(GUIEditor.window[2], 1.00) GUIEditor.label[3] = guiCreateLabel(81, 27, 93, 20, "Are You Sure ? !", false, GUIEditor.window[2]) guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) GUIEditor.label[4] = guiCreateLabel(41, 63, 175, 19, "you Want To Rent The Boat At :", false, GUIEditor.window[2]) guiLabelSetColor(GUIEditor.label[4], 8, 170, 246) GUIEditor.label[5] = guiCreateLabel(106, 92, 58, 18, "2350 $ .. '", false, GUIEditor.window[2]) guiLabelSetColor(GUIEditor.label[5], 15, 243, 10) GUIEditor.button[3] = guiCreateButton(27, 110, 69, 33, "Yes !", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFE55A16") GUIEditor.button[4] = guiCreateButton(174, 110, 69, 33, "No !", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFA08C9") local Marker = createMarker ( -1520.64453, 1014.02814, 7.18750 - 1, "cylinder",2,255,0,0.5,255) createBlipAttachedTo(Marker,23) addEventHandler("onClientMarkerHit", Marker, function (player) if player == getLocalPlayer() then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) addEventHandler ( 'onClientGUIClick', root, function ( ) if source == GUIEditor.button[3] then triggerServerEvent ( 'nothing', localPlayer ) triggerServerEvent('nothing2', localPlayer ) guiSetVisible ( GUIEditor.window[2], false ) showCursor ( false ) elseif source == GUIEditor.button[4] then guiSetVisible(GUIEditor.window[2],false) showCursor(false) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],true) elseif source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end )
-
GUIEditor = { button = {}, window = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(477, 224, 302, 140, ".\"{SMILIES_PATH}/icon_neutral.gif\" alt=\"\" title=\"Neutral\" /> Boat Rental ! |:.", false) guiWindowSetSizable(GUIEditor.window[1], false) guiWindowSetMovable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1],false) GUIEditor.label[1] = guiCreateLabel(74, 26, 172, 17, "Do You Want Rental a Boat ? !", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 5, 249, 5) GUIEditor.button[1] = guiCreateButton(183, 53, 103, 50, "No , i Don't !", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFC0000") GUIEditor.label[2] = guiCreateLabel(165, 113, 131, 17, "Created By #iR4y[b]ak", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 4, 147, 247) GUIEditor.button[2] = guiCreateButton(34, 53, 103, 50, "Yes , i Want !", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFD2F00D") GUIEditor.window[2] = guiCreateWindow(521, 239, 256, 161, ".\"{SMILIES_PATH}/icon_neutral.gif\" alt=\"\" title=\"Neutral\" /> The Confirmation ! |:.", false) guiSetVisible(GUIEditor.window[2],false) guiWindowSetMovable(GUIEditor.window[2], false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetAlpha(GUIEditor.window[2], 1.00) GUIEditor.label[3] = guiCreateLabel(81, 27, 93, 20, "Are You Sure ? !", false, GUIEditor.window[2]) guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) GUIEditor.label[4] = guiCreateLabel(41, 63, 175, 19, "you Want To Rent The Boat At :", false, GUIEditor.window[2]) guiLabelSetColor(GUIEditor.label[4], 8, 170, 246) GUIEditor.label[5] = guiCreateLabel(106, 92, 58, 18, "2350 $ .. '", false, GUIEditor.window[2]) guiLabelSetColor(GUIEditor.label[5], 15, 243, 10) GUIEditor.button[3] = guiCreateButton(27, 110, 69, 33, "Yes !", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFE55A16") GUIEditor.button[4] = guiCreateButton(174, 110, 69, 33, "No !", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFA08C9") local Marker = createMarker ( -1520.64453, 1014.02814, 7.18750 - 1, "cylinder",2,255,0,0.5,255) createBlipAttachedTo(Marker,23) addEventHandler("onClientMarkerHit", Marker, function (player) if player == getLocalPlayer() then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) addEventHandler ( 'onClientGUIClick', root, function ( ) if source == GUIEditor.button[3] then triggerServerEvent ( 'nothing', localPlayer ) triggerServerEvent('nothing2', localPlayer ) guiSetVisible ( GUIEditor.window[2], false ) showCursor ( false ) elseif source == GUIEditor.button[4] then guiSetVisible(GUIEditor.window[2],false) showCursor(false) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) elseif source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end )
-
جرب تغير الخط <>
-
لو تسوي خط انجليزي يجي صح ذذ
-
الغلط عندهـ كان بس انة مسوي الخط بـ الرندر ولا عادي تلقاهـ هو من قبل مسوي اصلا اختصارات
-
حياكـ الله و تقدر تسوية بمود خاص وهو يجيب الداتا ..
-
outputChatBox("= #f9Ff60***Skin_Panel by #FFaa66 Mr.Co00oL #006699 Press F7 To Open it*** =",0,255,0,true) GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(120,39,503,519,"~~~~Skins panel by Mr.Co00oL~~~~",false) guiSetVisible (GUIEditor_Window[1], false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_TabPanel[1] = guiCreateTabPanel(26,114,462,387,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Specials skins",GUIEditor_TabPanel[1]) gg = guiCreateButton(157,158,144,32,"Geat it",false,GUIEditor_Tab[1]) guiSetFont(gg,"sa-header") guiSetProperty(gg,"NormalTextColour", "FFFFFF00") GUIEditor_Label[1] = guiCreateLabel(170,129,109,33,"The Joker",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[1],"sa-header") th1 = guiCreateButton(309,327,144,32,"Geat it",false,GUIEditor_Tab[1]) guiSetFont(th1,"sa-header") GUIEditor_Label[2] = guiCreateLabel(311,298,150,33,"Arbic skin",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[2],"sa-header") guiSetProperty(th1,"NormalTextColour", "FFFFFF00") th2 = guiCreateButton(13,327,144,32,"Geat it",false,GUIEditor_Tab[1]) guiSetFont(th2,"sa-header") GUIEditor_Label[3] = guiCreateLabel(23,299,150,33,"C RonaLDo",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[3],"sa-header") guiSetProperty(th2,"NormalTextColour", "FFFFFF00") GUIEditor_Tab[2] = guiCreateTab("HaLLOWEEN skins",GUIEditor_TabPanel[1]) s1 = guiCreateButton(161,158,136,31,"Geat it",false,GUIEditor_Tab[2]) guiSetFont(s1,"sa-header") guiSetProperty(s1,"NormalTextColour", "FFFFFF00") GUIEditor_Label[5] = guiCreateLabel(329,295,127,30,"Scarecrow",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[5],255,0,0) guiSetFont(GUIEditor_Label[5],"sa-header") s2 = guiCreateButton(9,325,136,31,"Geat it",false,GUIEditor_Tab[2]) guiSetFont(s2,"sa-header") guiSetProperty(s2,"NormalTextColour", "FF00FF00") guiCreateLabel(36,293,127,30,"Scream",false,GUIEditor_Tab[2]) s = guiCreateButton(313,325,136,31,"Geat it",false,GUIEditor_Tab[2]) guiSetFont(s,"sa-header") GUIEditor_Label[7] = guiCreateLabel(165,126,127,30,"SqueLLte",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) guiSetFont(GUIEditor_Label[7],"sa-header") guiSetProperty(s,"NormalTextColour", "FF00FF00") GUIEditor_Tab[3] = guiCreateTab("funny Skins",GUIEditor_TabPanel[1]) l = guiCreateButton(157,158,149,29,"Geat it",false,GUIEditor_Tab[3]) guiSetFont(l,"sa-header") GUIEditor_Label[8] = guiCreateLabel(170,124,123,32,"Mr.Bean",false,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[8],255,255,0) guiSetFont(GUIEditor_Label[8],"sa-header") guiSetProperty(l,"NormalTextColour", "FF00FF00") i = guiCreateButton(11,327,149,29,"Geat it",false,GUIEditor_Tab[3]) guiSetFont(i,"sa-header") GUIEditor_Label[9] = guiCreateLabel(24,291,123,32,"GoFFey",false,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[9],255,255,0) guiSetFont(GUIEditor_Label[9],"sa-header") guiSetProperty(i,"NormalTextColour", "FF00FF00") sp = guiCreateButton(305,327,149,29,"Geat it",false,GUIEditor_Tab[3]) guiSetFont(sp,"sa-header") GUIEditor_Label[10] = guiCreateLabel(332,291,123,32,"q1",false,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[10],255,255,0) guiSetFont(GUIEditor_Label[10],"sa-header") guiSetProperty(sp,"NormalTextColour", "FF00FF00") GUIEditor_Tab[4] = guiCreateTab("Gangs Skins",GUIEditor_TabPanel[1]) cj = guiCreateButton(146,148,149,35,"Geat it",false,GUIEditor_Tab[4]) guiSetFont(cj,"sa-header") GUIEditor_Label[11] = guiCreateLabel(164,118,132,27,"BaLLas ",false,GUIEditor_Tab[4]) guiLabelSetColor(GUIEditor_Label[11],255,0,255) guiSetFont(GUIEditor_Label[11],"sa-header") guiSetProperty(cj,"NormalTextColour", "FF00FF00") r = guiCreateButton(5,323,149,35,"Geat it",false,GUIEditor_Tab[4]) guiSetFont(r,"sa-header") GUIEditor_Label[12] = guiCreateLabel(4,290,148,35,"Grouver streat",false,GUIEditor_Tab[4]) guiLabelSetColor(GUIEditor_Label[12],255,255,0) guiSetFont(GUIEditor_Label[12],"sa-header") guiSetProperty(r,"NormalTextColour", "FF00FF00") h = guiCreateButton(302,318,149,35,"Geat it",false,GUIEditor_Tab[4]) guiSetFont(h,"sa-header") GUIEditor_Label[13] = guiCreateLabel(336,286,78,33,"Vagos",false,GUIEditor_Tab[4]) guiLabelSetColor(GUIEditor_Label[13],255,255,0) guiSetFont(GUIEditor_Label[13],"sa-header") guiSetProperty(h,"NormalTextColour", "FF00FF00") GUIEditor_Tab[5] = guiCreateTab("Homeless",GUIEditor_TabPanel[1]) y = guiCreateButton(89,216,259,67,"Geat it",false,GUIEditor_Tab[5]) guiSetFont(y,"sa-gothic") guiSetProperty(y,"NormalTextColour", "FF00FF00") GUIEditor_Label[14] = guiCreateLabel(88,163,267,59,"special Homeless",false,GUIEditor_Tab[5]) guiLabelSetColor(GUIEditor_Label[14],255,0,255) guiSetFont(GUIEditor_Label[14],"sa-gothic") GUIEditor_Label[15] = guiCreateLabel(20,303,162,48,"skins panel By ",false,GUIEditor_Tab[5]) guiSetFont(GUIEditor_Label[15],"sa-header") GUIEditor_Checkbox[1] = guiCreateCheckBox(277,151,5,5,"",false,false,GUIEditor_Tab[5]) GUIEditor_Label[16] = guiCreateLabel(228,290,229,72,"Mr.Co00oL",false,GUIEditor_Tab[5]) guiLabelSetColor(GUIEditor_Label[16],255,0,0) guiSetFont(GUIEditor_Label[16],"sa-gothic") GUIEditor_Label[17] = guiCreateLabel(72,-103,267,61,"",false,GUIEditor_Tab[5]) GUIEditor_Label[18] = guiCreateLabel(147,42,228,58,"Skins panel",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[18],255,255,255,0) guiSetFont(GUIEditor_Label[18],"sa-gothic") function Refresh( ) if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetText(GUIEditor_Label[2],"your skin :"..getPedSkin(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(),Refresh) bindKey("F7","down", function ( ) guiSetVisible ( GUIEditor_Window[1] , not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then playSound("1.wav") end end ) addEventHandler ("onClientGUIClick", getRootElement(), function (button, state, absoluteX, absoluteY) if (source == gg) then triggerServerEvent ("gg", getLocalPlayer()) elseif ( source == th1 ) then triggerServerEvent ("th1", getLocalPlayer()) elseif ( source == th2 ) then triggerServerEvent ("th2", getLocalPlayer()) elseif ( source == s1 ) then triggerServerEvent("s1",getLocalPlayer()) elseif ( source == s2 ) then triggerServerEvent ("s2", getLocalPlayer()) elseif ( source == sp ) then triggerServerEvent ("sp", getLocalPlayer()) elseif ( source == s ) then triggerServerEvent ("s", getLocalPlayer()) elseif ( source == l ) then triggerServerEvent ("l", getLocalPlayer()) elseif ( source == i ) then triggerServerEvent ("i", getLocalPlayer()) elseif ( source == cj ) then triggerServerEvent ("cj", getLocalPlayer()) elseif ( source == r ) then triggerServerEvent ("r", getLocalPlayer()) elseif ( source == h ) then triggerServerEvent ("h", getLocalPlayer()) elseif ( source == y ) then triggerServerEvent ("y", getLocalPlayer()) end end ) Try it.
-
onClientRender
-
-- Server Side -- local xp,xy,xz = 111.0000 , 14156.556 , 14556.5555 addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do setElementData ( player , "x" , xp ) setElementData ( player , "y" , xy ) setElementData ( player , "z" , xz ) spawn(player) end end ) function spawn(player) if not isElement(player) then return end repeat until spawnPlayer ( player, xp+math.random(1,5), xy+math.random(5,9), xz,180, Skin, 0, 0) setCameraTarget(player, player) showChat(player, true) fadeCamera(player, true) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) -- Client Side -- GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(167,108,474,265,"",false) GUIEditor_Button[1] = guiCreateButton(36,49,104,55,"",false,GUIEditor_Window[1]) addEventHandler("onClientGUIClick", root, function () if source == GUIEditor_Button[1] then local x = getElementData(localPlayer,"x") local y = getElementData(localPlayer,"y") local z = getElementData(localPlayer,"z") setElementPosition(localPlayer,x,y,z) end end )
-
ماله اي معنى اطرح الـ البلاي كامل بـ لوآ
-
لا هذي زي يوم تسوي اكسبورت ذذ
-
setElementData getElementData
-
مافهمت سوية نفس الاحداثيات"؟