Jump to content

IIYAMA

Moderators
  • Posts

    6,097
  • Joined

  • Last visited

  • Days Won

    218

Everything posted by IIYAMA

  1. IIYAMA

    hit

    local oulDNick = getElementData(player, "dono" ) local team = getPlayerTeam ( player ) setElementData (player, "dono", team and getTeamName ( team ) or "none" )
  2. try 999
  3. We don't make it for a lazy piggies. (not a joke)
  4. what the hell for function is this: isPlayerSuperAdmin ?
  5. np.
  6. langs = langs .. ", " .. l
  7. why triggerEvent ? why are you missing 2 end's?
  8. IIYAMA

    sleep() ?

    Lol lol lol, how many timers are you willing to make? local vehicleShopTable = {} local shopResetTimer -- functions -- local shopResetFunction --------------- addEventHandler("onResourceStart",resourceRoot, function () vehicleShopTable[#vehicleShopTable+1] = createVehicle(509, 698.6, -521.20, 16,0,0,225) vehicleShopTable[#vehicleShopTable+1] = createVehicle(481, 695.6, -521.20, 16,0,0,225) vehicleShopTable[#vehicleShopTable+1] = createVehicle(510, 692.6, -521.20, 16,0,0,225) shopResetTimer = setTimer (shopResetFunction ,900000,0) end) shopResetFunction = function () for i=1, #vehicleShopTable do respawnVehicle ( vehicleShopTable[i] ) end end
  9. so how to fix the code ! Learn lua pfff, setElementModel ( player, allSkins[math.random(#allSkins)] )
  10. btw what will this be? a userdata? can I check with this, if the one that did send it, is still in the server?
  11. it is as long the elementdata is set in the right way.
  12. well it doesn't matter if is a zip or a folder, it can be done that way.
  13. IIYAMA

    draw dx text

    np.
  14. IIYAMA

    draw dx text

    local levelTextColor = tocolor(0,255,0,255) local levelColor = tocolor(255,255,0,255) local function showLevel() local theLevel = getElementData(localPlayer, "Level") or 0 dxDrawText("Current Level:", x*0.78, y*0.46, 0, 0, levelTextColor, 3) dxDrawText("" ..theLevel, x*0.905, y*0.46, 0, 0, levelcolor, 3) end function HandleTheRendering ( ) addEventHandler("onClientRender", getRootElement(), showLevel) end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering) if it shows 0 then the level is 0 or the level haven't been set successfully. UPDATED AT 3-8-2013
  15. well I still prefer to use destroyElement, cause when a new player joins the server he will see the marker. In my opinion it is only a handy function when you just want to hide it for a single or a few players.
  16. I think so, it returns 0, why would it not return another value?
  17. with how many people are you racing?
  18. IIYAMA

    Help

    But you can overwrite it with lua.* addEventHandler( "onPlayerChat",root, function (msg,msgType) if msgType == 2 then outputChatBox(getPlayerName(source) .. " " .. msg,root,255,0,0) cancelEvent() end end) updated
  19. IIYAMA

    Help

    oh sorry, my bad. as far I know /me is already in mta. It isn't a resource.
  20. function getOtherPlaces(vehicle) local rank = exports["race"]:getPlayerRank(source) if rank then outputChatBox("Player rank: " .. rank) end end addEventHandler("onPlayerRaceWasted",getRootElement(),getOtherPlaces) Updated Reasons why it did not work: - non defined player, (source) - wrong event: onRacePlayerWasted > onPlayerRaceWasted - defined the vehicle as rank
  21. IIYAMA

    Help

    https://wiki.multitheftauto.com/wiki/DxDrawText
  22. Define source as argument isn't very smart. Source only gets created by events as solidsnake said. A addCommandHandler don't have any source if you using it. server side addCommandHanlder("test", function (player) end) -- VS -- addEventHandler("onPlayerWasted",root, function() local player = source end)
  23. well as far I know mta don't see a zip folder as a zip. He sees it simple as a folder, did you ever seen zip folders in your resource-cache ? no? cause they are unzipped. When you copie the files out of a zip folder, with the function: fileCopy and you put them in a new folder. (new folders,only possible at serverside) https://wiki.multitheftauto.com/wiki/FileCopy You are simply unzipping the folder.
  24. I give you a 3/5, for the low quality and unread able text. Also when you make a video like this, show us all the loops and when you should use them. Cause they all have their own ability's.
×
×
  • Create New...