Dentos
Members-
Posts
68 -
Joined
-
Last visited
Everything posted by Dentos
-
So i got this blip script it works fine but i want it to only show the people thats in your gang and not everyone I use castillo btw -- needs configurable blip colors, and team support root = getRootElement () color = { 0, 255, 0 } players = {} resourceRoot = getResourceRootElement ( getThisResource () ) players = { } function onResourceStart ( resource ) for _, player in ipairs ( getElementsByType ( "player" ) ) do local team = getPlayerTeam ( player ) local r, g, b = unpack ( ( team and { getTeamColor ( team ) } or { getPlayerNametagColor ( player ) } ) ) players [ player ] = createBlipAttachedTo ( player, 0, 2, r, g, b, 255 ) end end addEventHandler ( "onResourceStart", resourceRoot, onResourceStart ) function onPlayerSpawn ( spawnpoint ) local gangName = getElementData ( thePlayer, "gang" ) if ( gangName and gangName ~= "None" ) then local msg = table.concat ( { ... }, " " ) local nick = getPlayerName ( thePlayer ) for index, player in ipairs ( getElementsByType ( "player" ) ) do if ( getElementData ( player, "gang" ) == gangName ) then setBlipColor ( players [ source ], r, g, b, 255 ) end end addEventHandler ( "onPlayerSpawn", root, onPlayerSpawn ) function destroyBlips ( totalammo, killer, killerweapon ) destroyBlipsAttachedTo ( source ) end addEventHandler ( "onPlayerQuit", root, destroyBlips ) addEventHandler ( "onPlayerWasted", root, destroyBlips ) function destroyBlipsAttachedTo ( player ) local attached = getAttachedElements ( player ) if ( attached ) then for _, element in ipairs ( attached ) do if ( getElementType ( element ) == "blip" ) then destroyElement ( element ) end end end end
-
but i want to bind this automatclly to everyone join server /bind G chatbox gc im trying use this https://community.multitheftauto.com/in ... ls&id=6879
-
So im trying make it do when you press "G" it automatcly binds you this / bind G chatbox gc (like a default bind for my server) I tired this.. didnt work out bindKey("G", "down", "chatbox gc", "GangChat")
-
I get ERROR [Dayz MTA]/Dayz/group_sysrem/gang_utils Database query failed table gangs has 5 columns but 4 values were supplied (now for some reason it wont even creategangs made backup and everything and nothing )
-
please help im trying edit inventory to add cars and translate j and whenever i do the smallest change my teamsay stops working
-
Copy My post again . still nothing
-
Ok now I dont get any ERRORS but gangchat still dosent work
-
I get ERROR: Loading script failed: GangChatd5/server.lua.37:'expected near 'end'
-
So I change my gang system to castillo and my gangchat resource dosent work anymore addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "Y", "down", "chatbox", "gangChat" ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "Y", "down", "chatbox", "gangChat" ) end ) function gangChat ( thePlayer, _, ... ) local isInvited = getElementData ( thePlayer, "invited" ) or false if ( isInvited ) then local text = table.concat ( { ... }, " " ) if ( #text > 0 ) then outputChatBox ("#FF32AA [GangChat] "..getPlayerName(thePlayer)..": #FFFFFF" ..text, thePlayer, 255, 255, 255, true ) end end end addCommandHandler ( "gangChat", gangChat ) function invitePlayer ( thePlayer, _, playerName ) if not playerName then return end local playerToInvite = getPlayerFromName(playerName) if ( isElement ( playerToInvite ) ) and getElementType( playerToInvite ) == "player" then -- At function 'getElementType' you have 'argument' as the argument but this variable doesn't exist so I supposed is 'playerToInvited' setElementData ( playerToInvite, "invited", true ) outputChatBox ( "You have been invited to the chat.", playerToInvite) else outputChatBox ( "There is no such a player!", thePlayer ) end end end addCommandHandler ( "invite", invitePlayer ) please help
-
please help me with castillo it lets me create groups but gangchat or green dots on map wont work but on the one I have they do work but you can creategangs
-
When I add the castillo one gangchat and green dots in map dont work
-
So when I create a group it says I created one but it never appears in F1 and f2 wont open maybe theres something wrong with my Dayz Meta? Please help i have the gang system you open with f1 and f2
-
Sorry dont know what that is kinda new at all this
-
So i got this script for gangchat but it wont work I got no idea what to do Ive tried many other gang chat resources and nothing whatever I do it wont work
-
tengo el mismo problema ayuda porfavor
-
annubav i thinks somethings wrong with fuction but not sure
-
anyone?
-
its for global chat want to edit there table.concat with there rank any help much appreciated (sorry im kinda new) function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Admin" ) ) then outputChatBox("#ad515a[Global]"..name..": #FDFDFD"..message, getRootElement(), 255, 255, 255, true) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Moderator" ) ) then outputChatBox("#ad515a[Moderator]"..name..": #FDFDFD"..message, getRootElement(), 255, 255, 255, true) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ad515a[superModerator]"..name..": #FDFDFD"..message, getRootElement(), 255, 255, 255, true) else outputChatBox("#ad515a[Global]"..name..": #FDFDFD"..message, getRootElement(), 255, 255, 255, true) end end end end addCommandHandler("global", globalMessage)