Get Mapname from meta.xml
#1

Hi i need some help i have rly no idea how i can load the Mapname + Author from a meta.xml

Код HTML:
<meta>
    <file src="gta_tree_palm.txd"></file>
    <file src="gta_tree_palm2.txd"></file>
    <file src="veg_palm02.dff"></file>
    <file src="veg_palm03.dff"></file>
    <file src="stopbord/left/lframe0.png" type="client"></file>
    <file src="stopbord/left/lframe1.png" type="client"></file>
    <file src="stopbord/left/lframe2.png" type="client"></file>
    <file src="stopbord/left/lframe3.png" type="client"></file>
    <file src="stopbord/right/rframe0.png" type="client"></file>
    <file src="stopbord/right/rframe1.png" type="client"></file>
    <file src="stopbord/right/rframe2.png" type="client"></file>
    <file src="stopbord/right/rframe3.png" type="client"></file>
    <file src="texreplace.fx"></file>
    <file src="music2.mp3"></file>
    <script src="slowmotion.lua" type="client"></script>
    <script src="clientpalm.lua" type="client"></script>
    <script src="texturevervangen.lua" type="client"></script>
    <script src="texturevervangen1.lua" type="client"></script>
    <script src="client.lua" type="client"></script>
    <script src="client2.lua" type="client"></script>
    <script src="client3.lua" type="client"></script>
    <script src="client4.lua" type="client"></script>
    <script src="music.lua" type="client"></script>
    <script src="mapEditorScriptingExtension_s.lua" type="client"></script>
    <script src="mapEditorScriptingExtension_c.lua" type="client" validate="false"></script>
    <info gamemodes="race" type="map" name="[DM] RaGeX ft. DraPeD ft. Packy - After Earths Legacy" version="1.3"></info>
    <map src="RAGEXPACKYDRAPED-LASTVERSION.map" dimension="0"></map>
    <settings>
        <setting name="#skins" value='[ &quot;cj&quot; ]'></setting>
        <setting name="#maxplayers" value="[ 128 ]"></setting>
        <setting name="#gamespeed" value="[ 1 ]"></setting>
        <setting name="#ghostmode" value='[ &quot;false&quot; ]'></setting>
        <setting name="#stunde" value="0"></setting>
		<setting name="#minute" value="0"></setting>
        <setting name="#vehicleweapons" value='[ &quot;false&quot; ]'></setting>
        <setting name="#minplayers" value="[ 0 ]"></setting>
        <setting name="#weather" value="[ 1 ]"></setting>
        <setting name="#gravity" value="[ 0.008000 ]"></setting>
        <setting name="#waveheight" value="[ 0 ]"></setting>
        <setting name="#respawntime" value="[ 5 ]"></setting>
        <setting name="#locked_time" value="[ true ]"></setting>
        <setting name="#duration" value="[ 1800 ]"></setting>
        <setting name="#respawn" value='[ &quot;timelimit&quot; ]'></setting>
    </settings>
</meta>
example code ^^
Reply
#2

Maybe search a bit before posting...

https://sampforum.blast.hk/showthread.php?tid=150755
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)