barikat

Members
  • Content Count

    136
  • Joined

  • Last visited

Community Reputation

2 Neutral

1 Follower

About barikat

  • Rank
    Poot-butt
  • Birthday 18/02/1975

Details

  • Occupation
    WOC-TR Team Destruction Derby 5.62.126.241:10200
  • Interests
    WOC-TR Team Destruction Derby 5.62.126.241:10200

Recent Profile Visitors

888 profile views
  1. barikat

    vehicle skin shader

    Thanks its working.
  2. barikat

    vehicle skin shader

    incorrect
  3. barikat

    vehicle skin shader

    #include "mta-helper.fx" float2 resolution = float2(1, 1); float intensity = 1; float opacity = 1; float3 color = float3(1.0, 1.0, 1.0); float rate = 1.0; struct vsin { float4 Position : POSITION; float2 TexCoord : TEXCOORD0; }; struct vsout { float4 Position : POSITION; float2 TexCoord : TEXCOORD0; }; vsout vs(vsin input) { vsout output; output.Position = mul(input.Position, gWorldViewProjection); output.TexCoord = input.TexCoord; return output; } float4 ps(vsout input) : COLOR0 { float time = gTime * 0.5 + gTime * rate; float2 p = (input.TexCoord.xy * 2.0 - resolution) / min(resolution.x, resolution.y); float f = 0.0; for(float i = 0.0; i < 10.0; i++){ float s = sin(time + i * 0.628318) * 0.5; float c = cos(time + i * 0.628318) * 0.5; f += 0.0025 / abs(length(p + float2(c, s)) - 0.5); } float outFX = saturate(opacity * f); return float4(color * intensity, outFX); } float countDepthBias(float minBias, float maxBias, float closeBias) { float4 viewPos = mul(float4(gWorld[3].xyz, 1), gView); float4 projPos = mul(viewPos, gProjection); float depthImpact = minBias + ((maxBias - minBias) * (1 - saturate(projPos.z / projPos.w))); depthImpact += closeBias * saturate(0.5 - (viewPos.z / viewPos.w)); return depthImpact; } technique tec { pass Pass0 { SlopeScaleDepthBias = -0.5; DepthBias = countDepthBias(-0.000002, -0.0004, -0.001); AlphaBlendEnable = true; AlphaRef = 1; VertexShader = compile vs_3_0 vs(); PixelShader = compile ps_3_0 ps(); } } you can this? same problem
  4. barikat

    vehicle skin shader

    vehicle components hided. I'm using this fx file; #include "mta-helper.fx" float size = 30.0; float speed= .75; float2 resolution = float2(1, 1); float intensity = 1; float opacity = 1; float3 color = float3(1.0, 1.0, 1.0); float rate = 1.0; struct vsin { float4 Position : POSITION; float2 TexCoord : TEXCOORD0; }; struct vsout { float4 Position : POSITION; float2 TexCoord : TEXCOORD0; }; vsout vs(vsin input) { vsout output; output.Position = mul(input.Position, gWorldViewProjection); output.TexCoord = input.TexCoord; return output; } float random(float2 co){ return frac(sin(dot(co.xy ,float2(12.9898,78.233))) * 43758.5453); } float3 random_color(float2 coords){ float a = floor(random(coords.xy*6.896)*7.); //(2^3)-1 // { return float3(0.,0.,0.); } //BLACK if (a == 0.) { return float3(1.,0.,0.); } //RED if (a == 1.) { return float3(0.,1.,0.); } //GREEN if (a == 2.) { return float3(1.,1.,0.); } //YELLOW if (a == 3.) { return float3(0.,0.,1.); } //BLUE if (a == 4.) { return float3(1.,0.,1.); } //MAGENTA if (a == 5.) { return float3(0.,1.,1.); } //CYAN else { return float3(1.,1.,1.); } //WHITE } float tri(float x){ x = (x%2.0); if (x > 1.0) x = -x+2.0; return x; } float chess_dist(float2 uv) { return max(abs(uv.x),abs(uv.y)); } float4 ps(vsout input) : COLOR0 { float time = gTime * (0.5 + rate * 2.); float2 uv = -1.0 + 2.0 * input.TexCoord.xy / resolution.xy; uv.y *= resolution.y/resolution.x; float3 colors = color * random_color(floor(uv*size))*step(chess_dist((frac(uv*size)-.5)*2.),tri((((time*speed)+((random(floor(uv*size)))*2.))))); float outFX = saturate(opacity * colors); return float4(colors * intensity, outFX); } float countDepthBias(float minBias, float maxBias, float closeBias) { float4 viewPos = mul(float4(gWorld[3].xyz, 1), gView); float4 projPos = mul(viewPos, gProjection); float depthImpact = minBias + ((maxBias - minBias) * (1 - saturate(projPos.z / projPos.w))); depthImpact += closeBias * saturate(0.5 - (viewPos.z / viewPos.w)); return depthImpact; } technique tec { pass Pass0 { SlopeScaleDepthBias = -0.5; DepthBias = countDepthBias(-0.000002, -0.0004, -0.001); AlphaBlendEnable = true; AlphaRef = 1; VertexShader = compile vs_3_0 vs(); PixelShader = compile ps_3_0 ps(); } } theTechnique = dxCreateShader( "type1.fx" ) dxSetShaderValue(theTechnique,"color",255,255,255,255) dxSetShaderValue(theTechnique,"opacity",1) dxSetShaderValue(theTechnique,"intensity",1) function applyShader(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer then engineApplyShaderToWorldTexture(theTechnique, "vehiclegrunge256", theVehicle) engineApplyShaderToWorldTexture(theTechnique, "?emap*", theVehicle) end end addEventHandler("onClientVehicleEnter", getRootElement(), applyShader) function removeShader(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer then engineRemoveShaderFromWorldTexture(theTechnique, "vehiclegrunge256", theVehicle) engineRemoveShaderFromWorldTexture(theTechnique, "?emap*", theVehicle) end end addEventHandler("onClientVehicleExit", getRootElement(), removeShader)
  5. WOC-DD Destruction Derby mtasa://185.153.231.211:22003 Tuşlar; -F1 Takım kurma paneli -F2 Donator panel -F3 En iyiler sıralaması -F5 Top map wins -F7 Youtube -R Radyo -K Duman açma/kapama -L Yol desenleri Özellikler; -Sununun en iyi 3 oyuncusunda nametag üzerinde logo gözükür. -Harita başlangıcında 5 saniye anti spawn kill vardır. -Anti camp - oldugunuz yerde ileri geri yapıp beklerseniz uyarı alırsınız devamında otomatik öldürür sistem. Login panel TAKIM PANELİ DONATOR PANEL SERVER SIRALAMASI HARİTA KAZANMA YOUTUBE TAB SCOREBOARD
  6. barikat

    WOC-DD Cross Server

    WOC-DD Cross mtasa://185.153.231.211:22003 F5 - Top map wins F1 - Clan manager F3 - Server top list F2 - Donator panel Anti spawn kill for 5 second. Anti camp Podium for winner Rank logo for top players on nametag(1.2.3.) Multi language coming soon
  7. barikat

    [SELL]Destruction Derby Topwins

    -Topwins for DD mode. -Animation open/close. Price:15€
  8. barikat

    Remaning players team

    function endGame(id, winner) if isElement(winner) then outputChatBox(getPlayerName(winner).." has won the game!", root, 255,255,255,true) end end function onPlayerWasted(totalAmmo, killer, killerWeapon) local playerGame = getElementData(source, "player:game") or false if playerGame and playerGame[1] then local gameID = playerGame[1] for k,v in ipairs(game[gameID].players) do if v == source then table.remove(game[gameID].players, k) end end if getElementData(source,"gang") then for k,v in ipairs(getElementsByType ( "player" )) do if getElementData(v,"gang") == getElementData(source, "gang") then endGame(gameID, game[gameID].players[v]) end end else if #game[gameID].players <= 1 then endGame(gameID, game[gameID].players[1]) end end end end I wrote this, but it does not work.
  9. barikat

    Remaning players team

    local playerGame = getElementData(source, "player:game") or false if playerGame and playerGame[1] then local gameID = playerGame[1] for k,v in ipairs(game[gameID].players) do if v == source then table.remove(game[gameID].players, k) end end if #game[gameID].players <= 1 then endGame(gameID, game[gameID].players[1]) end end full code, anyone help me?
  10. barikat

    Remaning players team

    If the remaining players have the same team, I want to end the game. Can you help me? This code only one player send to winner element. if #game[gameID].players <= 1 then endGame(gameID, game[gameID].players[1]) end I wrote this code, but I'm not sure. if game[gameID].players and getElementData(game[gameID].players, "gang") then endGame(gameID, game[gameID].players) end Thanks.
  11. barikat

    remove player on table when quit

    its working, just I cant show all codes.
  12. barikat

    remove player on table when quit

    No have any errors. just no removing player when quit. function leav() lobbyInstance:exitLobby() end addCommandHandler("leav", leav) -- this is working function leav() lobbyInstance:exitLobby() end addEventHandler("onClientPlayerQuit", localPlayer, leav) -- no working..
  13. barikat

    remove player on table when quit

    Hey, I have a problem this code working player in server. But no working when player quit. exitLobby = function(self) local previousLobby = getElementData(localPlayer, "player:selectedLobby") if previousLobby then if self.lobbies[previousLobby] then for k,v in ipairs(self.lobbies[previousLobby].players) do if v == localPlayer then table.remove(self.lobbies[previousLobby].players, k) end end end end setElementData(resourceRoot, "root:lobbies", self.lobbies) setElementData(localPlayer, "player:selectedLobby", false) exports["br_notifications"]:addNotification(localization:getText(localPlayer, "lobby-leftInRoom"), "success") end
  14. barikat

    [EUROPE] BATTLE ROYALE SERVER

    #UPDATE - Login panel realesed. - Added new group system - Lobby system developed. - Added group manager NPC. - Added language manager NPC
  15. barikat

    setCameraMatrix delay

    yes it's random.