Paper

Members
  • Content Count

    127
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Paper

  • Rank
    Poot-butt

Details

  • Gang
    SAMR
  1. i don't think you can do it...
  2. Paper

    Parkour

    For the first release i'm not using any animation, but in future releases i think i will implement some of them
  3. Paper

    Parkour

    I'm making a gamemode similiar to race but you are on foot and you have to use the parkour style to reach the final checkpoint, but actually it's in pause, i'm at 35% of development
  4. Paper

    Need help.

    local sondID function startMusic() setRadioChannel(0) song = playSound("music"..songID..".mp3",true) outputChatBox("#ffffff* #C0FF3ETurn on/off Music Using #FFFFFF\"M\"",255,255,255,true) end function makeRadioStayOff() setRadioChannel(0) cancelEvent() end function toggleSong(player, command, songID) if not songID and type(songID) == "number" then if not songOff then setSoundVolume(song,0) sondID = nil songOff = true removeEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) else setSoundVolume(song,1) songOff = false sondID = songID setRadioChannel(0) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) end else outputChatBox("#ffffff* #C0FF3ECommand syntax: /musicmusic [songID]",255,255,255,true) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),startMusic) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) addEventHandler("onClientPlayerVehicleEnter",getRootElement(),makeRadioStayOff) addCommandHandler("musicmusic",toggleSong) addEventHandler("onClientResourceStop",getResourceRootElement(getThisResource()),startMusic) Try this, but you can't use the bind key anymore
  5. Paper

    Need help.

    You have to add the mp3 file in the meta.xml and add a command like /playsong [1/2/3] where 1-2-3 are the song's id
  6. I don't like it but... nice one
  7. Oh, my bad... i wrote this fast so i could not review it
  8. Simply: compatibleMaps=exports.mapmanager:getMapsCompatibleWithGamemode(getThisResource()) for index, map in ipairs(compatibleMaps) do nubCP = #getElementsByType(map, 'checkpoint') end
  9. Can you explain better your problem?
  10. Mhh assomiglia molto a un pannello creato da Nextreme Comunque... puoi dirmi di preciso qual'è l'errore che ti da nel debugscript?
  11. Paper

    Writing a gamemode

    I don't need this script because i will use this function in the gamemode... Anyway i solved in another way, thanks anyway
  12. Paper

    Writing a gamemode

    Exhaustive anserw... why it's not the same?
  13. Paper

    Writing a gamemode

    I think it's the same thing this: exports.mapmanager:getMapsCompatibleWithGamemode(getThisResource())
  14. Paper

    Writing a gamemode

    I should add this line in the map's meta? In the race maps i don't see any line that includes race resource
  15. Paper

    Writing a gamemode

    You mean the folder name? Yes it's "blabla"