Jump to content

micheal1230

Members
  • Posts

    390
  • Joined

  • Last visited

Everything posted by micheal1230

  1. Well It Says Bad String And Bad Point Bad String On Line 4 And Pointer On Line 5 And The Mod Doesnt Load Up! HELP! txd = engineLoadTXD("138.txd") engineImportTXD(txd, 138) dff = engineLoadDFF("138.dff") engineReplaceModel(txd, 138)
  2. I Want to mod skin 138 and change it from a woman to man, i have downloaded a skin mod off the internet and used a script to load the TXD And DFF But it doesnt work! txd = engineLoadTXD("138.txd") engineImportTXD(txd, 138) dff = engineLoadDFF("138.dff") engineImportDFF(txd, 138)
  3. Well i get no error but the water dont show the script is client side function createwater() createWater ( 724.58984375, -1046.759765625, 45.886260986328, 716.1845703125, -1041.908203125, 45.886260986328, 708.4091796875, -1055.3740234375, 45.886260986328, 716.8125, -1060.228515625, 45.886260986328 ) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), createwater)
  4. I Dont Understand Use It Where? Instead Of What?
  5. I Cant make it admin only local godModeState = false addCommandHandler ( "godmode", function ( ) if exports.global:isPlayerSuperAdmin( ) godModeState = ( not godModeState ) outputChatBox ( "God Mode is now ".. ( godModeState and "Enabled" or "Disabled" ) ..".", 0, 255, 0 ) end end ) function togdamage ( attacker, weapon, bodypart ) if ( godModeState ) then cancelEvent ( ) end end addEventHandler ( "onClientPlayerDamage", localPlayer, togdamage )
  6. Well here is my script to ask you if it will work function togdamage ( attacker, weapon, bodypart ) if ( weapon == 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 ) then cancelEvent() end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), togdamage ) addCommandHandler ("godmode",togdamage)
  7. Is it not possible withaddCommandHandler
  8. Is there A GodMode Function And What Is It? I Cant Find It On the Wiki
  9. There is no error but it doesnt work function cargodmode(thePlayer) name = getPlayerName(thePlayer) if name == "Harry_Shea" then setVehicleDamageProof(thePlayer, true) outputChatBox("Car GodMode On",thePlayer) end end addCommandHandler("cargodon",cargodmode) function cargodmode1(thePlayer) name = getPlayerName(thePlayer) if name == "Harry_Shea" then setVehicleDamageProof(thePlayer, false) outputChatBox("Car GodMode Off",thePlayer) end end addCommandHandler("cargodoff",cargodmode1)
  10. Fixed it you needed to do /mp3play time_to_say_goodbye.mp3
  11. The Error is BASS ERROR 2 in LoadMedia path:C:\Program Files\MTA San Andreas 1.3\mods\deathmatch\resources\worldmusic-system\time-to-say-goodbye 3d:0 loop:0 ClientSide: function soundplayer(soundname) if (thesound) then stopSound(thesound) end thesound = playSound(soundname, false) setSoundVolume(thesound, 0.5) end addEvent("onClientPlayMP3", true) addEventHandler("onClientPlayMP3", getRootElement(), soundplayer) --Volume Controls function louder() outputChatBox("MP3 Volume is at Max.", source) setSoundVolume(thesound, 1.0) end addCommandHandler("mp3up", louder) function quieter() outputChatBox("MP3 volume now at 25%", source) setSoundVolume(thesound, 0.25) end addCommandHandler("mp3down", quieter) function stfu() outputChatBox("MP3 now stopped.", source) stopSound(thesound) end addCommandHandler("musicoff", stfu) addEvent("onClientStopMP3", true) addEventHandler("onClientStopMP3", getRootElement(), stfu) ServerSide: function playthatsound(sourcePlayer, command, song) if (exports.global:isPlayerHeadAdmin(sourcePlayer)) then --local thesong = soundname .. ".mp3" local soundname = song triggerClientEvent( "onClientPlayMP3", getRootElement(), soundname) end end addCommandHandler("playmp3", playthatsound) function stfuserver(sourcePlayer, command) if (exports.global:isPlayerHeadAdmin(sourcePlayer)) then triggerClientEvent( "onClientStopMP3", getRootElement()) end end addCommandHandler("stopmp3", stfuserver)
  12. I get A Malformed Number Error local noob = getPlayerIP(source) function noobkicker(source) if noob == 94.18.22.209 then kickPlayer(source,"You Have Been Kicked By Harry's Noob Kicker.") end
  13. Is Adding A New Object To MTA Possible I Dont Mean Editting A Object With A TXD And DFF I Mean Making A Whole New Object From A TXD And DFF
  14. I get this when i add a new shop here is the script error is line 22 function createShopKeeper(x,y,z,interior,dimension,id,shoptype,rotation, skin) if not skin then skin = 0 if shoptype == 3 then skin = 168 -- needs differences for burgershot etc if interior == 5 then skin = 155 elseif interior == 9 then skin = 167 elseif interior == 10 then skin = 205 elseif dimension == 1355 then skin = 171 end -- interior 17 = donut shop else -- clothes, interior 5 = victim -- clothes, interior 15 = binco -- clothes, interior 18 = zip skin = skins[shoptype][math.random( 1, #skins[shoptype] )] end end
  15. Mate now it does'nt work when i inject it at 100 Health it Just set my health to 100 Again it doesnt take away 50 Health
  16. Well i have scripted a item so when you have 100 health when you inject the morphine you loose health but when you have any health thats not 100 it set's your health to 100 My Script elseif (itemID == 152) then -- Morphine if getElementHealth(source, 100) then setElementHealth(source, 50) exports.global:sendLocalMeAction(source, "inject's some morphine into himself and start's to feel dizzy.") else exports.global:sendLocalMeAction(source, "inject's some morphine into himself.") setElementHealth(source, 100) end
×
×
  • Create New...