Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Days Won

    27

Everything posted by iPrestege

  1. عليكم السلام اخوي حمل النسخة من هنا : Download MTA واضغط بالمنتصف موجود DOWNLOAD واختار نظامك اذا كان اكس بي او ويندوز 7 وفوق وبيحمل البرنامج وقبل تثبتة اذا كنت مشغل سيرفر محلي باستخدام mtaserver.exe قفلة بعدين ثبت تثبيت عادي بالتوفيق
  2. If it's a global ban by mta then you have to ask ccw for more information about that and why you got banned. And if it's from the server only then you have to find a way to contact them if they have a website forums anything and ask for unban. Good luck!
  3. Try this : local x,y,z = getElementPosition ( localPlayer ); local weapon = createWeapon( 'minigun',x,y,z+2 ); bindKey ( 'num_6','down', function ( ) if not weapon then return end; local _,_,rotZ = getElementRotation ( weapon ); setElementRotation ( weapon,0,0,rotZ+10 ); end );
  4. aMyGroups = { 'Console','Admin','Moderator' }; addEventHandler ( 'onPlayerLogin',root, function ( _,aMyAccount ) if isGuestAccount ( aMyAccount ) then return end; for _,aGroup in next,aMyGroups do if isObjectInACLGroup ( 'user.'..getAccountName ( aMyAccount ),aclGetGroup ( aGroup ) ) then setElementData ( source,'aDrawMyText',true ); end break end end ); -- On Client Side dxDrawTextOnElement = function (TheElement,text,height,distance,R,G,B,alpha,size,font,checkBuildings,checkVehicles,checkPeds,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies or true local seeThroughStuff = seeThroughStuff or false local ignoreSomeObjectsForCamera = ignoreSomeObjectsForCamera or false local ignoredElement = ignoredElement or nil if (isLineOfSightClear(x, y, z, x2, y2, z2, checkBuildings, checkVehicles, checkPeds , checkObjects,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawText(text, sx+2, sy+2, sx, sy, tocolor(R or 255, G or 255, B or 255, alpha or 255), (size or 1)-(distanceBetweenPoints / distance), font or "arial", "center", "center") end end end end addEventHandler ( 'onClientRender',root, function ( ) if getElementData ( localPlayer,'aDrawMyText' ) or getPlayerTeam ( localPlayer ) == getTeamFromName ( 'aMyTeamName' ) then dxDrawTextOnElement ( localPlayer,'Staff Member',1,10,255,0,0,255,1 ) end end ) -- PS. You have to login again also change the team name in line 3 in render function.GL. PS. First code with orange functions is in server side! @shaio
  5. يجيب كل الماركرات باستخدام : getElementsByType
  6. Try with this ; addEventHandler ( 'onClientPlayerDamage',localPlayer, function ( aAttacker,aWeapon ) if ( aAttacker and aWeapon and aAttacker ~= source ) then if ( getElementData ( source,'KillArrest' ) == true ) then cancelEvent ( ) end end )
  7. # ACL Permission Manager 1.0 # By SoRa ^^ استخدم هذا المود لتعديل الصلاحيات بسيط وسهل
  8. @shaio You still using server functions in the client side that isn't going to work. Use set get element data instead of account data.
  9. صعبه تطلب خمسه كاشيو بمقابل العشرة جنيه اضعاف السعر الاساسي
  10. وضح اكثر يعني وش اللي تبي تسوية مافهمتك؟
  11. المفروض يشتغل عموماً حط اكوادك كلنت حقت الكاميرا كلها مايحتاج ترايقر عشانها
  12. موب شغال هذا؟ اذا موب شغال جرب بدل كلنت بسورس مع انة المفترض يشتغل لكن جرب وهل الديبق يعطيك شيء؟ /debugscript 3
  13. في الترايقر showLoginWindow بدلها بلوكال بلاير localPlayer
  14. Anytime + ماعندي فيس لكن تقدر تشرفني في منتداي في توقيعي مجتمع العرب
  15. addEventHandler ( "onPlayerLogin",root, function ( ) setCameraTarget ( source,source ) end ) الكود سيرفر موب كلنت
  16. الاعب في حدث تسجيل الدخول سورس شيل فهد وحط سورس
  17. عالاغلب عندك مود اخر مسبب هالمشكلة طفي مود play اذا شغال
  18. You are running both client and server functions in the server i guess? or in client? isObjectInACLGroup is a server side function dxDraw is a client so make a data.
  19. Not sure but you can try this function spawnOnLogin ( ) local dataresult = dbPoll ( dbQuery ( db,'SELECT * FROM `player_stuff` WHERE name=?',getPlayerName ( source ) ),-1 ) if type ( dataresult ) == 'table' and #dataresult == 0 or not dataresult then return end local skin = dataresult [1] ['skin'] local cash = dataresult [1] ['cash'] local wasWanted = dataresult [1] ['wasWanted'] end addEventHandler ( 'onPlayerJoin',root,spawnOnLogin ) @LopSided_
  20. With the way you are using any object's in the server will be counted if you want to count the object's in the resource. You have to use resourceRoot . Something like this : #getElementsByType ( 'object',resourceRoot ); @Tosti
  21. عدل لوحة الادمنية وتحقق من ان الاعب في الديربي بداتا او العالم الوهمي الخاص بة
  22. createdVehicle = { } aVoidSpam = { } function createVehicleForPlayer ( thePlayer,command,vehicleModel ) if isTimer ( aVoidSpam[thePlayer] ) then return outputChatBox ('You cannot create a vehicle now!!Please try later again!',thePlayer) end if not vehicleModel or not tonumber ( vehicleModel ) then return outputChatBox("SYNTAX:/createvehicle [id]",thePlayer) end local x,y,z = getElementPosition(thePlayer) local createdVehicle[thePlayer] = createVehicle ( tonumber ( vehicleModel ),x+5,y,z ) aVoidSpam[thePlayer] = setTimer ( function( thePlayer ) aVoidSpam [thePlayer] = nil end,1000,1,thePlayer ) end addCommandHandler("createvehicle", createVehicleForPlayer)
×
×
  • Create New...