Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. nop, this cancels the event if you don't have the $500.
  2. try setting 0 to higher? or may be the time of respawn no idea, i don't use much pickups
  3. local aPickup = createPickup (420.14,-2537.42,32.30, 2, 24, 3000, 0 ) function pickedUpWeaponCheck ( player ) local money = getPlayerMoney(player) -- is getPlayerMoney not getElementMoney if (money > 499) then outputChatBox ( "You have picked up a Deagle for $500", player ) --Display this message in the chat box giveWeapon ( source, 24, 50 ) end end addEventHandler ( "onPickupHit", aPickup, pickedUpWeaponCheck )
  4. you can't replace models as varez said, you need this functions, Load -->> https://wiki.multitheftauto.com/wiki/EngineLoadTXD Import -->> https://wiki.multitheftauto.com/wiki/EngineImportTXD
  5. this is not a requesting forum! you got to script it by your own or ask for help not complete script. resetWaterColor --> https://wiki.multitheftauto.com/wiki/SetWaterColor setWaterColor --> https://wiki.multitheftauto.com/wiki/ResetWaterColor
  6. Castillo

    Help!

    what do you mean "own objects" ? custom object models maybe? if yes then is it possible, https://wiki.multitheftauto.com/wiki/EngineImportTXD https://wiki.multitheftauto.com/wiki/EngineLoadCOL https://wiki.multitheftauto.com/wiki/EngineLoadDFF https://wiki.multitheftauto.com/wiki/EngineLoadTXD https://wiki.multitheftauto.com/wiki/EngineReplaceCOL P.S: i think this should be moved to scripting section
  7. MI550, what do you mean? i think you posted in wrong topic or something like that?
  8. haahaha you're the most funny guy i ever seen around here! do you really think someone will waste his time scripting your servers?? nah thats not possible without PAY to him. btw: go to https://community.multitheftauto.com/ there are some resources
  9. varez, i was at my mother's computer, i made fast
  10. function playerDamage_text ( attacker, weapon, bodypart, loss ) if ( weapon == 24 ) then killPed ( source ) end end addEventHandler ( "onPlayerDamage", getRootElement (), playerDamage_text ) try this, not tested.
  11. does it shows any error in debug? /debugscript 3 in-game.
  12. what do you mean? i don't get it seriusly.
  13. https://wiki.multitheftauto.com/wiki/Scripting_Introduction https://wiki.multitheftauto.com/wiki/Introduction_to_Scripting_the_GUI https://wiki.multitheftauto.com/wiki/GiveWeapon https://wiki.multitheftauto.com/wiki/SpawnPlayer https://wiki.multitheftauto.com/wiki/CreateTeam
  14. Castillo

    GhostMode

    WTF is this? just random code, please go back to the wiki: https://wiki.multitheftauto.com/wiki/Scripting_Introduction
  15. Castillo

    "EXP"

    thats right, nobody will waste his time scripting this for you.
  16. he/you forgot about alpha argument.. https://wiki.multitheftauto.com/wiki/DxDrawImage local defR = 255 local defG = 255 local defB = 255 function changeBackground(r,g,b) defR, defG, defB = r, g, b end addEventHandler("onClientPlayerDamage", getLocalPlayer(), function() changeBackground(255, 0, 0) setTimer(changeBackground, 1000, 1, 255, 255, 255) end) addEventHandler("onClientRender", getRootElement(), function() dxDrawImage(37, 450.5, 147.5, 130,"asd.png",0.0,0.0,0.0,tocolor(255, defR, defG, defB),false) end)
  17. omg people! this is not a complete game mode! this is the spawn menu only as it says topic name!
  18. background is a function right?
  19. you got to script this, there is no such resource.
  20. function buyweapon(playerSource, commandName) local buyweapon = guiCreateWindow ( 0.3398, 0.2333, 0.3297, 0.6500, "Weapon Shop", true ) local buyweapondeagle = guiCreateButton ( 0.2915, 0.0369, 0.4242, 0.0641, "Deagle", true, buyWeapon ) local buyweapontec9 = guiCreateButton ( 0.2938, 0.1058, 0.4265, 0.0609, "Tec-9", true, buyWeapon ) guiSetVisible ( buyweapon, true ) end addCommandHandler("buyweapons", buyweapon) this code works fine at my server. btw: you added at buyweapontec9 you did buyweapontec-9 and that makes a unexpected simbol.
  21. there is no reason to say a nil value about guiCreateWindow..
  22. addEventHandler("onVehicleSpawn", getRootElement(), function() -- source = spawned vehicle if (getElementModel(source)== 514) then local x,y,z = getElementPosition(source) local rx, ry, rz = getElementRotation(source) local lx, ly = getPositionRelatedToVehicle(source, -3, -3) local trailer = createVehicle(591, lx, ly, z) setElementRotation(trailer, 0, 0, rz) attachTrailerToVehicle(trailer, source) end end)
  23. you are doing the script server side not client side!
  24. platanium, read topic date!!!! Wed Sep 22, 2010 12:03 pm
×
×
  • Create New...