- 
                Posts216
- 
                Joined
- 
                Last visited
Everything posted by Gallagher
- 
	hello guys FileDelete is totally safe and can still steal my client-side scripts?
- 
	Hello friends! I wonder how do I ensure that only members of a group can enter this command addCommandHandler ("test", openMyGate). There is a group in acl, is a group of dayz, gangsystem. example: group name "survivors" if the player is the group opens the gate if it is not a message appears, "You are not of this clan" Thanks function createTheGate () myGate1 = createObject ( 2435, 2434.75488, -1380.33496, 22.10521, 0, 0, 269.995 ) myGate2 = createObject ( 2435, 2427.05176, -1380.25488, 22.10521, 0, 0, 269.995 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) ---- Base ---- function openMyGate ( ) moveObject ( myGate1, 4000, 2437.8999, -1380.19995, 22.1 ) moveObject ( myGate2, 4000, 2424.1001, -1380.40002, 22.1 ) end addCommandHandler("test",openMyGate) function movingMyGateBack () moveObject ( myGate1, 4000, 2434.75488, -1380.33496, 22.10521 ) moveObject ( myGate2, 4000, 2427.05176, -1380.25488, 22.10521 ) end addCommandHandler("testclose",movingMyGateBack)
- 
	have a script that does this community! not compiled
- 
	Thanks friend, I had tried but not worked because onPlayerWasted is server side event.
- 
	I have this event the client side, but does not work as I want. I want this event "(triggerServerEvent, 15000, 1," ClientHaveLevels "getLocalPlayer ())" is activated when the player dies. WHAT I put in place onPlayer spawn? function triplo() setTimer ( triggerServerEvent, 15000, 1, "ClientHaveLevels", getLocalPlayer() ) end addCommandHandler ("triplo", triplo) addEventHandler ( "onPlayerSpawn", getLocalPlayer(), triplo ) this script above works, but if the player relogin the event will be triggered again and I do not want it!
- 
	I have a skin with txd 3 different colors is possible to use one at a time on the same id?
- 
	work local LoginPos = { {2885, 2837, 75, -500, 200, -1500}, {2435, -1779, 17, 300, 1010, 2550}, {3285, 3831, 65, 600, 331, -550}, } local number = math.random ( #LoginPos ) local x,y,z = LoginPos[number][1],LoginPos[number][2],LoginPos[number][3] setCameraMatrix (x, y, z) I did so and it worked, but it does not work the camera rotation how do I fix?
- 
	but WHAT should I put in setCameraMatrix (2885, 2837, 75, -500, 1010, -550)?
- 
	do not know if this script is for dayz, but if if you change the player's team for Zombies they stop attacking you
- 
	function onClientGetNews(text1, text2, text3, text4, bool1, bool2, bool3, bool4) local text1 = string.gsub(text1, " ", "\n") local text2 = string.gsub(text2, " ", "\n") local text3 = string.gsub(text3, " ", "\n") local text4 = string.gsub(text4, " ", "\n") guiSetText(news1, text1) guiSetText(news2, text2) guiSetText(news3, text3) guiSetText(news4, text4) if bool1 == "true" then else -- unhandled boolean indicator end addEvent("onClientGetNews", true) addEventHandler("onClientGetNews", getRootElement(), onClientGetNews) addEventHandler("onClientResourceStart", resourceRoot, function() build_loginWin() guiSetVisible(background_front, false) showLoginWindow(true) guiSetInputMode("no_binds_when_editing") fadeCamera(true) setCameraMatrix(2885, 2837, 75, -500, 1010, -550) ---------how to put math.random? triggerServerEvent("requestServerNews", localPlayer) end) when the player enters the camera login server gets this position, I want cade time he is entering a new camera! I made this table, but do not know how to use it in setCameraMatrix. local LoginPos = { {2885, 6835, 50, -500, 1010, -550}, {5085, 837, 49, -500, 1010, -550}, {3285, 3831, 65, -500, 1010, -550}, } local number = math.random(table.size(LoginPos)) local x,y,z = LoginPos[number][1],LoginPos[number][2],LoginPos[number][3]
- 
	simple? thanks again
- 
	Thanks! one more question, how to use delete file? I say this from the client side script and I want it to be deleted. the name is logo.lua local screenWidth,screenHeight = guiGetScreenSize() gRoot = getRootElement() gResRoot = getResourceRootElement( getThisResource() ) addEventHandler("onClientResourceStart", gResRoot, function () serverlogo = guiCreateStaticImage ( 0.505, 0.378, 0.05, 0.05, "logo.png", true ) --- setSkyGradient(60,50,50,55,50,50) ---createPed ( int 120, float 1258, float -977, float 39 [, float rot = 0.0 ] ) end ) addEventHandler("onClientResourceStart", gResRoot, function () bindKey("Fingutako","down","logovisible") end ) function changeVisibility ( ) if guiGetVisible ( serverlogo ) then guiSetVisible ( serverlogo, false ) else guiSetVisible ( serverlogo, true ) end end addCommandHandler("logovisible", changeVisibility)
- 
	it is possible obtain the distance of an object? if the player aim at a player or an object tell distance q is he?
- 
	And that does what exactly? svp= spawn Vehicle Pack
- 
	first login to your account adm, then type /add admin your nickname, then type /svp.
- 
	I can not fit this function in my script
- 
	how to do that when I press bindkey digit or 9 / logo? local screenWidth,screenHeight = guiGetScreenSize() gRoot = getRootElement() gResRoot = getResourceRootElement( getThisResource() ) addEventHandler("onClientResourceStart", gResRoot, function () serverlogo = guiCreateStaticImage ( 0.505, 0.378, 0.1, 0.1, "logo.png", true ) end ) addEventHandler("onClientResourceStart", gResRoot, function () bindKey("9","down","logovisible") end ) function changeVisibility ( ) if guiGetVisible ( serverlogo ) then guiSetVisible ( serverlogo, false ) else guiSetVisible ( serverlogo, true ) end end addCommandHandler("logo", changeVisibility)
- 
	function createMinigunWeapon() local x, y, z = getElementPosition(getLocalPlayer()) local weapon = createWeapon("minigun", x, y, z + 1) setElementAlpha ( weapon , 0 ) ----------------------------- setWeaponClipAmmo ( weapon,99999) setWeaponState ( weapon,"firing") end addCommandHandler("createminigun", createMinigunWeapon) as lay alpha = 0? is right?
- 
	it is possible to make an object shoot?
- 
	I recommend you leave the name as it was before, al renomialo try again
- 
	work in dayz ? I think a Login-Panel works with every gamemode... no

 
        