Jump to content

WASSIm.

Members
  • Posts

    1,411
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. 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)
  2. cuz then if client side will working only for localPlayer getPlayerMoney givePlayerMoney takePlayerMoney
  3. guiCreateGridList guiGridListAddColumn getElementsByType guiGridListAddRow guiGridListSetItemText getPlayerName --To get player name on list guiGridListGetItemText guiGridListGetSelectedItem
  4. --Event onClientGUIClick --Client guiCreateWindow guiCreateEdit guiCreateButton guiGetText triggerServerEvent --Server getPlayerMoney givePlayerMoney takePlayerMoney
  5. 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 )
  6. 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)
  7. WASSIm.

    Problem

    thank you its work
  8. WASSIm.

    Problem

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

    Problem

    sry i don't understand
  10. 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)
  11. Original: https://community.multitheftauto.com/in ... ls&id=6334 https://community.multitheftauto.com/in ... ls&id=8617 Different scripts. -- Solidsnake14
  12. thank u. i have other question how make number exmple (-2029.6357442187) to (-2029.63)
  13. hi guys i have question. how make string like ("-2035,148,28") to x, y, z
  14. 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
  15. download last resources version https://mtasa-resources.googlecode.com/ ... s-r987.zip
  16. u have wrongs on script hay.lua
  17. 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 )
×
×
  • Create New...