Jump to content

Jorgito'Molina

Members
  • Posts

    46
  • Joined

  • Last visited

Everything posted by Jorgito'Molina

  1. the problem is that the score is close the account of the account.
  2. addEventHandler ( "onPlayerWasted", root, function ( totalAmmo, killer, killerWeapon, bodypart, stealth ) if ( killer ) then local account = getPlayerAccount ( killer ) if ( killer ~= source ) then setAccountData ( account, "Kills", tonumber ( getAccountData ( account, "Kills" ) or 0 ) +1 ) setElementData ( killer, "Kills", tonumber ( getAccountData ( account, "Kills" ) ) ) end end local accountSource = getPlayerAccount ( source ) setAccountData ( accountSource, "deaths", tonumber ( getAccountData ( accountSource, "deaths" ) or 0 ) +1 ) setElementData ( source, "deaths", tonumber ( getAccountData ( accountSource, "deaths" ) ) ) end ) addEventHandler("onPlayerLogout", root, function() local account = getPlayerAccount(source) setAccountData(source, "deathss", getElementData(account, "deaths")) end ) addEventHandler("onPlayerLogin", root, function() local account = getPlayerAccount(source) setElementData(source, "deaths", getAccountData(account, "deaths")) end ) to close the account, to close the account is the score
  3. setGlitchEnabled allow following weapons 24,25,33,34 other weapons not allow.
  4. function resourceStart () setGlitchEnabled ( "quickreload", true ) setGlitchEnabled ( "fastmove", true ) setGlitchEnabled ( "fastfire", true ) setGlitchEnabled ( "crouchbug", true ) if not allow[weapon] then setPedWeaponSlot ( source, 1 ) end end addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) function resourceStop () setGlitchEnabled ( "quickreload", false ) setGlitchEnabled ( "fastmove", false ) setGlitchEnabled ( "fastfire", false ) setGlitchEnabled ( "crouchbug", false ) end addEventHandler ( "onResourceStop", getResourceRootElement ( ), resourceStop ) allow = { [24] = true, [25] = true, [33] = true, [34] = true } what is the problem, is not allow all weapons.
  5. function ( ) local fadeCamera( true ) = { setCameraMatrix, 50, 1, 2538.47, 2074.72, 10.67, 1364.53, -1279.62, 13.54, setCameraMatrix, 50, 10 1967.71, 1342.9, 26.63, 2034.47, 1343.02, 20.01 } addEventHandler( "setTimer", root, function ( ) setCameraMatrix( source, fadecamera [math.random ( #fadecamera ) ] ) ); end ) i am noob creating tables, I read up 2.4 – Metatables and Metamethods, of "http://www.lua.org/manual/5.2/"
  6. addEventHandler( "onClientResourceStart", getResourceRootElement(), function ( ) fadeCamera( true ); setTimer( setCameraMatrix, 50, 1, 2538.47, 2074.72, 10.67, 1364.53, -1279.62, 13.54 ); --letterBox.flyIn( ); preloadClassesInfo( ); createClassSelectionWnd( ); createGroupSelectionWnd( ); createClassDescriptionWnd( ); createClassWeaponWnd( ); setTimer( createTempPed, 100, 1 ); showCursor( true ); showSpawnMenu( false, true ); showHUDComponents( allHUDElements ); end ); in spawn50p I made another post like this, in this want How to give a random camera when a player connect????
  7. using skin fails how to install in 3d, please help
  8. Is download of https://community.multitheftauto.com/in ... ls&id=4209 for but I only want to use the skin... how to instal skin creeper function replaceModel() txd = engineLoadTXD("creeper.txd", 217 ) engineImportTXD(txd, 217) dff = engineLoadDFF("creeper.dff", 217 ) engineReplaceModel(dff, 217) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) error to start skin As I can put in 3d, as shown in the image creeper.3ds Materi1.png Materi8.png Material.png where I can download it to replace 217
  9. function createMoney(player) local x, y, z = getElementPosition(player); local x1, y1, x2, y2; x1 = (x-2)+(math.random()*4); y1 = (y-2)+(math.random()*4); x2 = (x-2)+(math.random()*4); y2 = (y-2)+(math.random()*4); local moneyAmmount = getPlayerMoney(player); -- it is not fair too get all the player money. moneyAmmount = math.floor(moneyAmmount/1); takePlayerMoney(player, moneyAmmount); -- We are going to create 3 pickups, zo we are just cut the ammount in half moneyAmmount = math.floor(moneyAmmount/3); -- Create the pickups setElementData(createPickup(x1, y1, z, 3, 1212), "ammount", moneyAmmount); setElementData(createPickup(x2, y2, z, 3, 1212), "ammount", moneyAmmount); setElementData(createPickup(x2, y2, z, 3, 1212), "ammount", moneyAmmount); end function moneyPickupHit(player) local money = getElementData(source, "ammount"); if money then givePlayerMoney(player, money); destroyElement(source); end end function playerJustGotDied(ammo, attacker, weapon, bodypart) createMoney(source); end addEventHandler("onPickupUse", getRootElement(), moneyPickupHit); addEventHandler("onPlayerWasted", getRootElement(), playerJustGotDied); help money in interior, latter killed
  10. thanks, change the time and to runing
  11. addEventHandler( "onClientResourceStart", getResourceRootElement(), function ( ) fadeCamera( true ); setTimer( setCameraMatrix, 50, 1, 1487.68, -886.20, 88.6464, 1415.38, -808.59, 91.8533); fadeCamera( true ); setTimer( setCameraMatrix, 50, 1, 1967.71, 1342.9, 26.63, 2034.47, 1343.02, 20.01); letterBox.flyIn( ); preloadClassesInfo( ); createClassSelectionWnd( ); createGroupSelectionWnd( ); createClassDescriptionWnd( ); createClassWeaponWnd( ); createPasswordWnd( ); setTimer( createTempPed, 100, 1 ); showCursor( true ); showSpawnMenu( false, true ); showHUDComponents( allHUDElements ); end ); Quiero poner para al entrar salgan diferente posicion de camaras, que no siempre salga una.
  12. addEventHandler( "onClientResourceStart", getResourceRootElement(), function ( ) fadeCamera( true ); setTimer( setCameraMatrix, 50, 1, 1487.68, -886.20, 88.6464, 1415.38, -808.59, 91.8533); fadeCamera( true ); setTimer( setCameraMatrix, 50, 1, 1967.71, 1342.9, 26.63, 2034.47, 1343.02, 20.01); letterBox.flyIn( ); preloadClassesInfo( ); createClassSelectionWnd( ); createGroupSelectionWnd( ); createClassDescriptionWnd( ); createClassWeaponWnd( ); createPasswordWnd( ); setTimer( createTempPed, 100, 1 ); showCursor( true ); showSpawnMenu( false, true ); showHUDComponents( allHUDElements ); end ); I want to go to two different camera to start join, in spawn50p
×
×
  • Create New...