Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Everything posted by Dimos7

  1. createObject -- find the model for c4 bomb setTimer -- put a timer to desotry the object createExplosion
  2. Dimos7

    GUI functions

    I suggest you to make one table have all dataitem
  3. You want it for gui text or something?
  4. Dimos7

    F11 map texture

    dxCreateTexture dxDrawImage dxCreateRenderTarget dxSetRenderTarget dxGetMaterialSize
  5. guiSetText(GUIEditor.label[2],"Level ".. getElementData(localPlayer, "level")) Like this
  6. np ofc that is only for spawn at one hospital but you can do the same for other hospitals too
  7. local Hospitals = {2034.9428710938,-1403.2003173828, 18, -2655.3991699219 ,638.16137695313, 15, -1514.6713867188 ,2522.4748535156, 56, 1607.62890625 , 1818.9958496094 , 11, -2198.5632324219, -2306.6220703125, 31, } function spawnNearHospital() for _, v in ipairs(Hospitals) do local x, y, z = getElementPosition(source) if getDistanceBetweenPoints3D(x, y, z, v[1], v[2], v[3]) < getDistanceBetweenPoints3D(x, y, z, v[4], v[5] , v[6]) < getDistanceBetweenPoints3D(x, y, z, v[7], v[8] , v[9]) < getDistanceBetweenPoints3D(x, y, z, v[10], v[11], v[12]) < getDistanceBetweenPoints3D(x, y, z, v[13], v[14], v[15]) then spawnPlayer(source, v[1], v[2], v[3]) end end end addEventHandler("onPlayerWasted", root, spawnNearHospital) something like this
  8. as i tell you need a table with all hospital location that all
  9. you can ask to your native language if you want more help
  10. Well first create a table with all hospital locations then takes the location of player died and use to get where is closer take a loop for all hospitals and put > to check which is closer getDistanceBetweenPoints3D
  11. Then i Guess you can use and take splane position dxDrawText getPedBonePosition
  12. i guess with photoshop or something like this maybe
  13. onMarkerHit 2 argument need the marker not player
  14. For cj cloths and part use this dxCreateShader dxCreateTexture dxSetShaderValue engineApplyShaderToWorldTexture
  15. do something like this and onPlayerMessage to see if works
  16. local blockedPlayers = {} function getPlayerFromPatrialName(name) local name = name and name:gsub("#%x%x%x%x%X%x", ""):lower() or nil if name then for _ , player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end addEventHandler("onClientMessage", root, function() if blockedPlayers[source] then cancelEvent() outputChatBox(getPlayerName(source).." wrote something in chat, but you block him!") end end ) function block(cmd, target) local targetPlayer = getPlayerFromPatrialName(target) if target and targetPlayer then if not blockedPlayers[targetPlayer] then blockedPlayers[targetPlayer] = true outputChatBox("player "..getPlayerName(targetPlayer).. " blocked") else blockedPlayers[targetPlayer] = nil outputChatBox("player ".. getPlayerName(targetPlayer).." unblocked") end else outputChatBox("Player not found!") end end addCommandHandler("block", block) <meta> <script src="namefile.lua" type="client"/> </meta>
  17. local blockedPlayers = {} function getPlayerFromPatrialName(name) local name = name and name:gsub("#%x%x%x%x%X%x", ""):lower() or nil if name then for _ , player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end addEventHandler("onClientMessage", root, function() if blockedPlayers[source] then cancelEvent() outputChatBox(getPlayerName(source).." wrote something in chat, but you block him!") end end ) function block(cmd, target) local targetPlayer = getPlayerFromPatrialName(target) if target and targetPlayer then if not blockedPlayers[targetPlayer] then blockedPlayer[targetPlayer] = true outputChatBox("player "..getPlayerName(targetPlayer).. "blocked") else blockedPlayers[targetPlayer] = nil outputChatBox("player ".. getPlayerName(targetPlayer).." unblocked") end else outputChatBox("Player not found!") end end addCommandHandler("block", block)
  18. Dimos7

    Help !!!

    Lower the 3rd argument
  19. wired you are sure have it in mtaa folder resource also trtied to restart the resource after change it?
×
×
  • Create New...