-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Vortex? hovercraft. And I don't understand your second question.
-
https://wiki.multitheftauto.com/wiki/Veh ... s#Aircraft
-
The floor? that object seems like a replaced object.
-
The briefcase? if so, then it's object model: 1210.
-
setTimer ( function ( ) for _, vehicle in ipairs ( getElementsByType ( "vehicle" ) ) do if isElementInWater ( vehicle ) then blowVehicle ( vehicle, true ) end end end , 10000, 0 )
-
Yes, but your script is currently setting a timer for every vehicle that is in water to blow it up, only when the resource start.
-
You want to check every 10 seconds for vehicles in wanter and blow them up?
-
You're welcome.
-
No, el script lo hace solo, nada mas le pones el numero de imagen que queres que cargue primero.
-
playerLocalPlayer Is not a valid function name. function visionn ( ) local vTeam = getPlayerTeam ( localPlayer ) if ( vTeam and getTeamName ( vTeam ) == "FA" ) then local newVision = ( getCameraGoggleEffect ( ) == "nightvision" and "normal" or "nightvision" ) setCameraGoggleEffect ( newVision ) outputChatBox ( "*nocturna ".. ( newVision == "nighvision" and "activadas" or "desactivadas" ) .."*", 255, 0, 0, true ) end end addCommandHandler ( "gafasvn", visionn ) bindKey ( "b", "down", "gafasvn" ) function visiont() local vtTeam = getPlayerTeam ( localPlayer ) if ( vtTeam and getTeamName ( vtTeam ) == "PSG" ) then local newVision = ( getCameraGoggleEffect ( ) == "thermalvision" and "normal" or "thermalvision" ) setCameraGoggleEffect ( newVision ) outputChatBox ( "*térmica ".. ( newVision == "thermalvision" and "activadas" or "desactivadas" ) .."*", 255, 0, 0, true ) end end addCommandHandler ( "gafasvt", visiont ) bindKey ( "b", "down", "gafasvt" )
-
Era porque 'source' no era el argumento correto, era 'hitElement'. Copia el codigo de nuevo.
-
We don't accept requests here. Pay someone to do them for you or learn to script.
-
The problem has been solved.
-
No se puede usar un 'else' sin un 'if', y tu 'if' ya lo habias cerrado. warehouse_door2b = createObject ( 3037, 834.19921875, -2067.8994140625, 14.10000038147, 0, 0, 90 ) warehouse_door2b2 = createObject ( 3037, 839, -2067.8994140625, 14.10000038147, 0, 0, 90 ) MarkerOpen = createMarker ( 836.90002441406, -2064.6999511719, 12.89999961853, "corona",10, 127, 127, 127, 0 ) MarkerClose = createMarker ( 835.70001220703, -2070.6000976563, 12.89999961853,"corona",10, 127, 127, 127, 0 ) function abrir ( hitElement ) if ( getTeamName ( getPlayerTeam ( hitElement ) ) == "Elite" ) then moveObject ( warehouse_door2b, 3037, 834.20001220703, -2067.8999023438, 9.6000003814697 ) moveObject ( warehouse_door2b2, 3037, 839, -2067.8999023438, 9.6000003814697 ) outputChatBox ( "Bienvenido " .. getPlayerName ( hitElement ).." a la base Elite", hitElement ) else outputChatBox ( "Acceso Denegado. Usted no es una fuerza Elite. Contacta a GhostRiden", hitElement ) end end addEventHandler ( "onMarkerHit", MarkerOpen, abrir ) function cerrar ( hitElement ) if ( getTeamName ( getPlayerTeam ( hitElement ) ) == "Elite" ) then moveObject ( warehouse_door2b, 3037, 834.19921875, -2067.8994140625, 14.10000038147 ) moveObject ( warehouse_door2b2, 3037, 839, -2067.8994140625, 14.10000038147 ) end end addEventHandler ( "onMarkerHit", MarkerClose, cerrar )
-
dbConnect dbExec dbQuery dbPoll dbFree These are the MySQL functions, click on each one and read the syntax. They all have examples.
-
That is because you put: guiEditSetMaxLenght Instead of: guiEditSetMaxLength
-
function carColor ( thePlayer ) local playerTeam = getPlayerTeam ( thePlayer ) if ( playerTeam ) then setVehicleColor ( source, getTeamColor ( playerTeam ) ) end end addEventHandler ( "onVehicleEnter", root, carColor )
-
So, you expect us to guess what your problem is? tell us what is wrong with it.
-
Has to be something on your side, because I just copied your client script and worked.
-
addEventHandler ( 'onClientGUIClick', button, function ( ) setElementPosition ( localPlayer, 1679.3029785156, 1446.3712158203, 11.043098449707 ) outputChatBox ( "Button clicked" ) end ) See what it outputs to chat.
-
Ok, I uploaded it with the function: getLevelData, you can find what it does here: https://wiki.multitheftauto.com/wiki/Resource:Exp_system
-
The problem is already solved.
-
Well, I'm using the new version and works perfectly.
-
https://community.multitheftauto.com/ind ... ils&id=298 Podes usar ese que no esta restringido a los Admines nada mas.
