Jump to content

FraN-724

Members
  • Posts

    438
  • Joined

  • Last visited

Everything posted by FraN-724

  1. Prueba Así Vehicles = { [420]=true } Skins = { [303] =true function enterVehicle ( player, seat, jacked ) if ( Vehicles [getElementModel ( source )] ) and ( not Skins [getElementModel ( player )] ) and ( seat == 0 ) then cancelEvent() outputChatBox ( "Tu no eres taxista.", player , 255, 0, 0) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )
  2. Guíate por este resource, lo editas a tu gusto, o si quieres lo dejas así. https://community.multitheftauto.com/index.php?p=resources&s=details&id=4400
  3. Podrías guiarte desde este resource https://community.multitheftauto.com/index.php?p=resources&s=details&id=5722
  4. Ok. ped = createPed ( 246, 105.78847503662, 1026.4443359375, 15.755365371704 ) --los primeros números son la id del skin para el ped, luego viene las posiciones X, Y, Z Espero que te sirva
  5. para crear un ped utiliza createPed
  6. Perdón pero, cual es el problema ?
  7. FraN-724

    Ayuda

    Pues también podrías pegarte el empeño y aprender tu, aquí te dejare donde podrías aprender https://wiki.multitheftauto.com/wiki/Main_Page
  8. Tienes que usar las fonts que vienen por default en MTA
  9. No, En las que dicen algo así teamHeaderFont = "clear" contentFont = "default-bold" columnFont = "default-bold" serverInfoFont = "default"
  10. Buen vídeo pero esos maps los haces tú o los descargas ?
  11. Le cambias las letras en dxscoreboard_client
  12. Para que se te haga del mismo team Podrías usar esta función ( no estoy muy seguro ) setBotTeam
  13. Si quieres crear un cuadrado en el mapa usa createRadarArea
  14. FraN-724

    Ayuda BOSS

    Que raro porque ami si me anda. A ver postea el meta
  15. FraN-724

    Ayuda BOSS

    Prueba Así local colshape = createColRectangle ( 103.88594818115, 1302.0729980469, 220, 200 ) -- estas son las coordenadas donde se va a crear el boss para cambiarlas solamente copien la posicion x e y de su admin panel zombiesMatados = 0 function zona ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 1 ) then if ( not isElement ( slothbot1 ) ) then slothbot1 = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random(300, 303), 0, 0, ex, 38, "hunting", true ) myBlip = createBlipAttachedTo ( slothbot1, 23 ) end end end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona ) function restartear ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = 0 end end addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted",getRootElement(), restartear ) function high() local model = getElementModel(slothbot1) if setElementModel(model, 300 ) then exports.extra_health:setElementExtraHealth(solthbot1, 1000) outputChatBox("[bOSS]:Boss high spawned", 155, 155, 155) end end addEvent("onBotSpawn", true) addEventHandler("onBotSpawn",getRootElement(),high) function medium() local model2 = getElementModel(slothbot1) if setElementModel(model2, 301) then exports.extra_health:setElementExtraHealth(solthbot1, 7500) outputChatBox("[bOSS]:Boos medium spawned", 155, 155, 155) end end addEvent("onBotSpawn", true) addEventHandler("onBotSpawn",getRootElement(),medium) function low() local model3 = getElementModel(slothbot1) if setElementModel(model3, 303) then exports.extra_health:setElementExtraHealth(solthbot1, 5000) outputChatBox("[bOSS]:Boos low spawned", 155, 155, 155) end end addEvent("onBotSpawn", true) addEventHandler("onBotSpawn",getRootElement(),low)
  16. FraN-724

    Ayuda BOSS

    Y cual se supone que es el problema, no aparece? o que ?
  17. Oh perdón, equivocación mía, Lo Siento.
  18. Si es así podrías usar createPickup getPlayerMoney setElementData getElementData givePlayerMoney
  19. No entiendo, que no te deja en el suelo, el dinero cuando matas a un player o cuando creas dinero para agarrarlo ?
  20. Prueba Así function consoleCreateMarker ( playerSource, commandName ) if ( playerSource ) then local x, y, z = getElementPosition ( playerSource ) local marker = createMarker ( x, y, z, 0, "checkpoint", 255, 0, 0, 255 ) outputChatBox ( "You got a red marker", playerSource ) end end addCommandHandler ( "vallejo", consoleCreateMarker )
  21. addCommandHandler Para crear el marker Y no estoy muy seguro si es esta function para cuando te pares en un marker te aparesca la gui guiSetVisible
×
×
  • Create New...