Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Hi there, i have downloaded all the ped image's here is the link to them: http://www.mediafire.com/?0gbi2aicm30ekf2
  2. Castillo

    one question

    Proracer, you ever say the same
  3. O,o, you copied me? i said that in another topic ^^
  4. With: function getSkillFunc(player,Levelids) if ( Levelids ) then local skillsID = tonumber( Levelids ) triggerClientEvent(player, "selectSkill", getRootElement() ,skillsID) return true else return false end end And this: addEvent("selectSkill",true) addEventHandler( "selectSkill", getRootElement(), function(skillsID) if (tonumber(skillsID)) then guiGridListSetItemText(GUIEditor_Grid[211],tonumber(skillsID),5,"purchased",false,false) guiGridListSetItemColor (GUIEditor_Grid[211],tonumber(skillsID),5,0,255,0) outputChatBox("text change "..tonumber(skillsID)) end end ) it works perfectly, take a look at this screenshot. http://img855.imageshack.us/i/mtascreen ... 82115.png/
  5. Castillo

    one question

    Omg, proracer, i can't really understand how you did such thing... function lockcar ( ) local x = -682.4951171875 local y = 952.8115234375 local z = 12.1328125 myVehicle = createVehicle ( 432, x, y, z ) setElementData ( myVehicle, "owner", 'kimmis9' ) end addEventHandler ( 'onClientResourceStart', getResourceRootElement(getThisResource()), lockcar )
  6. Do you have the resource named "scoreboard"?
  7. Yup, Interstate 69 it was a game, i used to play it when i was a young P.S: Welcome to the MTA! we all hope you will have as much fun as you are looking for.
  8. To make this possible you need to create an script, but firstly you will have to learn how to do it. Take a look at this page, it is really usefull. https://wiki.multitheftauto.com/wiki/Scr ... troduction
  9. As far as i know, there's nothing like this.
  10. I don't understand your question, could you explain yourself.
  11. Bueno, de nada. No entiendo porque tiene ese error, decis que solo en algunos servidores?
  12. Hi stefan, i don't like your "Suggestion", this way everyone could just download MTA and get a Roleplay/Stunt server without need to learn how to script. P.S: Can't you use map editor and create your maps?
  13. I would like to know what should that function do, we're talking about getSkillFunc. I ask that because, what i seen makes totally no sense for me.
  14. Castillo

    One question

    I can, but that doesn't means i will
  15. The source of this event is the vehicle that got damaged. You are using thePlayer instead of source. function damage1 (loss) h = getElementHealth ( source ) setElementHealth ( source, h-10 ) end addEventHandler( "onVehicleDamage", root, damage1 )
  16. There isn't any mission resource as far as i know.
  17. Castillo

    One question

    I have no idea where you want to use it, but this it is working. I have tested it myself. http://img824.imageshack.us/i/mtascreen ... 22724.png/
  18. Correct your topic tittle or your post, in title it says 8 E and in post says 10 E.
  19. Pues, el admin panel no tiene nada quever, esto quiere decir que otro recurso lo esta haciendo, intenta parar todos los recursos y luego los vas iniciando de a UNO por vez.
  20. Excuse me, Tony, but this is an English forum, use English only on this section.
  21. Castillo

    timer?

    120000 = two minutes in milliseconds, and now go and try the code
  22. Castillo

    timer?

    I'am whatever you say, but i had to learn to be like i'am right now. i will give you the code, but it is the last time. --client side function checkMoney() if guiGetVisible(ScreenLocked) then -- We check if the window is visible. triggerServerEvent("take_money",getLocalPlayer()) -- it uses to make bugs with client side take money function. end end setTimer(checkMoney,120000,0) --server side addEvent("take_money",true) addEventHandler("take_money",getRootElement(), function () local money = getPlayerMoney(source) -- We get the player money. if not money >= 0 then -- We check if the player money is below or equal to 0. setPlayerMoney(source,tonumber(money)-1) -- We set the player's money -1 else -- We output a message to the player telling him his money is 0. outputChatBox("Your money is 0!",source,255,0,0) end end)
  23. use guiSetInputEnabled(false)
  24. Castillo

    timer?

    Well, maybe it is time to learn? try it harder, it is very easy.
×
×
  • Create New...