-
Posts
122 -
Joined
-
Last visited
Everything posted by John_Scott
-
Hi! I have a problem: When i walking, or driving in Los Santos, the game plays shooting sound effencts. The players say, this is very annoying, they think, anyone shoot they. How i can stop this sound effects? Thanks for help!
-
Well, the script should work... I put some comments in the code. addEventHandler("onPlayerDamage", getRootElement(), function(attacker, weapon, body, loss) if not (attacker == source) then local attackAccount = getPlayerAccount(attacker) local sourceAccount = getPlayerAccount(source) if not isGuestAccount(sourceAccount) then if not isGuestAccount(attackAccount) then setAccountData(attackAccount, "antideslog", false) setTimer(function() for i, v in ipairs(getElementsByType("player"))do -- check if the player still connected in the server if v == attacker then setAccountData(attackAccount, "antideslog", true) -- The attacker is not in combat anymore after 1 min end end end, 60000, 1) end setAccountData(sourceAccount, "antideslog", false) setTimer(function() for i, v in ipairs(getElementsByType("player"))do -- check if the player still connected in the server if v == source then setAccountData(sourceAccount, "antideslog", true) -- The player who receive the shot is not in combat anymore after 1 min end end end, 60000, 1) end -- They are now in combat. end end) addEventHandler("onPlayerLogin", getRootElement(), function(previous, current, autologin) if current then local data = getAccountData(current, "antideslog") if (data == true) then -- ok, he can play elseif(data == false)then -- ban the player setAccountData(current, "antideslog", true) banPlayer(source) else end end end) Many thanks!
-
I think I understand what you are looking for: addEventHandler("onPlayerDamage", getRootElement(), function(attacker, weapon, body, loss) if (attacker ~= source) then local attackAccount = getPlayerAccount(attacker) local sourceAccount = getPlayerAccount(source) if not isGuestAccount(attackAccount) then if not isGuestAccount(sourceAccount) then setAccountData(attackAccount, "antideslog", false) setTimer(function() for i, v in ipairs(getElementsByType("player"))do if v == attacker then setAccountData(attackAccount, "antideslog", true) end end end, 60000, 1) end setAccountData(sourceAccount, "antideslog", false) setTimer(function() for i, v in ipairs(getElementsByType("player"))do if v == source then setAccountData(sourceAccount, "antideslog", true) end end end, 60000, 1) end end end) addEventHandler("onPlayerLogin", getRootElement(), function(previous, current, autologin) if current then local data = getAccountData(current, "antideslog") if (data == true) then -- ok, he can play elseif(data == false)then -- ban the player setAccountData(current, "antideslog", true) banPlayer(source) else end end end) Oh sorry, i can't scripting too good, and this code not working you would do me, write messages, where put In combat, where put OUT combat and etc...
-
I want to warning the player, not ban forever, but i just would like a base script
-
Yes, when player logging out in combat, the script ban he for 1 day
-
Hello! I have a DayZ szerver, and i see some player has log out when other player shoot he. I would like to found a Anti Combat Logout system. How i imagine this? When the player get shoot, the system put he to Combat state. When the player logout in this, the system ban he to 1day. The combat state lasts 1 minute and not activate to hiting and falling. Anybody can write this? Please help me and my server whit this resource. Thanks!
-
Hello! I would like to write some script to my DayZ server, and i would like to use Dayz's inventory to add player reward or remove item from player, possibly save player's inventory. My question is, how i can get player inventory content? I can add item to player, but i can't remove from thence. Thanks for help!
-
Hi! I would like to change some item's name in DayZ Mod, but when i change in ALL lua files the "ITEM_NAME" text, in the game the item not show... I use only ANSI characters, and i change only item names between ", but not working. How i can translate the mod's item's names? Thanks for help!
-
Hello! I design to start a DayZ MTA server coming soon, and when i browse DayZ resourves for MTA i look situation characters in some picture. My question: Which resource this? How i can situation in DayZ? Base function, or really resource? Thanks for help!
-
Hello! I would like to translating the DayZ mod, but when i download and open with Notepad++ i get strange text. I thing the lua_dayz files is coded, but how i can decode these? Thanks for help!
-
Hi! How i can hide in race mod the player names? Thanks for help!
-
I type /refreshall to console and afte this i try the /report and it's show the original label texts.
-
I watch the admin_report.lua file in FTP, and this is the edited version. The server is not give reaction after the /refreshall command.
-
No not working! The original text remaing adter edit I try edit the admin_report.lua in more location, but not fixed it...
-
Problem If is edit this file, in the server not amended
-
Hi! I find the report resource in my server, after type /report. I want edit this resource, but i don't find the resource's location. Can you help me? Thanks!
-
Please remove this: https://community.multitheftauto.com/index.php?p= ... ls&id=6265 DONE
-
Hi! I want know, how i can remove one of my scripts from Community? Thanks!
-
No the wiki, the community.multitheftauto.com
-
Alreready successed solve the problem. Thanks!
-
Hi! I see the Hungaryan version of MTA Community web page, and i think the translation is quite deficient. I good like to ask, where i can help to translate this to Hungaryan?
-
I added the font.ttf to meta.xml. I use Windows 7 Ultimate x64
-
I set the custom text style on my spwctatort script and the server write an eror to this line: dxDrawText (s_Spectators, 10, textY, x, y, tocolor(255, 255, 255, 255), 0.6, myFont, 'left', 'top', false, false, false, true) The "myFont" lne: local myFont = dxCreateFont( "font.ttf", 24) Error: What can i do? Thanks for help!