Jump to content

ice_brasil

Members
  • Posts

    127
  • Joined

  • Last visited

Everything posted by ice_brasil

  1. I'm using AD Aspect gamemode and is giving this error: Detected disabled checking of custom D3D9.DLL file, this allows cheating in game and is prohibited. To run gamemode, change setting enablesd to <enablesd>12</enablesd> in mtaserver.conf. I already took the "12" and moved etc ... And no keeps giving error help me!
  2. Mais de 23 mapas de teleports como /arena,/ilha/drift e etc.. Zombies para ajudar a ganhar dinheiro Casas e muito mais entrem: Server Name:[ArenaProject] Brasil Freeroam/play:Mapas,Zombies e Sistemas State:Online Address:184.22.219.39:22003 Player:14/120
  3. I want more than one spawn point and more than one point spawndie local joinX = 555.0 local joinY = 122.0 local joinZ = 123.0 local joinWeapon = 22 local joinAmmo = 200 local joinSkin = 0 local spawnX = 0.0 local spawnY = 0.0 local spawnZ = 0.0 local spawnWeapon = 22 local spawnAmmo = 200 local spawnSkin = 0 local killerMoney = 500 local deadPlayerMoney = 500 local joinMoney = 1000 function spawnOnJoin() spawnPlayer(source, joinX, joinY, joinZ, 0 , joinSkin) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox(joinMessage, source) giveWeapon(source, joinWeapon, joinAmmo) givePlayerMoney(source, joinMoney) end function spawnOnDead(ammo, killer, weapon, bodypart) outputChatBox(getPlayerName(source).." died.") takePlayerMoney(source, deadPlayerMoney) if (killer) and (killer ~= source) then givePlayerMoney(killer, killerMoney) end setTimer(spawnPlayer, 3000, 1, source, spawnX, spawnY, spawnZ, 0, spawnSkin) setCameraTarget(source, source) setTimer(giveWeapon, 3000, 1, source, spawnWeapon, spawnAmmo) end addEventHandler("onPlayerJoin", getRootElement(), spawnOnJoin) addEventHandler("onPlayerWasted", getRootElement(), spawnOnDead) Do not know what it want to use the player spawn in several coordinates could add more than 1 coodinates spawnpoint and more 1 spawndie?
  4. is there any site for me to convert?
  5. Not normal windows worked already in linux not
  6. Then I put my server on a linux vps bugou some scripts of this error: Loading script failed: login / LoginForm.lua: 1: unexpected symbol near '?' Please help me get these errors
  7. Works as an administrator to enter / chatadmin one mensgem appears that only admins can see function adminchat(thePlayer, ...) local word = {...} local message = table.concat(word, " ") local account = getPlayerAccount ( thePlayer ) for _, group in ipairs ( { "Admin", "Moderator", "SuperModerator" } ) do if isObjectInACLGroup ( "user." .. getAccountName(account), aclGetGroup (group) ) then outputChatBox ( "#FF0000[Admin Chat]" .. getPlayerName ( thePlayer ) .. ": " .. message, getRootElement(), 255, 255, 255, true ) else exports["Evo-notificaciones"]:showBox ( thePlayer, "error", " "..getPlayerName(thePlayer).."Acceso Denegado.") end end end addCommandHandler("adminchat", adminchat) But all the server are seeing this message What do wrong? What do I see across to admins only? sorry my bad english I'm Brazilian
  8. is possible to create a window with a site inside? for the player not to leave the mta to access the site If possible please tell me What do I will use to create.
  9. Jacob works and when you die spawn in random coordinate ? function PlayerRespawn(diedPlayer) if not diedPlayer then else toggleAllControls(diedPlayer,true) setPlayerMoney(diedPlayer,StartMoney) spawnPlayer ( diedPlayer, 1539.7673339844,-1352.8256835938,329.46545410156, 90.0,playerSkin[diedPlayer][1]) setCameraTarget (diedPlayer, diedPlayer) end end
  10. I made a system for when the player is born he is born in a random coordinate That is one of 3 that I made at the beginning function SpawnPlayer(thePlayer,skin,skin2,skin3,r,g,b) local n = math.random(1,3) if n == 1 then spawnPlayer ( thePlayer, -1494,921,8, 90.0, skin ) spawnPlayer ( thePlayer, 2005,1545,14, 90.0, skin3 ) else spawnPlayer ( thePlayer, 1178,-1325,15, 90.0, skin2 ) end But the player is not born at random What do I switch to when he spawn spawn random
  11. function SpawnPlayer(thePlayer,skin,skin2,skin3,r,g,b) local n = math.random(1,3) if n == 1 then spawnPlayer ( thePlayer, -1494,921,8, 90.0, skin ) spawnPlayer ( thePlayer, 2005,1545,14, 90.0, skin3 ) else spawnPlayer ( thePlayer, 1178,-1325,15, 90.0, skin2 ) end want by for a player spawn in random place,the player comes in only two coordinates What did this wrong? second doubt function PlayerRespawn(diedPlayer) if not diedPlayer then else toggleAllControls(diedPlayer,true) setPlayerMoney(diedPlayer,StartMoney) spawnPlayer ( diedPlayer, 1539.7673339844,-1352.8256835938,329.46545410156, 90.0,playerSkin[diedPlayer][1]) setCameraTarget (diedPlayer, diedPlayer) end end I want when a player dies he is born in a coordinated random What did this wrong?
  12. Is correct ? function FreeroamStop ( player, command, resourceName, commandName, alphaAmount ) if ( getElementDimension ( source ) == 0 and seat == 0 ) then setElementDimension ( source, 1 ) setElementDimension ( theFreeroam, 1 ) alphaAmount = tonumber(0) guiSetAlpha ( Freeroam, 0 ) end addCommandHandler ( "irevento", getRootElement(), changeAlpha )
  13. I want to go to when a player in one dimension, freeroam script is paused and when he gets out of the dimension freeroam working again What do I do?
  14. I use this function to spawn more I want a second spawn point that is Randow function SpawnPlayer(thePlayer,skin,skin2,r,g,b) spawnPlayer ( thePlayer, 2005,1545,14, 90.0, skin ) spawnPlayer ( thePlayer, -1495,921,8, 90.0, skin2 ) ~~> Second spawn point setCameraTarget (source, source) createBlipAttachedTo(source,0,2,r,g,b) setPlayerMoney(thePlayer,StartMoney) playerSkin[thePlayer] = {skin,r,g,b} setElementData(thePlayer,"Score",0) setPlayerNametagShowing ( thePlayer, false) end addEvent( "onClientWantsToSpawn", true ) addEventHandler( "onClientWantsToSpawn", getRootElement(), SpawnPlayer ) But all players born in only one spawnpoint What do I have to add more for a spawnpoint? Sorry my bad english I'm Brazilian
  15. I used this function to reverse the car's controls function drugSteer() left=false right=false up=false down=false local keys = getBoundKeys ('vehicle_left') if keys then tmpLeft = false for keyName, state in pairs(keys) do if (getKeyState(keyName)) then tmpLeft=true end end if tmpLeft then left=true right=false end end local keys = getBoundKeys ('vehicle_right') if keys then tmpRight = false for keyName, state in pairs(keys) do if (getKeyState(keyName)) then tmpRight=true end end if tmpRight then left=false right=true end end if (left) then setControlState('vehicle_left', false) setControlState('vehicle_right', true) elseif (right) then setControlState('vehicle_right', false) setControlState('vehicle_left', true) else setControlState('vehicle_right', false) setControlState('vehicle_left', false) end local keys = getBoundKeys ('accelerate') if keys then tmpUp = false for keyName, state in pairs(keys) do if (getKeyState(keyName)) then tmpUp=true end end if tmpUp then down=false up=true end end local keys = getBoundKeys ('brake_reverse') if keys then tmpDown = false for keyName, state in pairs(keys) do if (getKeyState(keyName)) then tmpDown=true end end if tmpDown then down=true up=false end end if (up) then setControlState('accelerate', true) setControlState('brake_reverse', true) elseif (down) then setControlState('brake_reverse', true) setControlState('accelerate', false) else setControlState('brake_reverse', false) setControlState('accelerate', true) end end function startDrug() dxDrawRectangle ( 3.8, 3.8, 2.02, 2, tocolor ( 0, 0, 0, 150 ) ) end addEventHandler("onClientRender", getRootElement(), startDrug) Now I want to reverse for the player What do I change? function drugSteer() left=false right=false up=false down=false local keys = getBoundKeys ('player_left') if keys then tmpLeft = false for keyName, state in pairs(keys) do if (getKeyState(keyName)) then tmpLeft=true end end if tmpLeft then left=true right=false end end local keys = getBoundKeys ('player_right') if keys then tmpRight = false for keyName, state in pairs(keys) do if (getKeyState(keyName)) then tmpRight=true end end if tmpRight then left=false right=true end end if (left) then setControlState('player_left', false) setControlState('player_right', true) elseif (right) then setControlState('player_right', false) setControlState('player_left', true) else setControlState('player_right', false) setControlState('player_left', false) end What did this wrong?
  16. Thank castilio, I'll buy your scripts!
  17. function stopEffect() stopTickCount = getTickCount () lastEffectTic = getTickCount ( ) end addCommandHandler("parar", stopEffect) Use this function to stop the effect?
  18. Just got this texture, could not someone add the command in the script to me I can not
  19. Should I remove it? engineApplyShaderToWorldTexture ( myShader, "*", localPlayer )
  20. Not Worked if you need the entire script: -- local myShader local startTickCount = 0 addEventHandler( "onClientResourceStart", resourceRoot, function() -- Version check if getVersion ().sortable < "1.3.1-9.04939" then return end -- Create shader myShader, tec = dxCreateShader ( "fx/ped_shell_layer.fx", 0, 0, true, "ped" ) if not myShader then else -- Apply shader to local player engineApplyShaderToWorldTexture ( myShader, "*", localPlayer ) -- Hack to make GTA render the ped last, so our shell effect appears on top of the background setElementAlpha( localPlayer, 254 ) -- Fire effect at startup startEffect(); end end ) ---------------------------------------------------------------- -- Start effect here ---------------------------------------------------------------- function startEffect() startTickCount = getTickCount() end addCommandHandler("droga", startEffect ) ---------------------------------------------------------------- -- Update effect here ---------------------------------------------------------------- addEventHandler( "onClientRender", root, function() if not myShader then return end local timeElapsed = getTickCount() - startTickCount local f = timeElapsed / 750 f = math.min( f, 1 ) local alpha = math.lerp ( 1.0, 0.0, f ) local size = math.lerp ( 0, 0.3, f ) -- Expand shell dxSetShaderValue( myShader, "sMorphSize", size, size, size ) -- Fade out shell dxSetShaderValue( myShader, "sMorphColor", 1, 0, 0, alpha ) end ) ---------------------------------------------------------------- -- Math helper functions ---------------------------------------------------------------- function math.lerp(from,to,alpha) return from + (to-from) * alpha end
×
×
  • Create New...