-
Posts
143 -
Joined
-
Last visited
Everything posted by -Ilker.
-
function EnterToPD (source) local x, y, z = getElementPosition ( source ) if (x == 1554.2001953125 and y == 1554.2001953125 and z == 15.199999809265 ) then outputChatBox ("Entered", source, 0, 255, 0, false) spawnPlayer (source, 923.5, -1143.5, 392.79998779297, 180, math.random (0,288), 0, 0, spawnTeam) fadeCamera (source, true) setCameraTarget (source, source) end end addCommandHandler("in", EnterToPD)
-
الي ممكن يسبب الخطا هذا انك مستدعي المنت غير موجود مثلاً ped1 = createPed(0,0,0,3) outputChatBox(getElementModel(ped)) -- هنا راح يجيك الخطا لاني حطيت اسم الالمنت خطا outputChatBox(getElementModel(ped1)) -- هنا راح ينفذ لك الوظيفة لان الالمنت موجود وصحيح اتمنى فهمت
- 1 reply
-
- 1
-
-
متعود اكتبها ال tostring وانا مسوي الكود فقط عشان يعرف كيف الطريقة ولا كلامك صحيح جزاك الله خير
-
Np . nah i Dizilerinizi seviyorum, özellikle Ilker
-
'onPlayerWasted' triggerClientEvent guiGridListClear getElementsByType -- loop 'player' guiGridListAddRow getPlayerName guiGridListSetItemText
-
local Count = 0 local vehicles = { } for k=1,10 do vehicles[k] = createVehicle ( 411 , 0+k*3 , 0 , 3 ) end addCommandHandler ( "wcar" , function ( player ) Count = Count + 1 setElementData ( player , "Ped:"..tostring(Count) , true ) if ( isElement ( vehicles[Count] ) ) then warpPedIntoVehicle ( player , vehicles[Count] ) end end ) ; هذا مثال سويته لك وانت طبقه ع الي انت تبي تسويه
-
guiGridListGetSelectedItem guiGridListGetItemText
-
Tapleto-Host| Linux/Windows VPS - Game Servers - TeamSpeak
-Ilker. replied to TAPL's topic in الاستضافات
البنق على حسب مكان الخادم @TAPL ترا للان فيه تعليق بالسيرفرات والافتيبي مايرفع ! يجي ويروح -
yeah i'm sorry , you can use this value = nil local allowed = { { 48, 57 }, { 65, 90 }, { 97, 122 } } function generateString ( len ) if tonumber ( len ) then math.randomseed ( getTickCount () ) local str = "" for i = 1, len do local charlist = allowed[math.random ( 1, 3 )] str = str .. string.char ( math.random ( charlist[1], charlist[2] ) ) end return str end return false end addCommandHandler ( "teste" , function ( player ) local Key = generateString(12) value = Key outputChatBox(Key.." this is a new key",root) end ) ; addCommandHandler ( "Gen" , function ( player ) if ( value ~= nil ) then outputChatBox("You Key : "..tostring(value),root,0,255,0,true) else outputChatBox("not",player,255,0,0,true) end end ) ;
-
local data = { Keys = { } } ; local allowed = { { 48, 57 }, { 65, 90 }, { 97, 122 } } function generateString ( len ) if tonumber ( len ) then math.randomseed ( getTickCount () ) local str = "" for i = 1, len do local charlist = allowed[math.random ( 1, 3 )] str = str .. string.char ( math.random ( charlist[1], charlist[2] ) ) end return str end return false end addCommandHandler ( "teste" , function ( ) local Key = generateString(12) data.Keys[Key] = true; outputChatBox(tostring(Key).." this is a new key",root) end ) ; addCommandHandler ( "Gen" , function ( ) if ( data.Keys ) then outputChatBox("You Key : "..tostring(data.Keys),root,0,255,0,true) else outputChatBox("not",root,255,0,0,true) end end ) ;
-
each player has a special key
-
function cursorPosition(x, y, w, h) if (not isCursorShowing()) then return false end local mx, my = getCursorPosition() local fullx, fully = guiGetScreenSize() cursorx, cursory = mx*fullx, my*fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end local screenW, screenH = guiGetScreenSize() guipracka = false function guiPraca () dxDrawLine((screenW * 0.3792) - 1, (screenH * 0.2833) - 1, (screenW * 0.3792) - 1, screenH * 0.7167, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6208, (screenH * 0.2833) - 1, (screenW * 0.3792) - 1, (screenH * 0.2833) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3792) - 1, screenH * 0.7167, screenW * 0.6208, screenH * 0.7167, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6208, screenH * 0.7167, screenW * 0.6208, (screenH * 0.2833) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3792, screenH * 0.2833, screenW * 0.2417, screenH * 0.4333, tocolor(0, 24, 254, 15), false) dxDrawText("Praca Rybaka", screenW * 0.4193, screenH * 0.3120, screenW * 0.5776, screenH * 0.3639, tocolor(255, 255, 255, 255), 2.00, "default", "center", "top", false, false, false, false, false) dxDrawRectangle(screenW * 0.4193, screenH * 0.5167, screenW * 0.1646, screenH * 0.0500, tocolor(126, 126, 127, 224), false) dxDrawRectangle(screenW * 0.4193, screenH * 0.5759, screenW * 0.1646, screenH * 0.0500, tocolor(126, 126, 127, 224), false) dxDrawText("Rozpocznij prace", screenW * 0.4375, screenH * 0.5231, screenW * 0.5646, screenH * 0.5574, tocolor(255, 255, 255, 255), 1.00, "default", "center", "top", false, false, false, false, false) dxDrawText("Anuluj", screenW * 0.4380, screenH * 0.5824, screenW * 0.5651, screenH * 0.6167, tocolor(255, 255, 255, 255), 1.00, "default", "center", "top", false, false, false, false, false) end local markerStartRybak = createMarker(1629.55, 582.18, 1.76-1,"cylinder",1.5,255,0,0,255) addEventHandler("onClientMarkerHit",markerStartRybak,function() if guipracka == false then if isElementWithinMarker(localPlayer, markerStartRybak) then pokazOkno() guipracka = true setElementData(localPlayer,"gui:showed",true) showCursor(true) end end end) function pokazOkno() addEventHandler("onClientRender",root,guiPraca) end function zamknijOkno() removeEventHandler("onClientRender",root,guiPraca) end addEventHandler("onClientClick",getRootElement(),function(button, state) if button == "left" and state == "down" and guipracka == true then if getElementData(localPlayer,"gui:showed") then if cursorPosition(screenW * 0.4193, screenH * 0.5759, screenW * 0.1646, screenH * 0.0500) then removeEventHandler("onClientRender",root,guiPraca) guipracka = false setElementData(localPlayer,"gui:showed",false) showCursor(false) end end end end) addEventHandler("onClientClick",getRootElement(),function(button, state) if button == "left" and state == "down" and guipracka == true then if getElementData(localPlayer,"gui:showed",true) then if cursorPosition(screenW * 0.4193, screenH * 0.5167, screenW * 0.1646, screenH * 0.0500) then removeEventHandler("onClientRender",root,guiPraca) showCursor(false) setElementData(localPlayer,"player:working",true) setElementData(localPlayer,"gui:showed",false) end end end end) local markery = { {1633.33, 589.55, 1.76-1}, {1622.88, 583.13, 1.76-1}, } function HitFunction (hitElement) if ( hitElement ~= localPlayer ) then return end if getElementData(localPlayer,"player:working") == true then setElementData(localPlayer,"player:working", false) setElementData(localPlayer,"player:fishing",true) setElementFrozen(hitElement,true) triggerServerEvent("Lowienie",localPlayer,localPlayer) end setTimer(function() rnd = math.random(10,20) triggerServerEvent("givePlayerMoney",localPlayer,rnd) outputChatBox("Otrzymujesz"..rnd.. "PLN za zlowiona rybke",0,255,0) setElementFrozen(hitElement,false) triggerServerEvent("StopLowienie",localPlayer,localPlayer) setElementData(localPlayer,"player:fishing",false) end ,5000,1) end for _,v in ipairs(markery) do if getElementData(localPlayer,"player:working") == true then markerpraca = createMarker(v[1],v[2],v[3],"cylinder",2.0,255,255,255) addEventHandler("onClientMarkerHit",markerpraca,HitFunction) end end
-
local data = { Keys = { } , PlayerKey = { } } ; local allowed = { { 48, 57 }, { 65, 90 }, { 97, 122 } } function generateString ( len ) if tonumber ( len ) then math.randomseed ( getTickCount () ) local str = "" for i = 1, len do local charlist = allowed[math.random ( 1, 3 )] str = str .. string.char ( math.random ( charlist[1], charlist[2] ) ) end return str end return false end addCommandHandler ( "teste" , function ( player ) local Key = generateString(12) data.Keys[Key] = true; data.PlayerKey[player] = Key; outputChatBox("Your Code : "..tostring(Key),player) end ) ; addCommandHandler ( "Gen" , function ( player ) if ( data.PlayerKey[player] ) then outputChatBox("Your Key : "..tostring(data.PlayerKey[player]),player,0,255,0,true) else outputChatBox("You don't have key",player,255,0,0,true) end end ) ;
-
Tapleto-Host| Linux/Windows VPS - Game Servers - TeamSpeak
-Ilker. replied to TAPL's topic in الاستضافات
وش الوضع السيرفرات تطفي ؟ هل من مبرر ؟؟؟؟ -
https://community.multitheftauto.com/index.php?p=resources&s=details&id=1603 مدري نفس الي تبيه ولا بس عدل عليه
-
addCommandHandler setElementData getElementData -- tables 'onPlayerWasted'
-
function func (hit) outputChatBox("it's right",hit) end for k,v in ipairs(Houses) do Markers[k] = createMarker (v[13],v[14],v[15]+0.7,"arrow",1,1,255,0,0) addEventHandler("onMarkerHit",Markers[k],func) end
-
المود تحصله ب باك ابات حرب العصابات