Jump to content

The Killer

Members
  • Posts

    1,336
  • Joined

Everything posted by The Killer

  1. اضغط اف2 لفتح اللوحه -- Client Side # GUIEditor = { label = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(10, 199, 288, 168, "~~<<<معلومات الاعب>>>~~", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0EF0C8") guiSetVisible(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(8, 143, 350, 18, "Money: N/A", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 14, 240, 200) GUIEditor.label[2] = guiCreateLabel(10, 66, 100, 18, "ID: N/A", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 14, 240, 200) GUIEditor.label[3] = guiCreateLabel(8, 32, 350, 18, "Name: N/A", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 14, 240, 200) GUIEditor.label[4] = guiCreateLabel(10, 105, 350, 18, "Serial: " .. getPlayerSerial ( ), false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 14, 240, 200) GUIEditor.label[5] = guiCreateLabel(5, 50, 272, 16, "_________________________________________________", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 51, 239, 14) GUIEditor.label[6] = guiCreateLabel(5, 123, 272, 16, "_________________________________________________", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[6], 51, 239, 14) GUIEditor.label[7] = guiCreateLabel(5, 84, 272, 16, "_________________________________________________", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[7], 51, 239, 14) addEventHandler ( "onClientRender", root, function ( ) if ( guiGetVisible ( GUIEditor.window[1] ) ) then guiSetText ( GUIEditor.label[1], "Money: " .. getPlayerMoney ( ) ) local ID = getElementData ( localPlayer, "ID" ) if ( ID ) then guiSetText ( GUIEditor.label[2], "ID: " .. ID) else guiSetText ( GUIEditor.label[2], "ID: N/A" ) end guiSetText ( GUIEditor.label[3], "Name: " .. getPlayerName ( localPlayer ) ) end end ) bindKey ( "F2" , "down" , function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end )
  2. ما فهمت عليك لو تبي واحد اضمن حمل الي في الكومنتي وريح راسك اسمه ids
  3. خخ , بس للمعلوميه االايدي ما يتغير ,, توني جربت وما يتغير
  4. هممم اذا ما خاب ظني اتوقع انه يكون كذا ---------------------------------------------------------- -- ID System By AboShanab -- Enjoy -- Server Side ! ---------------------------------------------------------- addEventHandler("onResourceStart",resourceRoot,function() for i,v in ipairs ( getElementsByType("player") ) do setElementData(v,"id",i) end end) addEventHandler("onPlayerJoin",root,function () for i,v in ipairs ( getElementsByType("player") ) do setElementData(v,"id",i) end end) لأن كود الاخ ابو شنب مسوي لوب و removeElementData اول ما يدخل الاعب يعني زي ما قال تابل بيتغير كل ما يدخل لاعب عشان كذا حذفتها + ما له داعي تحط if getElementData
  5. نسخ لصق وحاط لك اشياء مالها دخل بالطلب وبعدين الكود موجود فوق حاط كود مدري من وين جايبه والكود اصلا 12 سطر اما انت ماشاء الله كريم 54 سطر ولا بعد مسوي ترايقر لكلنت ومو حاط غير سيرفر بس ماشاء الله يا الذكاء
  6. Event # 'onVehicleStartEnter' function # createVehicle setVehicleDamageProof getPlayerSerial outputChatBox else cancelEvent outputChatBox
  7. الكود مافيه خطأ المشكله منك انت شكلك حاط مود مخربه ولا شي المهم الكود شغال مافيه خطأ
  8. GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(163,52,533,505,"هاك الطيران",false) guiSetAlpha(GUIEditor_Window[1],1) SS = guiCreateButton(20,203,493,119,"Start",false,GUIEditor_Window[1]) guiSetFont(SS,"sa-gothic") SS1 = guiCreateButton(18,368,493,119,"Stop",false,GUIEditor_Window[1]) guiSetFont(SS1,"sa-gothic") GUIEditor_Label[1] = guiCreateLabel(226,328,81,33,"***",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"sa-gothic") SS3 = guiCreateButton(496,25,26,25,"X",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(31,22,457,168,"1.png",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false) local MyMarker = createMarker ( -1627.75891, 1197.12500, 7.03906,"cylinder",1.5,0,0,255,100) addEventHandler ( "onClientMarkerHit" , MyMarker, function ( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible ( GUIEditor_Window[1] , true ) showCursor ( true ) end end , false ) addEventHandler ( "onClientMarkerLeave" , MyMarker, function ( ) guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end , false ) addEventHandler ( "onClientPlayerWasted" , localPlayer, function () guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end ) addEventHandler("onClientGUIClick", root, function () if (source == SS3) then guiSetVisible(GUIEditor_Window[1] , false) showCursor ( false ) end end ) addEventHandler("onClientGUIClick", root, function () if source == SS1 then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران بالسيارهـ") end end ) addEventHandler ("onClientGUIClick", getRootElement(), function () if source == SS2 then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم ايقاف تشغيل الطيران بالسيارهـ") end end )
  9. GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(163,52,533,505,"هاك الطيران",false) guiSetAlpha(GUIEditor_Window[1],1) SS = guiCreateButton(20,203,493,119,"Start",false,GUIEditor_Window[1]) guiSetFont(SS,"sa-gothic") SS1 = guiCreateButton(18,368,493,119,"Stop",false,GUIEditor_Window[1]) guiSetFont(SS1,"sa-gothic") GUIEditor_Label[1] = guiCreateLabel(226,328,81,33,"***",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"sa-gothic") SS3 = guiCreateButton(496,25,26,25,"X",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(31,22,457,168,"1.png",false,GUIEditor_Window[1]) local MyMarker = createMarker ( -1627.75891, 1197.12500, 7.03906,"cylinder",1.5,0,0,255,100) addEventHandler ( "onClientMarkerHit" , MyMarker , function ( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible ( GUIEditor_Window[1] , true ) showCursor ( true ) end end , false ) addEventHandler ( "onClientMarkerLeave" , MyMarker , function ( ) guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end , false ) addEventHandler ( "onClientPlayerWasted" ,localPlayer, function () guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end ) addEventHandler("onClientGUIClick", root, if source == SS3 then guiSetVisible(GUIEditor_Window[1] , false) showCursor ( false ) end end ) addEventHandler("onClientGUIClick", root, function () if source == SS1 then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران بالسيارهـ") end end ) addEventHandler ("onClientGUIClick", getRootElement(), function () if source == SS2 then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم ايقاف تشغيل الطيران بالسيارهـ") end end ) edit: # ابو شنب عندك الايفنت 'onClientPlayerWasted' هو حاط root المفروض localPlayer
  10. حاول انك تسوي مود بدون ميتا وخله يشتغل DontTrustMe بدون الميتا ماتقدر تشغل المود ملاحظه: صدقني ماراح يشتغل
  11. نصراوي وش وضعك انت كل شوي الاكواد صح ولا خطأ هنا تساعد مو تحط خرابيط وتقول الكود صح ولا خطأ مو انت الي تطلب الكود هو الي يطلب الكود انت اذا جيت هنا تجي على اساس انك تساعده مو تعطيه خرابيط وتقول صح ام خطأ وبعدين انا معطيه الفنكشنات خله يعتمد على نفسه تبي تساعده ساعده بس مو تحط خرابيط وتقول صح ولا خطأ
  12. استخدم Event # 'onClientPlayerDamage' function # getPlayerTeam getTeamFromName getPlayerWantedLevel cancelEvent
  13. --WANTED LEVEL IF A PLAYER IS MURDERED BY A NON-COP, OR IF AN INNOCENT PERSON IS MURDERED BY A COP function aplayerdied( ammo, attacker, weapon, bodypart ) local glevel = getPlayerWantedLevel ( source ) if isElement(attacker) then local wlevel = getPlayerWantedLevel( source ) if wlevel > 0 then if getElementParent(attacker) == kingCOP then setPlayerWantedLevel( source, 0 ) end end if ( getElementType( attacker ) == "player" ) then local wlevel = getPlayerWantedLevel( attacker ) if wlevel < 6 then setPlayerWantedLevel( attacker, wlevel+1 ) end elseif ( getElementType( attacker ) == "vehicle" ) then thekiller = getVehicleController( attacker ) if isElement(thekiller) then local wlevel = getPlayerWantedLevel ( thekiller ) if wlevel < 6 then setPlayerWantedLevel( thekiller, wlevel+1 ) end end end end -- setPlayerWantedLevel( source, 0 ) end addEventHandler ( "onPlayerWasted",root, aplayerdied ) addEventHandler ( "onPlayerWasted",root,function (ammo,attacker,weapon,bodypart ) if getPlayerTeam(attacker) ~= getTeamFromName("Police") and getPlayerTeam(source) == getTeamFromName("Police") then if getPlayerWantedLevel(attacker) <= 3 then setPlayerWantedLevel(attacker,getPlayerWantedLevel(attacker)+3 ) end else if getPlayerWantedLevel(attacker) >= 1 then setPlayerWantedLevel(attacker,0) end end end ) --WANTED LEVEL IF A POLICE OFFICER IS ATTACKED function assaultinganofficer ( attacker, weapon, bodypart, loss ) if getElementParent(source) == kingCOP then if isElement(attacker) then if ( getElementType( attacker ) == "player" ) then if getElementParent(attacker) == kingCOP then return end elseif ( getElementType( attacker ) == "vehicle" ) then thedriver = getVehicleController( attacker ) if isElement(thedriver) then if getElementParent(thedriver) == kingCOP then return end end end if (getElementData ( source, "justdamaged" ) ~= "yes") and (source ~= attacker) then setElementData ( source, "justdamaged", "yes" ) local damagereset = setTimer ( resethurt, 20000, 1, source ) if ( getElementType( attacker ) == "player" ) then local wlevel = getPlayerWantedLevel( attacker ) if wlevel < 1 then setPlayerWantedLevel( attacker, wlevel+1 ) end elseif ( getElementType( attacker ) == "vehicle" ) then local thekiller = getVehicleController( attacker ) if isElement(thekiller) then local wlevel = getPlayerWantedLevel ( thekiller ) if wlevel < 1 then setPlayerWantedLevel( thekiller, wlevel+1 ) end end end end end end end addEventHandler ( "onPlayerDamage", getRootElement(), assaultinganofficer ) function resethurt(source) if isElement(source) then setElementData ( source, "justdamaged", "none" ) end end --WANTED LEVEL IF SOMEONE OTHER THAN A COP JACKS SOMEONE function carjackcheck(theVehicle, seat, jacker) if isElement(jacker) then if getElementParent(jacker) == kingCOP then return end local wlevel = getPlayerWantedLevel( jacker ) if wlevel < 4 then setPlayerWantedLevel( jacker, wlevel+1 ) end end end addEventHandler ( "onPlayerVehicleExit", getRootElement(), carjackcheck ) --WANTED LEVEL IF NON-COP TRIES TO USE A COP CAR function copcarcheck(theVehicle, seat, jacked) if getElementParent(source) == kingCOP then return else local carid = getElementModel( theVehicle ) if carid == 598 or carid == 596 or carid == 597 or carid == 427 or carid == 490 or carid == 599 then if (getElementData ( source, "currentstatus" ) ~= "underarrest" ) then local wlevel = getPlayerWantedLevel( source ) if wlevel < 4 then setPlayerWantedLevel( source, wlevel+1 ) end end end end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), copcarcheck ) -- WANTED LEVEL IF A COP SEES SOMEONE DOING SOMETHING ILLEGAL -- TO MAKE THIS WORK WITH YOUR SCRIPT, SET A PLAYERS ELEMENT DATA "legalstatus" TO "illegal" WHILE DOING SOMETHING ILLEGAL -- DONT FORGET TO CHANGE IT TO SOMETHING ELSE AFTERWARDS THOUGH!! function inspection ( element ) if isElement(element) then if getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) == 'Police' then return end local wlevel = getPlayerWantedLevel( source ) if wlevel == 0 then if (getElementData ( element, "legalstatus" ) == "illegal" ) then local cx, cy, cz = getElementPosition ( source ) local px, py, pz = getElementPosition ( element ) if ( getDistanceBetweenPoints3D ( cx, cy, cz, px, py, pz ) < 15 ) then setPlayerWantedLevel ( element, 1 ) end end end end end addEventHandler ( "onPlayerTarget", getRootElement(), inspection ) --STUFF TO MAKE BRIBE PICKUPS WORK function pickedUpWantedCheck ( player ) if ( getElementType(source) == "pickup" ) then if getPickupType ( source ) == 3 then if (getElementData ( source, "model" ) == "1247" ) then local level = getPlayerWantedLevel(player) if ( level > 0 ) then setPlayerWantedLevel ( player, level-1 ) end end end end end addEventHandler ( "onPickupHit", getRootElement(), pickedUpWantedCheck )
  14. TAPL, it's work but i want it refresh, i want it if the ping change then in the label change. @solid sorry because i didn't understand you.
  15. i did say that i do trigger addEvent("ping",true) addEventHandler("ping",root,function(pla) triggerClientEvent(source,"setPlayerPing",source,getPlayerPing(getPlayerFromName(pla))) end ) @solid i'm trying to make when someone select a player from the grid then show his ping and if his ping change then in the label change too.
  16. addEventHandler("onClientGUIClick",root, function () if source == mgrid then killTimer(tim) local name = guiGridListGetItemText ( mgrid, guiGridListGetSelectedItem (mgrid), 1 ) if name and name ~= "" then triggerServerEvent("ping",localPlayer, name) end end end ) addEvent("setPlayerPing",true) addEventHandler("setPlayerPing",root,function(Ping) if (isTimer(tim)) then killTimer(tim) end tim = setTimer (guiSetText, 1000, 0, ping, Ping) end )
  17. i did like what you say but didn't work it work but if i select a player after 1 sec it's show his ping i want it if the ping change then in the label change too, and i want to tell you that i'm using trigger if that make different.
×
×
  • Create New...