Jump to content

papam77

Members
  • Posts

    517
  • Joined

  • Last visited

Everything posted by papam77

  1. skins.lua function eag () skintxd = engineLoadTXD("ac.txd") engineImportTXD(skintxd, 165 ) local skindff = engineLoadDFF('ac.dff', 0) engineReplaceModel(skindff, 165) end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), eag ) Why? Skins are on same place like skins.lua Meta: "Teams/EAG/ac.txd" /> "Teams/EAG/ac.dff" />
  2. Force isn't speed, force is destruction power.
  3. function MGPED () local John = createPed (90, 359.44141, 173.59044, 1008.37262, -90 ) setElementDimension ( John, 0 ) setElementInterior (John, 3 ) setTimer ( setPedAnimation, 500, 1, John, "ped", "FF_Sit_Eat1") end addEventHandler ("onResourceStart", getRootElement(), MGPED ) Nothing
  4. Yes function MGPED () setElementDimension ( John, 0 ) John = createPed (359.44141, 173.59044, 1008.37262, 90) setPedAnimation( John, "ped", "FF_Sit_Eat1") end addEventHandler ("onResourceStart", getRootElement(), MGPED ) And this doesn't create a ped everything is bad argument. Why ?
  5. Already have and how can set for Ped action Siting ?
  6. And here is problem: function MG ( ) local x = 384.7 local y = 173.6 local z = 1008.4 outputChatBox ("#ffffffWelcome on EAG| and |TSR| Server.", source, 255,255,255, true ) outputChatBox ("#ffffffDon't forget to visit our website [url=http://EAG-Gaming.eu/]http://EAG-Gaming.eu/[/url]., source, 255,255,255, true ) outputChatBox ("#ffffffAre you new? Use #ff9900/help#ffffff for more informations.", source, 255,255,255, true ) fadeCamera ( source, true ) spawnPlayer ( source, x, y, z ) setElementInterior ( source, 3 ) setElementModel ( source, 240 ) end addEventHandler ("onPlayerLogin", getRootElement(), MG ) When i login it doesn't spawn me it's only fade the camera and output the text nothing more and without error and warning.
  7. And how can make in server side outputChatBox for localPlayer ? because definition localPlayer doesn't work.
  8. Bad 'player' pointer @ 'fadeCamera'(1) Bad 'player' pointer @ 'spawnPlayer'(1) Current code: function MG ( source ) local x = 384.7 local y = 173.6 local z = 1008.4 outputChatBox ("#ffffffWelcome on EAG| and |TSR| Server.", getRootElement(), 255,255,255, true ) outputChatBox ("#ffffffAre you new? Use /help for more informations.", getRootElement(), 255,255,255, true ) fadeCamera ( source, true ) spawnPlayer ( source, x, y , z ) end addEventHandler ("onPlayerLogin", getRootElement(), MG )
  9. function MG () local x = 384.7 local y = 173.6 local z = 1008.4 outputChatBox ("#ffffffWelcome on EAG| and |TSR| Server.", getRootElement(), 255,255,255, true ) outputChatBox ("#ffffffAre you new? Use /help for more informations.", getRootElement(), 255,255,255, true ) fadeCamera ( source, true ) spawnPlayer ( x, y , z , 0, 0, 3, 1) end addEventHandler ("onPlayerLogin", getRootElement(), MG ) Hello i have this code but it doesn't spawn me at position defined by me, where is problem? Server says: spawnPlayer bad Argument
  10. Why missionTimer if i want move to arena?
  11. Hello is possible to make if player has minimalized MTA in windows to get it, because i need it for state to scoreboard
  12. I guess, that will be good to add to next version setProjectileSpeed
  13. But it is rotation, I am using this for Rotations to rocket
  14. Hello i have made this, but i need for players command /join CountryName How can do it? ----------------------------- -- Language Chat By DeeJay -- ----------------------------- function LanguageChat(thePlayer, cmd, ...) local msg = table.concat({...}, " ") for _,players in ipairs(getElementsByType("player")) do local r, g, b = getPlayerNametagColor (thePlayer) local name = getPlayerName(thePlayer) local mycountry = exports.admin:getPlayerCountry(thePlayer) local playerscountry = exports.admin:getPlayerCountry(players) if (playerscountry == mycountry) then if (msg and msg ~= "") then outputChatBox("#FF6464["..mycountry.."]#ffffff "..name..": #FFFFFF"..msg.."",players,r, g, b,true) end end end end addCommandHandler("Language",LanguageChat) addEventHandler("onPlayerJoin",root, function () bindKey(source,"L","down","chatbox","Language") end ) addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey(player,"L","down","chatbox","Language") end end )
  15. I know that it's not easy i am only looking for some tips how to make it more easier and how it works
  16. So like this: Example: I will make one gamemode like race and before i will add buttons and etc... ? And if i wanna add next arena where to add mode and how to set for player move to an arena?
  17. I have my own gamemode RPG Mod. Ofc i have Multi-Gamemode setted like type="gamemode" and how can connect to it my next gamemode? It's what i don't know how.
  18. It works, ty function mapa ( ) rocket = createMarker ( 3412.8688964844, -1652.7664794922, 13.254596710205 ) setMarkerSize ( rocket, 5 ) function MarkerHit ( element ) if ( element == localPlayer and getElementType ( element ) == "player" and isPedInVehicle ( element ) ) then outputChatBox ( "#ff9900Rocket minigun overheated! Give it a rest pal!", 255, 255, 255, true ) launcher = createProjectile ( localPlayer, 20, 3440.1625976563, -1543.6124267578, 36.850193023682, 100.0, localPlayer, 3514.0498046875, -1665.0322265625, 18.988582611084, 70, -320, -70, Cil ) setProjectileCounter (launcher, 250 ) end end addEventHandler ( "onClientMarkerHit", rocket, MarkerHit ) end addEventHandler ( "onClientResourceStart", resourceRoot, mapa ) And where can set projectile Speed ?
  19. I wanna create rocket when player hit a defined marker called 'rocket' and shoot to stone which is defined on 3514.0498046875, -1665.0322265625, 18.988582611084 and from rocket launcher 3440.1625976563, -1543.6124267578, 32.850193023682 with hydra rockets
  20. I was reading it, but I've changed it now to this function mapa () rocket = createMarker ( 3412.8688964844, -1652.7664794922, 13.254596710205 ) setMarkerSize ( rocket, 5 ) function MarkerHit (element) local vehilce = getVehicleName() if (element == getLocalPlayer()) then if (getElementType(element) == "player") then if (isPedInVehicle(element)) then if (source==rocket) then outputChatBox ("#ff9900WARNING!", 255,255,255, true ) createProjectile ( localPlayer, 58, 3440.1625976563, -1543.6124267578, 32.850193023682, 1.0, nil, 3514.0498046875, -1665.0322265625, 18.988582611084, 1, 1, 1 ) end end end end end addEventHandler ( "onClientMarkerHit", getRootElement() ,MarkerHit) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), mapa ) and still nothing happend.
  21. off topic: is this able to create multi-world? Multi-World ? How you mean it? You mean dimensions? When player click to button then setElementDimension ( 2 ) Players from dimension 2 wont see players from dimension 1? You mean that?
  22. Doesn't work when i hit with vehicle marker called rocket. Nothing shooted from 3440.1625976563, -1543.6124267578, 32.850193023682 to 3514.0498046875, -1665.0322265625, 18.988582611084
×
×
  • Create New...