
micheal1230
Members-
Posts
390 -
Joined
-
Last visited
Everything posted by micheal1230
-
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)
-
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)
-
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)
-
Does'nt Work
-
I Dont Understand Use It Where? Instead Of What?
-
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 )
-
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)
-
Is it not possible withaddCommandHandler
-
Is there A GodMode Function And What Is It? I Cant Find It On the Wiki
-
Thank You
-
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)
-
Fixed it you needed to do /mp3play time_to_say_goodbye.mp3
-
In the worldmusic-system folder
-
time-to-say-goodbye
-
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)
-
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
-
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
-
Attempt to Get 'length of field' ? ( a nil value )
micheal1230 replied to micheal1230's topic in Scripting
Never Mind I Fixed it -
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
-
Morphine Item Does'nt Do else Code if health is not 100
micheal1230 replied to micheal1230's topic in Scripting
Same Thing! -
Morphine Item Does'nt Do else Code if health is not 100
micheal1230 replied to micheal1230's topic in Scripting
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 -
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
-
Attempt To Index Local 'result' a nil value - HELP!
micheal1230 replied to micheal1230's topic in Scripting
Nope