
xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
You can use removeWorldModel.
-
This probably isn't the place for this... You should find a server and make an application to be the military leader.
-
It could be, but it would probably be easier to just restart.
-
Can someone just ban this guy from the forum already? He's pissing everybody off.
-
Thanks, these are really really useful
-
Try using this: addEventHandler ( "onPlayerJoin", root, function ( ) updatePlayerNick ( source, getPlayerName ( source ) ) end ) addEventHandler ( "onClientPlayerChangeNick", root, function ( _, new ) updatePlayerNick ( source, new ) end ) function updatePlayerNick ( source, n ) local n = tostring ( n ):gsub ( " #%x%x%x%x%x%x", "" ) if ( n == "" ) then n = "User"..math.random(50) end setPlayerName ( source, n ) end
-
Well, DayZ uses a custom chat resource, so you'll have to get the source code (legally) to edit it.
-
You just have to put it in any server-side file. Well that HTML colors to avoid. And where you need it to write/edit? These actually aren't HTML color codes. HTML mostly uses HEX (#ff0000, etc...) and this is RGB.
-
This doesn't really make any since, because all you need is: createVehicle, setElementFrozen, and setvehicleDamageProof
-
I made that so that it returns a string no matter what. Sorry but I didn't notice this. You are trying to use a client variable localPlayer on the server side. Try this: local _getElementData = getElementData function getElementData ( plr, group ) return tostring ( _getElementData ( plr, group ) ) end function updateDB(playerAccount) -- Update Player Table local localPlayer = playerFromAccount ( playerAccount ) if not localPlayer then return end local mail = getElementData(localPlayer,"temp.mail") local bDay = getElementData(localPlayer,"temp.bDay") local bMonth = getElementData(localPlayer,"temp.bMonth") local bYear = getElementData(localPlayer,"temp.bYear") local level = getElementData(localPlayer,"temp.level") local VIP = getElementData(localPlayer,"temp.VIP") local welcomeText = getElementData(localPlayer,"temp.welcomeText") local achievementPoints = getElementData(localPlayer,"temp.achivementPoints") local token = getElementData(localPlayer,"temp.token") local tokenBought = getElementData(localPlayer,"temp.tokenbought") dbExec ( connect, "UPDATE Player SET mail=?, bDay=?, bMonth=?, bYear=?, level=?, VIP=?, welcomeText=?, achivementPoints=?, token=?, tokenbought=? WHERE account=?", bDay, bMonth, bYear, level, VIP, welcomeText, achievementPoints, token, tokenBought, playerAccount ) outputDebugString("Player Table has been Updated - OK") end function playerFromAccount ( a ) for i, v in pairs ( getElementsByType ( "player" ) ) do local acc = getPlayerAccount ( a ) if( acc and getAccountName ( acc ) == a ) then return v end end return false end
-
root is a variable for getRootElement. You would use this, well, in the case of make a server welcome message. Example: addEventHandler ( "onPlayerJoin", root --[[For all of the players]] , function ( ) outputChatBox ( "Welcome to the server!", source, 255, 255, 255 ) -- Output text to the player who just joined. end ) Try reading this to: viewtopic.php?f=91&t=39678
-
Making a multi-gamemode gamemode requires an absolute professional scripter who knows what they're doing. It's not easy to make them, but it can be done, and I'm going to tell you right now, unless you know how to make it then you probably won't find someone who will do it, even with a payment. Most the scripters that know how to make it are already busy with their own servers.
-
Try this: local _getElementData = getElementData function getElementData ( plr, group ) return tostring ( _getElementData ( plr, group ) ) end function updateDB(playerAccount) -- Update Player Table local mail = getElementData(localPlayer,"temp.mail") local bDay = getElementData(localPlayer,"temp.bDay") local bMonth = getElementData(localPlayer,"temp.bMonth") local bYear = getElementData(localPlayer,"temp.bYear") local level = getElementData(localPlayer,"temp.level") local VIP = getElementData(localPlayer,"temp.VIP") local welcomeText = getElementData(localPlayer,"temp.welcomeText") local achievementPoints = getElementData(localPlayer,"temp.achivementPoints") local token = getElementData(localPlayer,"temp.token") local tokenBought = getElementData(localPlayer,"temp.tokenbought") dbExec ( connect, "UPDATE Player SET mail=?, bDay=?, bMonth=?, bYear=?, level=?, VIP=?, welcomeText=?, achivementPoints=?, token=?, tokenbought=? WHERE account=?", bDay, bMonth, bYear, level, VIP, welcomeText, achievementPoints, token, tokenBought, playerAccount ) outputDebugString("Player Table has been Updated - OK") end
-
You could do something like this: addEventHandler ( "onPlayerChat", root, function ( msg, tp ) cancelEvent ( ) if ( tp == 0 ) then outputLocalMessage ( source, msg, "global" ) elseif ( tp ==2 ) then outputLocalMessage ( source, msg, "team" ) end end ) function outputLocalMessage ( player, message, tp ) if ( tp == "global" ) then -- this would be gobal chat elseif( tp == "team" ) then -- this is the team chat end end
-
I think if you export the vehicles 3D Model and texture (the .dff and .txd of default GTA) and just replace an object with it, it would work. I'm not entirely sure if it would work, but I don't see why not.
-
These web pages are going to make me vomit
-
You could make a colshape, and when a player is damaged (onClientPlayerDamage) check to see if they're in the colshape. If they are then you can use cancelEvent()
-
I think you meant this: function resourcese() local resources = {} local res = getResources() for k,resource in ipairs(res) do local t = tostring ( getResourceInfo(resource, "type") ):lower ( ) if ( t ~= "map" ) then table.insert(resources,getResourceName(resource)) end end triggerClientEvent(source,"ResourcesTable",getRootElement(),resources) end
-
It doesn't really matter... Just read the last comment, and if it says something like "Thanks" or "solved" then it simply means it's solved
-
resetCamera ( ) @ line 59 isn't defined.