Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. Did you use dbPoll with -1 in second argument in the resource? If so, it will freeze.
  2. function playerChat(message, messageType) if messageType == 2 then cancelEvent() local acc = getPlayerAccount(source) if not isGuestAccount(acc) then if getAccountData(acc,"chatc") and getElementData(source, "Vip") == true then local color = getAccountData(acc,"chatc") for i,team in ipairs(getPlayersInTeam(getPlayerTeam(source))) do local r,g,b = getTeamColor(getPlayerTeam(source)) if ( r ) and ( g ) and ( b ) then outputChatBox(RGBToHex(r,g,b).."(TEAM): "..getPlayerName(source)..": "..color..""..message, root, r, g, b, true ) else outputChatBox(RGBToHex(r,g,b).."(TEAM): "..getPlayerName(source)..": #FFFFFF"..message, root, r, g, b, true ) end end else outputChatBox("(TEAM): "..getPlayerName(source)..": #FFFFFF"..message, root, r, g, b, true ) end outputServerLog("CHAT: "..getPlayerName(source)..": "..message) end end end addEventHandler("onPlayerChat", root, playerChat) 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
  3. function playerChat(message, messageType) if messageType == 2 then cancelEvent() local acc = getPlayerAccount(source) if not isGuestAccount(acc) then if getAccountData(acc,"chatc") and getElementData(source, "Vip") == true then local color = getAccountData(acc,"chatc") for i,team in ipairs(getPlayersInTeam(getPlayerTeam(source))) do local r,g,b = getTeamColor(getPlayerTeam(source)) if ( r ) and ( g ) and ( b ) then outputChatBox(RGBToHex(r,g,b).."(TEAM): "..getPlayerName(source)..": "..color..""..message, root, r, g, b, true ) else outputChatBox(RGBToHex(r,g,b).."(TEAM): "..getPlayerName(source)..": #FFFFFF"..message, root, r, g, b, true ) end else outputChatBox("(TEAM): "..getPlayerName(source)..": #FFFFFF"..message, root, r, g, b, true ) end outputServerLog("CHAT: "..getPlayerName(source)..": "..message) end end end addEventHandler("onPlayerChat", root, playerChat) 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
  4. Anubhav

    Connect COL?

    onColShapeHit and see if the thing which hit is a colshape. ( might work )
  5. local shader = dxCreateShader ( "crosshair/replace.fx" ) local dot = dxCreateTexture("crosshair/img/dot.png") local assault = dxCreateTexture("crosshair/img/assault.png") local pistol = dxCreateTexture("crosshair/img/pistol.png") local shotgun = dxCreateTexture("crosshair/img/shotgun.png") local smg = dxCreateTexture("crosshair/img/smg.png") function replaceCrosshair() if getControlState("aim_weapon") then if getPedWeaponSlot( getLocalPlayer() ) == 2 then engineRemoveShaderFromWorldTexture(shader, "siteM16") dxSetShaderValue(shader, "gTexture", pistol) engineApplyShaderToWorldTexture(shader, "siteM16") elseif getPedWeaponSlot( getLocalPlayer() ) == 3 then engineRemoveShaderFromWorldTexture(shader, "siteM16") dxSetShaderValue(shader, "gTexture", shotgun) engineApplyShaderToWorldTexture(shader, "siteM16") elseif getPedWeaponSlot( getLocalPlayer() ) == 4 then engineRemoveShaderFromWorldTexture(shader, "siteM16") dxSetShaderValue(shader, "gTexture", smg) engineApplyShaderToWorldTexture(shader, "siteM16") elseif getPedWeaponSlot( getLocalPlayer() ) == 5 then engineRemoveShaderFromWorldTexture(shader, "siteM16") dxSetShaderValue(shader, "gTexture", assault) engineApplyShaderToWorldTexture(shader, "siteM16") else engineRemoveShaderFromWorldTexture(shader, "siteM16") dxSetShaderValue(shader, "gTexture", dot) engineApplyShaderToWorldTexture(shader, "siteM16") end end end addEventHandler("onClientRender", root, replaceCrosshair)
  6. Yes, you can belive. But take a screenshot of the payment and these all things. if they scam you, you can post a help ticket. If they don't agree just contact your countries FBI.. They might help you out
  7. Change resourceRoot to localPlayer .
  8. Show me the trigger from client.
  9. change addEventHandler's 2nd argument to root, it might work!
  10. What's getting wrong in it? You're doing it correct
  11. Thank you, but it's not needed! I'll need someone's help at the moment, and fast. It might release today~!
  12. Thanks. I was thinking on it too. Less graph less ram consumption right? But, since i do not know any linux command i would need help to install the mysql db and the server... Contact me. I'd help you or see the wiki. https://wiki.multitheftauto.com/wiki/In ... _GNU_Linux
  13. Case closed, IIYAMA helped me on skype! Many thanks to him!
  14. rules = { } rulesInfo = {} colorSet = false showing = false currentText = "- Please select a menu! -" rules[ 'Server Staff' ] = { acceptX = (screenW - 202) / 2 - 295, acceptY = (screenH - 39) / 2 - 90.50, acceptW = ((screenW - 202) / 2 - 295) + 152, acceptH = ( (screenH - 39) / 2 - 90.50) + 30, color = tocolor( 255, 255, 255, 255 ) } rules[ 'Server Rules' ] = { acceptX = (screenW - 202) / 2 - 295, acceptY = (screenH - 39) / 2 - 41.50, acceptW = ((screenW - 202) / 2 - 295) + 152, acceptH = ( (screenH - 39) / 2 - 41.50) + 29, color = tocolor( 255, 255, 255, 255 ) } rules[ 'Server News' ] = { acceptX = (screenW - 202) / 2 - 295, acceptY = (screenH - 39) / 2 + 56.50, acceptW = ((screenW - 202) / 2 - 295) + 152, acceptH = ( (screenH - 39) / 2 + 56.50) + 31, color = tocolor( 255, 255, 255, 255 ) } rules[ 'Server Information' ] = { acceptX = (screenW - 202) / 2 - 295, acceptY = (screenH - 39) / 2 + 7.50, acceptW = ((screenW - 202) / 2 - 295) + 218, acceptH = ( (screenH - 39) / 2 + 7.50) + 29, color = tocolor( 255, 255, 255, 255 ) } rules[ 'Server Player Count' ] = { acceptX = (screenW - 202) / 2 - 295, acceptY = (screenH - 39) / 2 + 105.50, acceptW = ((screenW - 202) / 2 - 295) + 233, acceptH = ( (screenH - 39) / 2 + 105.50) + 33, color = tocolor( 255, 255, 255, 255 ) }
  15. If you could suggest me colors, I'd be grateful ( I have no idea of colors ) . Outlined it! But working on the buttons, those dx text clicks take time!
×
×
  • Create New...