-
Posts
405 -
Joined
-
Last visited
Everything posted by Vision
-
Modification https://community.multitheftauto.com/index.php?p= ... ls&id=3503 DONE
-
[host] Alguem sabe onde eu encontro Host para MTA 1.3 ?
Vision replied to Snes's topic in Portuguese / Português
Host brasileiro? -
Como eu crio um sistema de times? (Gangs)
Vision replied to RuanAguiar's topic in Programação em Lua
Aqui no Brasil, nós chamamos as Equipes de Time -
if guiGetText ( GUIEditor_Button[21] ) ~= "français" then You added an extra ']'
-
Try this bargate = createObject (968,-2063.5,1371.0999755859,7.0999999046326,0,270,0) damarker = createMarker (-2066.81201, 1370.72888, 6.90067, "cylinder", 9.5, 255, 0, 0, 100 ) isMoving = false function gatefunc( hitPlayer ) if ( getElementType ( hitPlayer ) == "player" and isPedInVehicle( hitPlayer ) ) then local veh = getElementModel ( getPedOccupiedVehicle ( hitPlayer ) ) if ( veh == 431 ) then isMoving = true moveObject( bargate, 1500, -2063.5, 1371.0999755859, 7.0999999046326, 0, 90, 0 ) end end end addEventHandler( "onMarkerHit", damarker, gatefunc ) function gatefuncclose( hitPlayer ) if ( getElementType( hitPlayer ) == "player" and isPedInVehicle( hitPlayer ) ) then local veh = getElementModel( getPedOccupiedVehicle( hitPlayer ) ) if ( veh == 431 ) then isMoving = false moveObject( bargate, 1500, -2063.5, 1371.0999755859, 7.0999999046326, 0, -90, 0 ) end end end addEventHandler( "onMarkerLeave", damarker, gatefuncclose )
-
URgate = createObject ( 980, 1465.5, -1498.3000488281, 15.300000190735, 0, 0, 90 ) function open ( thePlayer, command ) local accountName = getAccountName ( getPlayerAccount( thePlayer ) ) if ( accountName == "Mateo1997" ) then moveObject ( URgate, 3000, 1465.5, -1498.3000488281, 9.6999998092651, 0, 0, 0 ) outputChatBox ( "(UR Base) Gate opened. Do not forget to close it!", thePlayer ) else outputChatBox ( "(UR Base) Gate lock.", thePlayer ) end end addCommandHandler("uro", open) function close ( thePlayer, command ) moveObject ( URgate, 3000, 1465.5, -1016.8994140625, 15.300000190735, 0, 0, 0 ) outputChatBox ( "(UR Base) Kapija zatvorena.", thePlayer ) end addCommandHandler("urz", close)
-
You can use this resource https://community.multitheftauto.com/index.php?p= ... ils&id=960
-
-- Create Peds.xml and insert tags -- function createFileHandler ( ) local theFile = xmlCreateFile("peds/peds.xml", "peds") xmlCreateChild(theFile, "ped") xmlSaveFile(theFile) end addCommandHandler ( "addpedfile", createFileHandler ) function pedfunc ( player, cmd, id ) if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "lvl 5" ) ) then if ( id == "" ) then outputChatBox ( "Ped-System: Error, the command is /addped ", player, 255, 0, 0 ) return end local x, y, z = getElementPosition ( player ) local rot = getPedRotation ( player ) local int = getElementInterior ( player ) local dim = getElementDimension ( player ) local file = xmlLoadFile ( "peds/peds.xml" ) if ( file ) then local newChild = xmlFindChild ( file, "ped", 0 ) xmlNodeSetAttribute ( newChild, "id", id ) xmlNodeSetAttribute ( newChild, "x", x ) xmlNodeSetAttribute ( newChild, "y", y ) xmlNodeSetAttribute ( newChild, "z", z ) xmlNodeSetAttribute ( newChild, "rotation", rot ) xmlNodeSetAttribute ( newChild, "int", int ) xmlNodeSetAttribute ( newChild, "dim", dim ) xmlSaveFile ( file ) local created = createPed ( id, x+1, y, z, rot, int, dim ) setElementInterior ( created, int ) setElementDimension ( created, dim ) setPedRotation ( created, rot ) setElementFrozen ( created, true ) outputChatBox ( "Ped-System: You have successfully made a ped with an ID of #ff0000".. tonumber(id) .."#00ff00!", player, 0, 255, 0, true ) else outputChatBox ( "Ped-System: Failed to load XML file!", player, 255, 0, 0 ) end else outputChatBox ( "Ped-System: This command is only for admins!", player, 255, 0, 0 ) end end addCommandHandler ( "addped", pedfunc )
-
function drawLoginText() dxDrawText("Welcome to ...", 131, 29, 846, 76, tocolor(255, 0, 0, 255), 1, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Please Login Below", 490, 349, 724, 366, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender", root, drawLoginText) function onPlayerLogin() removeEventHandler("onClientRender", root, drawLoginText) end addEvent("removeDXOnLogin", true) addEventHandler("removeDXOnLogin", root, onPlayerLogin)
-
function jail(player, cmd, prisoner, ... ) local text = table.concat({...}, " ") local nick=getPlayerName(player) local nick2=getPlayerFromName(prisoner) outputChatBox(getPlayerName(nick2) .." Has Been Jailed By ".. nick .." ( ".. text .." )", root, 255, 0, 0 ) setElementPosition(nick2, 264.2540, 78.686, 101) setElementInterior(nick2, 6) end addCommandHandler("jailhim", jail)
-
I liked, Good work.
-
function givecash(thePlayer, command, who, amount) local noobwiegeldkrijgt = getPlayerFromName ( who ) local noobdiegeldgeeft = getPlayerName ( thePlayer ) if ( tonumber ( amount ) < 0 ) then return end if (getPlayerMoney(thePlayer) >= tonumber(amount)) then givePlayerMoney (noobwiegeldkrijgt, math.abs(tonumber(amount))) takePlayerMoney (thePlayer, math.abs(tonumber(amount))) else outputChatBox("Sorry, You Do Not Have That Much Money To Give.", thePlayer, 255, 0, 0 ) end end addCommandHandler ("give", givecash)
-
marker = createMarker( 2161.03442, -1620.84192, 14.08922, "checkpoint", 4.0, 0, 0, 255, 255 ) mk1 = createMarker( 2071.20850, -1556.17798, 13.41725, "checkpoint", 4.0, 0, 0, 255, 0 ) blip = createBlip( 2161.03442, -1620.84192, 14.08922, 12, 2, 255 ) function hi() destroyElement( marker ) outputChatBox( "BOT:DUTE UNDE ITI ARAT CA IEI BATAIE" ) mk1 = createMarker( 2071.20850, -1556.17798, 13.41725, "checkpoint", 4.0, 0, 0, 255, 255 ) b1 = createBlip( 2071.20850, -1556.17798, 13.41725, 0, 2, 255, 0, 0, 255 ) setMarkerColor( mk1, 0, 0, 255, 255 ) end addEventHandler ( "onMarkerHit", marker, hi ) function si(player) outputChatBox( "BOT:BRAVO NICULE" ) givePlayerMoney( player, 1000 ) destroyElement( b1 ) destroyElement( mk1 ) end addEventHandler( "onMarkerHit", mk1, si)
-
Modification https://community.multitheftauto.com/index.php?p= ... ls&id=6133 DONE
-
Yes, Just set the Alpha Color to 0
-
viewtopic.php?f=148&t=38117 This is a tutorial about Roll Script
-
Stolen https://community.multitheftauto.com/index.php?p= ... ls&id=6111 DONE
