Jump to content

barnik

Members
  • Posts

    2
  • Joined

  • Last visited

barnik's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. function DataOutput(thePlayer, account) local accountSource = getPlayerAccount ( thePlayer ) local smerti = getAccountData ( accountSource, "totalTable.Deaths" ) local ubiystva = getAccountData ( accountSource, "totalTable.Kills" ) local points = getAccountData ( accountSource, "totalTable.Points" ) outputChatBox("#FFA420[myStats] #00FFFFKills: ["..tostring(ubiystva).."] #FF0000|#00FFFF Deaths: ["..smerti.."] #FF0000|#00FFFF Points: ["..points.."] ", thePlayer, 255,255,255,true) end addCommandHandler ( "mystats", DataOutput ) Hi, can someone explain to me or show me how to bring murders, deaths and points into one table and dispose of them from one table? Later, I want to make a system of top players, according to these parameters, can you tell me where it is better to start? Thanks 0_o
  2. Hello everyone, I have a problem. When music is played (random), it is played to all users, but different, how to make it so that it is not different? Client.lua tablerand = { [1] = "soundsMM/1.mp3", [2] = "soundsMM/2.mp3", [3] = "soundsMM/3.mp3", [4] = "soundsMM/4.mp3", [5] = "soundsMM/5.mp3", [6] = "soundsMM/6.mp3", [7] = "soundsMM/7.mp3", [8] = "soundsMM/8.mp3", [9] = "soundsMM/9.mp3", [10] = "soundsMM/10.mp3", [11] = "soundsMM/11.mp3", [12] = "soundsMM/12.mp3", } resourceRoot = getResourceRootElement() addEvent("playSoundRound",true) addEventHandler("playSoundRound",resourceRoot, function () local RandTable = (tablerand[math.random(1,#tablerand)]) sound = playSound(RandTable,false) end) function SayChatik () local meta = getSoundMetaTags(sound) local art = 'Артист: ' local tag = '[Legends]' outputChatBox("[Legends] Artist(s) or track: "..meta.artist.." "..xuesosina1.."") end addEventHandler("onClientMapStopping",resourceRoot,SayChatik) server.lua function musicround(player) resourceRoot = getResourceRootElement() triggerClientEvent(root,"playSoundRound",resourceRoot) end addEventHandler ("onRoundFinish", root, musicround)
×
×
  • Create New...