Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. That error means (i think) you have an outdated script file, in this case your script where your code is.
  2. I think he's using SQLITE not mySQL.
  3. function createTheGate () myGate = createObject( 988, 96.722534179688, 1920.3703613281, 18.158107757568, 0, 0, 270 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate (player, command ) if (getTeamName(getPlayerTeam(thePlayer)) == "Army") then moveObject( myGate, 5000, 96.722534179688, 1915.8951416016, 18.158107757568 ) outputChatBox(""..getPlayerName(player).." opened the Armybase", 255, 255, 0, true) end addCommandHandler("armyo",openMyGate) function movingMyGateBack () if (getTeamName(getPlayerTeam(thePlayer)) == "Army") then moveObject( myGate, 5000, 96.722534179688, 1920.3703613281, 18.158107757568 ) outputChatBox(""..getPlayerName(player).." closed the Armybase", 255, 255, 0, true) end addCommandHandler("armyc", movingMyGateBack)
  4. Do you have the required tables and columns?
  5. Thanks The Kid. Edit: It doesn't work, everything it's messed now
  6. 1024 * 768
  7. Hi everyone, i'm having some problems with the DX drawing functions and the resolution, well, the problem is that i see them in right position, but the other players doesn't because they are using a lower resolution than mine. local sWidth,sHeight = guiGetScreenSize() dxDrawText("LEVEL:",sWidth-270, sHeight-1080/2, sWidth-292, sHeight-2/2,tocolor(255,255,0,255),1.5,"default","left","top",false,false,false) If someone could help me to make them work right for every resolution i would appreciate it. Thanks in advance.
  8. You can disable them from the Admin panel on "settings" list of the freeroam resource.
  9. What gamemode are you using?
  10. and that if i'm right, it will add a column every time a resource is started. addEventHandler ( "onClientResourceStart", getRootElement(), function (resource) if resource == getThisResource() then exports.scoreboard:scoreboardAddColumn ( "FPS" ) setElementData ( getLocalPlayer ( ), "FPS", 0 ) end end )
  11. proracer, you are adding a column every time a player joins o_o
  12. Offer $$$$$$$ and someone will think twice before say NO
  13. I don't think it exist an element data for that o_O, but you could do it by yourself easily
  14. Did you added the image at the meta.xml also?
  15. Castillo

    Ayuda

    Yo The Kid? o Guillermo?
  16. Castillo

    Ayuda

    Le entendiste mal The Kid, el quiere saber como cambiar los modelos/texturas que yo sepa. Guillemo: en MTA solo se puede cambiar los modelos/texturas de los vehiculos, de las armas no se les puede cambiar los modelos, igualmente con los skins.
  17. Oh, i suposed the uploader was the same guy as the other.
  18. I'm wondering, how do you use this function? how do you execute it?
  19. elseif (skin == id) then that way if i'm right.
  20. volk-rus, what's the problem with that resource?
  21. Please, i ask to everyone to stop giving him the code, you must do this yourself. use setElementModel
  22. It does work, you are doing it wrong, if i'm right getPlayerTeam returns an element and to get the team name you must use getTeamName, so would be. function detectorDetect(thePlayer) outputChatBox("HIT") if ( getTeamName(getPlayerTeam(thePlayer)) == "Admins")then outputChatBox("Welcome!", thePlayer, 0, 255, 0) else setElementPosition(thePlayer, 247, 1833, 5) setElementRotation(thePlayer, 269) outputChatBox("You are not allowed to come here!", thePlayer, 255, 0, 0) end end addEventHandler("onColShapeHit", detector, detectorDetect)
  23. function giveWeaponPeds( thePlayer, commandName, weapon, ammo ) if (weapon and ammo) then for k,i in ipairs ( getElementsByType( "ped" ) )do giveWeapon ( i, weapon, ammo, true ) end else outputChatBox("/wpeds [weaponID] [ammos]", thePlayer ) end end addCommandHandler( "wpeds", giveWeaponPeds, false, false )
  24. Excuse me? even if they helped you, why you ask it like that? you could try to make it yourself first, and if you can't then ask it nicely.
  25. I'm not his teacher and he doesn't pay me. I tryied it few times but he didn't wanted to learn so i leaved it.
×
×
  • Create New...