Jump to content

-.Paradox.-

Members
  • Posts

    1,239
  • Joined

  • Last visited

Everything posted by -.Paradox.-

  1. Sorry, but i didn't understand what you meant
  2. Bad argument @'getPlayerNametagColor' line 11
  3. "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." 1 step from a genius to a fool. @Grafu In scripting section, we help people with their scripts not to complain about signatures of who try to help, and I don't have time for your crap. Scripting section rules if you don't know them. viewtopic.php?f=91&t=15740 @Spider If you are using play gamemode, then use getElementModel to get the player's skin when he die, and use setElementModel to set player skin after respawn. And next time use Lua tags.
  4. You made it? Lol and you are asking me to help you Read here viewtopic.php?f=91&t=71604&start=15
  5. Hello, Can somebody please show me how i can create exported function for my Level script? I want use setPlayerXP(thePlayer, 0)In stead of using setElementData(thePlayer, "XP", 0) Thanks for help, and if you can't help just show me a wiki example and i will try to make it.
  6. ERROR: Chat/basic_s.lua:2:attempt to compare boolean with number function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end local function onplayerChat(message, messageType) if messageType == 2 then --Team (Clan) chat cancelEvent() local name = getPlayerName(source) local red, green, blue = getPlayerNametagColor(name) local hex = RGBToHex ( red, green, blue ) outputChatBox("#9AFE2E(CLAN)" .. hex .." "..name.."#FFFFFF:"..message, root, 255, 255, 255, true ) outputServerLog("(TEAM): "..getPlayerName(source)..": "..message)--NOTE: Beacuse we cancelled the onPlayerChat event, we need to log chat manually. end end addEventHandler("onPlayerChat", root, onplayerChat)
  7. Now it's working, but i want to output a colored (CLAN) Text and after it the Player name tag color, any ideas?
  8. Hello, guys any I'm wondering how to loop players in team in a gridlist, and make it refresh every second, thanks.
  9. Post what you tried, we can't help you without posting you're code.
  10. Oh yeah shit my bad, thanks anyway
  11. I did this first time, but it output no errors in debug and it don't output player nametag color in the clan chat, it output all the Text with green color..
  12. Hello guys, i tried to getPlayerNametagColor when player talk in team chat, but i get this error WARNING: Test\server:5: Bad Argument @ 'getPlayerNametagColor' Server: local function onplayerChat(message, messageType) if messageType == 2 then --Team (Clan) chat cancelEvent() local name = getPlayerName(source) local red, green, blue = getPlayerNametagColor(name) outputChatBox("#9AFE2E(CLAN)"..name..": #FFFFFF"..message, root, red, green, blue, true ) outputServerLog("(TEAM): "..getPlayerName(source)..": "..message)--NOTE: Beacuse we cancelled the onPlayerChat event, we need to log chat manually. end end addEventHandler("onPlayerChat", root, onplayerChat)
  13. Still can't hear both of them
  14. Thanks, but when i play proxy first and then crackin, i can hear both of them, so i tried to fix it but didnt work, now both of them cannot be played local currentPlaying function proxy() if isElement(currentPlaying) then destroyElement(currentPlaying) local currentPlaying = playSound("music/proxy.mp3") setSoundVolume(currentPlaying, 50) --setSoundMaxDistance( currentPlaying, 5000 ) end end addEvent( "proxy", true ) addEventHandler( "proxy", getRootElement(), proxy ) function crackin( name ) if isElement(currentPlaying) then destroyElement(currentPlaying) local currentPlaying = playSound("music/crackin.mp3") setSoundVolume(currentPlaying, 50) setSoundMaxDistance( currentPlaying, 5000 ) end end addEvent( "crackin", true ) addEventHandler( "crackin", getRootElement(), crackin )
  15. Can't understand, can you fix it?
  16. -.Paradox.-

    [Help]

    Btw, guiSetEnabled is client side only, and setPedStat is serverside, so you have to trigger it
  17. -.Paradox.-

    [Help]

    if getPedStat(weaponid, statid) then guiSetEnabled(...) end
×
×
  • Create New...