Jump to content

WASSIm.

Members
  • Posts

    1,412
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. you mean change weapon sound ?
  2. local thePlayer = getLocalPlayer () local x, y, z = getElementPosition(thePlayer) local markerA = createMarker(x, y+3, z, "cylinder", 2, 255, 2, 0, 170) function makae (hitElement) if hitElement == thePlayer then markerB = createMarker(x,y + 6,z, "cylinder", 2, 255, 2, 0, 170) end end addEventHandler("onClientMarkerHit", markerA, makae) function giga (hitElement) if hitElement == thePlayer then setElementHealth(thePlayer, 20) end end addEventHandler("onClientMarkerHit", markerB, giga)
  3. No problem
  4. cuz then if client side will working only for localPlayer getPlayerMoney givePlayerMoney takePlayerMoney
  5. guiCreateGridList guiGridListAddColumn getElementsByType guiGridListAddRow guiGridListSetItemText getPlayerName --To get player name on list guiGridListGetItemText guiGridListGetSelectedItem
  6. --Event onClientGUIClick --Client guiCreateWindow guiCreateEdit guiCreateButton guiGetText triggerServerEvent --Server getPlayerMoney givePlayerMoney takePlayerMoney
  7. WASSIm.

    sounds

    yeah you can use playSound3D or playSound EXMPLE playSound3D addEventHandler( 'onClientResourceStart', resourceRoot, function( ) local uSound = playSound3D( 'http://193.34.51.25:80', 2498, -1659, 12 ) setSoundMaxDistance( uSound, 100 ) end )
  8. WASSIm.

    AFK script

    try this. but make it server side is better function afkCommand( ) if (isPedOnGround(localPlayer)) then if (getElementDimension(localPlayer) < 10) then outputChatBox("You will be AFK in 5 seconds", 255, 255, 255) setTimer(function () setElementDimension(localPlayer, math.random(10 - 1000)) setElementFrozen(localPlayer, true) end, 5000, 1) elseif (getElementDimension(localPlayer) >= 10) then outputChatBox("You will be returned to the main dimension in 5 seconds", 255, 255, 255) setTimer(function () setElementDimension(localPlayer, 0) setElementFrozen(localPlayer, false) end, 5000, 1) end else outputChatBox("You must be on foot to use this command.", 255, 255, 255) end end addCommandHandler("afk", afkCommand)
  9. WASSIm.

    Problem

    thank you its work
  10. WASSIm.

    Problem

    ID INTEGER PRIMARY KEY, groupName TEXT, memberName TEXT, memberAccount TEXT, memberLevel INT, memberWL INT, memberLastOn TEXT, memberJoinedOn TEXT
  11. WASSIm.

    Problem

    BUMP
  12. WASSIm.

    Problem

    sry i don't understand
  13. WASSIm.

    Problem

    hi guys i have problem its show me on memberCount "N/A" Server addEvent("onPlayerOpenGroupsList", true) addEventHandler("onPlayerOpenGroupsList", root, function ( ) local getGroups = exports["server"]:dbQueryZA("SELECT * FROM groups") local getMembers = exports["server"]:dbQueryZA("SELECT * FROM groupMembers") triggerClientEvent(source, "onClientPlayerOpenGroupsList", source, getGroups, getMembers) end) Client addEvent("onClientPlayerOpenGroupsList", true) addEventHandler("onClientPlayerOpenGroupsList", root, function (groups, members) guiSetVisible(GUIGroup.window[1], true) guiBringToFront(GUIGroup.window[1]) guiGridListClear(GUIGroup.gridlist[1]) for i, group in ipairs(groups) do local groupName = group["groupName"] or "N/A" local memberCount = members[groupName] or "N/A" local row = guiGridListAddRow(GUIGroup.gridlist[1]) guiGridListSetItemText(GUIGroup.gridlist[1], row, 1, tostring(groupName), false, false) guiGridListSetItemText(GUIGroup.gridlist[1], row, 2, tostring(memberCount), false, false) end end)
  14. Original: https://community.multitheftauto.com/in ... ls&id=6334 https://community.multitheftauto.com/in ... ls&id=8617 Different scripts. -- Solidsnake14
  15. onClientResourceStart
  16. thank u. i have other question how make number exmple (-2029.6357442187) to (-2029.63)
  17. hi guys i have question. how make string like ("-2035,148,28") to x, y, z
  18. you can make like this function drawText() -- draw text dxDrawText("You have successfully bought a vehicle!", 92, 158, 720, 195, tocolor(65, 205, 4, 255), 1.40, "pricedown", "left", "top", false, false, true, false, false) addEventHandler("onClientRender", root, drawText) setTimer (removeEventHandler, 5000, 1, "onClientRender", getRootElement(), drawText) -- remove text OR use Textdisplay
  19. You're Welcome
  20. download last resources version https://mtasa-resources.googlecode.com/ ... s-r987.zip
  21. u have wrongs on script hay.lua
  22. WASSIm.

    zombies zone

    function teste() for i=1,50 do exports [ "zombiegamemode" ]:createZombie(-1095.76440+math.random(-4,30),-984.83356+math.random(-4,50),129.2187) end end addEventHandler ( "onResourceStart", getRootElement(), teste ) addEventHandler("onZombieWasted",root, function() if not (ZombieKills) then if (ZombieKills >= 30) then teste () end ZombieKills = ZombieKills+1 else ZombieKills = 1 end end )
  23. WASSIm.

    zombies zone

    look at line 18
  24. finally working thanks
×
×
  • Create New...