Jump to content

King12

Members
  • Posts

    437
  • Joined

  • Last visited

Everything posted by King12

  1. King12

    banPlayer

    Add this line under your banPlayer function : outputChatBox(getPlayerName(source).."is banned by Console. Reason : ( Tunisia is banned ).", root, 255,0,0,true)
  2. King12

    script

    addEventHandler( "onChatMessage", resourceRoot, function ( ) cancelEvent ( true ) end ) it should work.
  3. This function returns true if MTA has frozen the element because it is above map objects which are still loading. Maybe your game ain't freezing, that's why. Also make you are using it in the correct side, if the vehicle spawns on client-side use it on client side.
  4. King12

    طلب

    لازم تسوي نظام للسيريالات آي واحد تحطه بقروب مودريتور لازم تضيف سيرياله للسكربت حقك علشان تتحقق لآن المودريتر ماراح يجي للاعب الا لما يسجل دخول بس.
  5. It can be done more ways, but mine will reduce warnings when re-communicate with the clients directly after the binds. Also gives the option to register players and start large data transfers without problems. But yours is quicker. @Miika822 what is it Miika822? But what if someone joined the server?
  6. wtf?? function resourceStart () for k, p in ipairs (getElementsByType("player")) do bindKey(p, "F12", "down", fadeBind, p) end end addEventHandler ("onResourceStart", resourceRoot, resourceStart) function playerJoins() bindKey(source, "F12", "down", fadeBind, source) end addEventHandler("onPlayerJoin", root, playerJoins)
  7. show your codes, we can't help you from images.
  8. addEventHandler("onClientGUIChanged",editName, -- editName آسم الآيديت حقك function() guiGridListClear(GUIEditor.gridlist[1]) for k,v in ipairs ( getElementsByType("player") ) do local name = string.lower(getPlayerName(v)) local tm11 = getPlayerTeam(localPlayer) local tm21 = getTeamName( tm11 ) local distance = getDistanceBetweenPoints3D(x, y, z, mx, my, mz) local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) if name then if string.find (name,string.lower(guiGetText(GUIEditor.edit[1])) ) then guiGridListSetItemText ( GUIEditor.gridlist[1], row, column, getPlayerName ( v ), false, false ) guiGridListSetItemText (GUIEditor.gridlist[1], row,column1,getPlayerName ( tm21 ), false, false) guiGridListSetItemText (GUIEditor.gridlist[1], row, column2 ..math.floor(distance), false, false) end end end end ) ماتأكدت منه.
  9. Looks good but ? https://community.multitheftauto.com/in ... ls&id=3577
  10. عطنا آمثله ع السكربتات اللي تبيها.
  11. آنا مادخلت اي وقت ابا اسوي تيست جماعي .. اشوف اللي بالتيم سبيك واعطيهم الباس ض1 انته يمكن ما كنت موجود كل الوقت داخل , خيرها بغيرها
  12. Thanks alot, it's working now!
  13. What about using the admin rights to get the mute's time? addEvent ( "onPlayerMute", false ) function aSetPlayerMuted ( player, state, length ) if ( setPlayerMuted ( player, state ) ) then if not state then aRemoveUnmuteTimer( player ) elseif state and length and length > 0 then aAddUnmuteTimer( player, length ) end triggerEvent ( "onPlayerMute", player, state ) return true end return false end local serial = getPlayerSerial( player ) aUnmuteTimerList[serial] = setTimer( function() aUnmuteTimerList[serial] = nil for _,player in ipairs(getElementsByType('player')) do if getPlayerSerial(player) == serial then if isPlayerMuted(player) then triggerEvent ( "aPlayer", getElementByIndex("console", 0), player, "mute" ) end end end end, length*1000, 1 ) end So that means aUnmuteTimerList[serial] is the timer that sets the duration?
  14. Hello there, I just want to know if there is any possibility to get the player's mute time.
  15. Sadly it's exclusive for your server, it would be great if you shared it with us. Still great tho..
  16. ياخي خلاص واضحه نفس اسم الفنكشن لا وحاط 1,40 وش هي صدف ولا آيش -.-
  17. King12

    Helpe me

    Zona = createMarker(1540.8887939453, -1630.9000244141, 12, "cylinder", 20, 255, 255, 255, 0) function Funcion (hitElement) playerTeam = getPlayerTeam (hitElement) Clann = getTeamFromName ( "Police" ) if ( playerTeam ) == Clann then veh = getPedOccupiedVehicle(hitElement) if (veh) then moveObject ( objeto, 3000, 1541.0999755859, -1627.6999511719, 9.4 ) else moveObject ( objeto, 3000, 1541.0999755859, -1627.6999511719, 9.4 ) end end end addEventHandler ( "onMarkerHit", Zona, Funcion )
  18. الحين ناتف الكود من موضوعي وتحلف انك مسويه؟ viewtopic.php?f=91&t=80980 wtf
  19. انا عملت وانا عملت ياناس قولوا اخذنا كود مو تفقشونها مره وحده كذا..
  20. خلاص ضبط يعطيكم العافيه :>
×
×
  • Create New...