Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. hahaahaha, que hdp The Kid
  2. There was a topic about this, just search for it.
  3. lol, yeah i was wondering why he has done all those events.
  4. Castillo

    Music

    I would say, "get lost" but this is something easy so i will tell you. addEventHandler ( "onClientResourceStart",getResourceRootElement(getThisResource()), function ( ) playSound ( 'mysong.mp3' , true) end )
  5. Ni idea, no entiendo porque no se habrian creado las tablas o,o
  6. Es donde el recurso guarda las cosas de los jugadores, tipo: cuantas veces gano, etc.
  7. if i'am right, you can't pass the object like that, but maybe you could set a ID to the object.
  8. Parece que las tablas de sqlite se han creado mal.
  9. Uhm... para eso porque no usas el recurso "slothbot" y los creas agresivos?
  10. And? does it work? any errors?
  11. I would recommend using DX drawing for this. https://wiki.multitheftauto.com/wiki/DxDrawImage
  12. Sounds like that fixed the issue, thanks again The Kid.
  13. No estoy seguro pero, no hay alguna forma para hacer que los objetos sean indestructibles? (capaz me equivoco) y para los vehiculos podes usar respawnVehicle para recrearlos de nuevo. https://wiki.multitheftauto.com/wiki/RespawnVehicle
  14. Lol, this is the worst begging topic i ever seen.. dude, we don't accept request, you must script it by yourself.
  15. -- Serverside function komendavs ( ) local sourcePl = getPlayerFromName ( source ) local veh = getPedOccupiedVehicle ( sourcePl ) setElementPosition ( veh, 0, 0, 0 ) outputChatBox ( getPlayerName ( sourcePl ) ) triggerClientEvent ( "onImie1", sourcePl ) end addCommandHandler ( "vs", komendavs ) -- Clientside playersList = "" function imie1() for i,v in pairs(getElementsByType("player")) do playersList = playersList .. " " .. getPlayerName(v) end addEventHandler("onClientRender",getRootElement(),imie2) end addEvent ( "onImie1", true ) addEventHandler ( "onImie1", root, imie1 ) function imie2 ( ) dxDrawText ( tostring(playersList), dlug/2-dlug/4.8+dlug/11.52,wys/2-wys/3+wys/35,dlug,wys, tocolor ( 255, 255, 255, 255 ), 1.8, "clear" ) end Try this (not tested)
  16. As far as i know it's not possible, but maybe you could create it for every player.
  17. Castillo

    Server list spam

    TAPL, you should rename your server and remove all those tags.
  18. If you mean replace the vehicle models/textures, then go to this link: https://wiki.multitheftauto.com/wiki/Cli ... _functions
  19. No que yo sepa, yo lo use en mi servidor de scripteo (local) y funciona bien.
  20. You could start the "interiors" resource, that will make some buildings enter-able.
  21. Could someone tell me how to fix this issue?
  22. Castillo

    Alpha Set :D

    Any errors? i'm lazy right now.
  23. function createTheGate () myGate = createObject( 988, 96.722534179688, 1920.3703613281, 18.158107757568, 0, 0, 270 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate (player, command ) team = getPlayerTeam(player) if team then if (getTeamName() == "Army") then moveObject( myGate, 5000, 96.722534179688, 1915.8951416016, 18.158107757568 ) outputChatBox(""..getPlayerName(player).." opened the Armybase", 255, 255, 0, true) end end end addCommandHandler("armyo",openMyGate) function movingMyGateBack (player, command) team = getPlayerTeam(player) if team then if (getTeamName() == "Army") then moveObject( myGate, 5000, 96.722534179688, 1920.3703613281, 18.158107757568 ) outputChatBox(""..getPlayerName(player).." closed the Armybase", 255, 255, 0, true) end end end addCommandHandler("armyc", movingMyGateBack)
  24. A label can't have two colors.
  25. There is no way of doing this, but you could make a converter from R, G, B to HEX maybe.
×
×
  • Create New...