Jump to content

WhoAmI

Members
  • Posts

    1,248
  • Joined

  • Last visited

Everything posted by WhoAmI

  1. WhoAmI

    On playSound

    Yea. But, it will check only first "file" child. Not all. If you know what I mean. If first "file" child won't be a song, script won't search for another one.
  2. WhoAmI

    On playSound

    Shouldn't it looks like this? xmlNodeSetAttribute(child,"download","false") I changed song to child. And what if there is another file which is mentioned in meta? I prefer to loop through all "file" childrens. Not only one. You have to save file and unload it after editing.
  3. WhoAmI

    On playSound

    You have to change meta of all maps I guess. Don't know if there is another way to do that. I can be wrong if course.
  4. Updated. https://community.multitheftauto.com/index.php?p= ... s&id=11268 Configuration file Whole script have been re-written. I tried using as much OOP as I can. Please report bugs. Have fun.
  5. Store it in table. Or make the table, put there this 30 information and save the table to player using element data.
  6. Not always. RGBA is also converted to HEX, not only RGB.
  7. Well yea, I thought that this alpha value is at the end (RRGGBBAA), now i know that it is at the beginning (AARRGGBB).
  8. https://wiki.multitheftauto.com/wiki/Slothman/Slothbot
  9. Hello. What type of color code should be in NormalTextColour property? Right now i use this guiSetProperty ( gui.edit[5], "NormalTextColour", "bfbfbf00" ) But it stays white. Should be grey.
  10. setTimer( function() if not getRunningGamemodeMap() then --Lets check if there are any maps for this gamemode local maps = getMapsCompatibleWithGamemode(getRunningGamemode()) --If we have any, we'll start a random one if #maps > 0 then changeGamemodeMap (maps[math.random(1,#maps)]) end end end, 50, 1 ) To musisz przerobić.
  11. WhoAmI

    need help

    Well, trains doesn't have collision by themselfs - but I'm not sure. Just create colshape (createColShphere), attach it to the train and write function whick kills player when he hits the colshape attached to "onColShapeHit" event.
  12. Damn! I was just waiting for you to release this!
  13. Creating the table would be better idea. timers = {} timers[player] = setTimer ( ... )
  14. Because you are using this functions server side, and you change global variable there, so it will affect to whole server. Save timer to player using ElementData or table.
  15. Just create the vehicle using createVehicle and apply texture to it.
  16. Create timer when player enters a marker. When he will leave it, just kill this timer.
  17. If I may interrupt... Resto, will be better for you If you try do it by yourself. Just try to create some code. If it doesn't work - no problem, we will help you. We just want to try learning you some things. Cheers.
  18. Well, yea. You just added unnecessary condition ('if'). In both cases it draws same thing.
  19. You changed nothing in my code.
  20. So call function after hitting the pickup, lol.
  21. Maybe after changing the map call this function?
  22. WhoAmI

    need help

    addEventHandler("onPlayerDamage", root, function(attacker) if (isElement(attacker) and getElementType(attacker) == "vehicle") then if (getElementModel(attacker) == vehicleID) then -- change it to your vehicle id killPed(source) end end end)
  23. WhoAmI

    need help

    It has to work. Any errors in debugscript3?
  24. WhoAmI

    need help

    Post your code.
×
×
  • Create New...