Jump to content

wtf is it?


Recommended Posts

all improvviso mta non mi carica piu la mia v1.. dicendo "as it contains illegal charaters"

eppure il giorno prima caricava

apro gli script con notepad++

e

alla fine di ogni riga c è scritto "CR LF" .. su sfondo nero

ho provato a fixarla.. ci sono riuscito..

.. ma ho aperto il server un altra volta..

e "as it contains illegal charaters"

è un problema legato al programma o mta? (sul blocco note standar non compaiono quelle scritte)

come posso risolvere???

grazie. :D

Link to comment

client.lua

  
---marker script--- 
  
jump1 = createMarker(3146.2739257813, -604.94769287109, 5.5285000801086, "corona", 8, 0, 255, 255, 0) 
  
  
  
function jumps(player) 
 if getElementType(player)=="player" then 
     local vehicle = getPedOccupiedVehicle(player) 
        if source == jump1 then 
            setElementVelocity(vehicle, 1, 0, 0.15) 
            setElementRotation(vehicle, 0, 0, 270) 
end    
end 
  
  
  
---end of function, now--- 
  
end 
  
  
addEventHandler("onClientMarkerHit", resourceRoot, jumps) 
  
  
  
---retexture--- 
  
  
function retexture () 
palmtxd = engineLoadTXD("gta_tree_palm.txd") 
engineImportTXD(palmtxd, 622 ) 
local palmdff = engineLoadDFF('veg_palm03.dff', 0) 
engineReplaceModel(palmdff, 622) 
  
  
end 
addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), retexture ) 
  
---chat,water sky--- 
  
outputChatBox ("", 255, 255, 255, true) 
outputChatBox ("", 255, 255, 255, true) 
outputChatBox ("", 255, 255, 255, true) 
outputChatBox ("", 255, 255, 255, true) 
outputChatBox ("", 255, 255, 255, true) 
outputChatBox ("", 255, 255, 255, true) 
outputChatBox ("", 255, 255, 255, true) 
setWaterColor(0, 210, 210, 256) 
setSkyGradient( 0, 250, 250, 150, 250, 250 ) 
  
---no clouds--- 
  
setCloudEnabled ( false ) 
  
  

CSM.lua

---invisibleobject--- 
  
noCollsTab = {} 
noScaleTab = {} 
addEventHandler("onClientResourceStart", resourceRoot, function() 
    local i = 1 
    while(i <= #noCollsTab)do 
        setElementCollisionsEnabled(noCollsTab[i], false) 
        i=i+1 
    end 
    local j = 1 
    while(j <= #noScaleTab)do 
        setObjectScale(noScaleTab[j], 0) 
        j=j+1 
    end 
end 
) 
table.insert(noScaleTab, createObject(3458,3157.720703125,-644.892578125,-0.80002123117447,0,1.99951171875,0)) 
table.insert(noScaleTab, createObject(3458,3157.669921875,-650.01800537109,-0.80002123117447,0,1.99951171875,0)) 
table.insert(noScaleTab, createObject(3458,3157.8232421875,-565.6484375,-0.80002123117447,0,1.99951171875,0)) 
table.insert(noScaleTab, createObject(3458,3157.8828125,-560.533203125,-0.80000001192093,0,1.99951171875,0)) 
table.insert(noScaleTab, createObject(8355,3901.04296875,-604.5439453125,8.5,356.99523925781,0,90)) 
table.insert(noScaleTab, createObject(8838,3502.587890625,-591.9130859375,3,0,0,0)) 
table.insert(noScaleTab, createObject(8838,3502.4833984375,-587.0380859375,3,0,0,0)) 
table.insert(noScaleTab, createObject(8838,3502.8359375,-581.853515625,3,0,0,0)) 
table.insert(noScaleTab, createObject(8838,3501.9208984375,-576.9306640625,3,0,0,0)) 
table.insert(noScaleTab, createObject(8838,3501.73046875,-619.0673828125,3,0,0,0)) 
table.insert(noScaleTab, createObject(8838,3502.484375,-624.0966796875,3,0,0,0)) 
table.insert(noScaleTab, createObject(8838,3502.26953125,-629.091796875,3,0,0,0)) 
table.insert(noScaleTab, createObject(8838,3502.052734375,-634.111328125,3,0,0,0)) 
  
  
  

museplay.lua

function startMusic() 
    setRadioChannel(0) 
    song = playSound("music.mp3",true) 
end 
  
function makeRadioStayOff() 
    setRadioChannel(0) 
    cancelEvent() 
end 
  
function toggleSong() 
    if not songOff then 
        setSoundVolume(song,0) 
        songOff = true 
        removeEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) 
    else 
        setSoundVolume(song,1) 
        songOff = false 
        setRadioChannel(0) 
        addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) 
    end 
end 
  
addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),startMusic) 
addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) 
addEventHandler("onClientPlayerVehicleEnter",getRootElement(),makeRadioStayOff) 
addCommandHandler("musicmusic",toggleSong) 
bindKey("m","down","musicmusic") 
addEventHandler("onClientResourceStop",getResourceRootElement(getThisResource()),startMusic) 

file [DM]giampa-_-Vol1-_-G'xperiment.map

file gta_tree_palm.txd

file veg_palm03.dff

file music.mp3

meta.xml

 
    "gta_tree_palm.txd">
    "veg_palm03.dff">
    "music.mp3">
    
    
    
    
    "race" type="map" name="giampa" author="g xperiment" version="1.0.0">
    "[DM]giampa-_-Vol1-_-G'xperiment.map" dimension="0">
    
        "#skins" value='[ "cj" ]'>
        "#maxplayers" value="[ 128 ]">
        "#gamespeed" value="[ 1 ]">
        "#ghostmode" value='[ "false" ]'>
        "#time" value="1:0">
        "#vehicleweapons" value='[ "false" ]'>
        "#minplayers" value="[ 0 ]">
        "#weather" value="[ 4 ]">
        "#gravity" value="[ 0.008000 ]">
        "#waveheight" value="[ 0 ]">
        "#respawntime" value="[ 5 ]">
        "#locked_time" value="[ false ]">
        "#duration" value="[ 1800 ]">
        "#respawn" value='[ "timelimit" ]'>
    

  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...