King12
Members-
Posts
437 -
Joined
-
Last visited
Everything posted by King12
-
Add this line under your banPlayer function : outputChatBox(getPlayerName(source).."is banned by Console. Reason : ( Tunisia is banned ).", root, 255,0,0,true)
-
addEventHandler( "onChatMessage", resourceRoot, function ( ) cancelEvent ( true ) end ) it should work.
-
Such a good scripts, good luck!
-
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.
-
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?
-
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)
-
show your codes, we can't help you from images.
-
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 ) ماتأكدت منه.
-
Looks good but ? https://community.multitheftauto.com/in ... ls&id=3577
-
عطنا آمثله ع السكربتات اللي تبيها.
-
آنا مادخلت اي وقت ابا اسوي تيست جماعي .. اشوف اللي بالتيم سبيك واعطيهم الباس ض1 انته يمكن ما كنت موجود كل الوقت داخل , خيرها بغيرها
-
آنا مادخلت
-
Thanks alot, it's working now!
-
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?
-
Hello there, I just want to know if there is any possibility to get the player's mute time.
-
Sadly it's exclusive for your server, it would be great if you shared it with us. Still great tho..
-
ياخي خلاص واضحه نفس اسم الفنكشن لا وحاط 1,40 وش هي صدف ولا آيش -.-
-
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 )
-
الحين ناتف الكود من موضوعي وتحلف انك مسويه؟ viewtopic.php?f=91&t=80980 wtf
-
انا عملت وانا عملت ياناس قولوا اخذنا كود مو تفقشونها مره وحده كذا..
-
ممنورين يالغغالين ~