-
Posts
1,336 -
Joined
Everything posted by The Killer
-
يالطيب ما يجوز تسرق حق غيرك وتقول انا سويته الكود حق مستر طلال وانت عدلته ونسخته ولصقته وقلت حقي ----
-
Client side # addEventHandler ("onClientGUIClick", root, function () if (source == GUIEditor.button[1]) then tx = guiGetText (GUIEditor.edit[1]) if tx == "" then return end triggerServerEvent ("onSendMsg", localPlayer, guiGetText (GUIEditor.edit[1])) end end ) addEvent ("onAddMsg", true) addEventHandler ("onAddMsg", root, function (whoSend, text) Row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], Row, msgC, text, false, false) guiGridListSetItemText( GUIEditor.gridlist[1], Row, plrC, getPlayerName (whoSend), false, false ) end) Server side # addEvent ("onSendMsg", true) addEventHandler ("onSendMsg", root, function (text) for k,v in ipairs (getElementsByType ("player")) do triggerClientEvent (v, "onAddMsg", v, source, text) end end)
-
local Marker = createMarker (846.49,-2064.81,12.86,"cylinder", 2, 255, 255, 0, 150) GUIEditor = { button = {}, window = {}, label = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(181, 140, 438, 320, "=[ Group Info ]= | =[ Base Info ]=", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible (GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(10, 23, 419, 250, "Group Info Or Base Info Here\n\n\n\n\nBy : mnGr7", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.label[1] = guiCreateLabel(317, 283, 115, 20, "Created By : mnGr7", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 151, 0, 0) GUIEditor.button[1] = guiCreateButton(13, 277, 294, 33, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") end ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1] ,true ) showCursor( true ) guiSetInputEnabled(true) end end ) addEventHandler ("onClientGUIClick", root, function () if ( source == GUIEditor.button[1] ) then guiSetVisible (GUIEditor.window[1], false) showCursor (false) guiSetInputEnabled(false) end end )
-
local Marker = createMarker (846.49,-2064.81,12.86,"cylinder", 2, 255, 255, 0, 150) GUIEditor = { button = {}, window = {}, label = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(220, 150, 438, 320, "=[ Group Info ]= | =[ Base Info ]=", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible (GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(9, 23, 419, 250, "Group Info Or Base Info Here\n\n\n\n\nBy : mnGr7", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(317, 283, 115, 20, "Created By : mnGr7", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 151, 0, 0) GUIEditor.button[1] = guiCreateButton(13, 277, 294, 33, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") end ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1] ,true ) showCursor( true ) guiSetInputEnabled(true) end end ) addEventHandler ("onClientGUIClick", root, function () if ( source == GUIEditor.button[1] ) then guiSetVisible (GUIEditor.window[1], false) showCursor (false) guiSetInputEnabled(false) end end )
-
سوي تحقق انه اذا كان الاعب في العالم الوهمي رقم 3 يشتغل المود معه if getElementDimension (player) == 3 then -- your code
-
مود رائع من شخص اكثر من رائع واصل بدون فواصل وننتظر جديدك
-
يوديه للمقر لأنك حاط الاحداثيات للمقر , غير الاحداثيات وخليها احداثيات السجن
-
تقدر تستخدمها عشان تحذف التكست في وقت محدد راح اعطيك مثال اذا لاعب لمس الماركر يطلع له كلام وبعد وقت محدد يختفي function text () dxDrawText("Text", x, y, width, height, tocolor(r, g, b, a), 1.00, "default", "left", "top", false, false, false, false, false) end marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0) addEventHandler ("onClientMarkerHit", marker, function (hitElem) if hitElem == localPlayer then addEventHandler ("onClientRender", root, text) setTimer (function () removeEventHandler ("onClientRender", root, text) end, 10000, 1) end end )
-
هممم صارت لي نفس مشكلتك لأني مسوي القروب في سيرفر خاص ,يبغالك سيرفر في استضافه عشان يضبط معك , ومو كل مره يفشل ,
-
ناقصك تحذف القيمه من الجدول vehicle[source] = nil local vehicle = {} local x, y, z = 0, 0, 0 --- الاحداثيات local id = 400 -- الايدي addEvent("onCreateVehicle", true) addEventHandler("onCreateVehicle", root, function() if isElement(vehicle[source]) then destroyElement (vehicle[source]) vehicle[source] = nil end vehicle[source] = createVehicle(id, x, y, z) warpPedIntoVehicle (source, vehicle[source]) end) addEventHandler ("onPlayerQuit", root, function () if isElement (vehicle[source]) then destroyElement (vehicle[source]) vehicle[source] = nil end end)
-
Event # 'onClientMarkerHit' -- حدث عند لمس الماركر function # -- الوظيفه createMarker -- صنع الماركر showCursor -- اذا لمس الماركر يظهر له الماوس guiSetVisible -- يظهر له اللوحه guiGetVisible -- ^
-
مشكور ع التنبيه التصحيح local col = createColCuboid ( x,y,z, width, depth, height ) Timer = {} addEventHandler ("onColShapeHit", col, function ( hitElem ) if getElementType (hitElem) == "player" then if getPlayerTeam( hitElem ) and getTeamName( getPlayerTeam( hitElem ) ) ~= 'No Team' then if isTimer(Timer[hitElem]) then killTimer(Timer[hitElem]) end outputChatBox ("You have to leave this place in 15 secs.", hitElem, 255, 0, 0) Timer[hitElem] = setTimer (function () killPed (hitElem) end, 15000, 1) end end end ) addEventHandler ("onColShapeLeave", col, function (leaveElem) if getElementType (leaveElem) == "player" then outputChatBox ("You have left this area.", leaveElem, 0, 255, 0) killTimer (timer[leaveElem]) end end )
-
local col = createColCuboid ( x,y,z, width, depth, height ) Timer = {} addEventHandler ("onColShapeHit", col, function ( hitElem ) if getElementType (hitElem) == "player" then if getPlayerTeam( hitElem ) and getTeamName( getPlayerTeam( hitElem ) ) ~= 'No Team' then if isTimer(Timer[hitElem]) then killTimer(Timer[hitElem]) end outputChatBox ("You have to leave this place in 15 secs.", hitElem, 255, 0, 0) Timer[hitElem] = setTimer (function () killPed (hitElem) end) end end end ) addEventHandler ("onColShapeLeave", col, function (leaveElem) if getElementType (leaveElem) == "player" then outputChatBox ("You have left this area.", leaveElem, 0, 255, 0) killTimer (timer[leaveElem]) end end )
-
تقدر تستخدم الكول شيب Event # 'onColShapeHit' function # createColCuboid -- for the area getPlayerTeam getTeamName table -- for the timer isTimer killTimer setTimer killPed
-
اولا ليش الترايقر ؟ ثانيا استبدل group name في اول سطر بأسم قروب الادمن الي تبي تعطيه للأعب اذا وصل 50 group = "group name" addEventHandler ("onPlayerLogin", root, function (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local accountData = getAccountData (theCurrentAccount, "count") if (accountData) then setElementData (source, "count", getAccountData (theCurrentAccount, "count")) outputChatBox ("You have [" .. getAccountData (theCurrentAccount, "count") .. "] of point.", source, 255, 255, 0) end end end) addEventHandler("onPlayerWasted",root, function(totalAmmo, killer, killerweapon, bodypart) if killer and killerweapon == 31 then if getElementData (killer, "count") ~= getElementData (killer, "count") then setElementData (killer, "count", 0) end setElementData (killer, "count", getElementData (killer, "count") + 1) outputChatBox ("You got 1 point now you have [" .. getElementData (killer, "count") .. "] of point.", killer, 0, 255, 0) if getElementData (killer, "count") == 50 then outputChatBox ("Congratulation you have a 50 point and you got a " .. group .. ".", killer, 0, 255, 0) local account = getAccountName(getPlayerAccount(killer)) aclGroupAddObject (aclGetGroup(group),"user."..account) end end end) addEventHandler ("onPlayerQuit", root, function (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then setAccountData (account, "count", getElementData (source, "count")) end end end)
-
اذا قصدك مو كل مره في مكان محدد , لازم لك تسوي جدول للأمكان المخصصه + setElementPosition setElementData getElementData
-
جرب addEventHandler ("onClientGUIClick", root, function () if (source == buttonName) then marker = createMarker (x,y,z, "cylinder", 2, 255, 0, 0) addEventHandler ("onClientMarkerHit", marker, hit) end end) function hit () destroyElement (marker) marker2 = createMarker (x,y,z, "cylinder", 2, 255, 0, 0) removeEventHandler ("onClientMarkerHit", marker, hit) addEventHandler ("onClientMarkerHit", marker2, hit2) end function hit2 () destroyElement (marker2) marker3 = createMarker (x,y,z, "cylinder", 2, 255, 0, 0) removeEventHandler ("onClientMarkerHit", marker2, hit2) addEventHandler ("onClientMarkerHit", marker3, hit3) end function hit3 () destroyElement (marker3) removeEventHandler ("onClientMarkerHit", marker3, hit3) marker = createMarker (x,y,z, "cylinder", 2, 255, 0, 0) addEventHandler ("onClientMarkerHit", marker, hit) end
