frosbite
Members-
Posts
44 -
Joined
-
Last visited
Details
-
Gang
grove street
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
frosbite's Achievements
Rat (9/54)
0
Reputation
-
HI! I have A mta ROLEPLAY server! I have Big problems with My SQL! i have putted all the things who's need but it is not working! My friends can't log in and i too can't! This is s_mysql.lua local hostname = "localhost" local username = "service4397" local password = "a97ef3631f" local database = "service4397" local port = tonumber( get( "port" ) ) or 3306
-
Yes this, but i need the outputchatbox script
-
Do you can give me the server.lua script?
-
Hi! Who can give me this? It is info in chat! the info is remaining times!
-
Hi! my question is: how to get pink color of smokes? i have this http://prntscr.com/32q59j smoke.lua local disablingSmokeKey = "F10" local smoke, tec = dxCreateShader("smoke.fx") function enablesmoke() engineApplyShaderToWorldTexture(smoke, "*smoke*") end function disablesmoke() engineRemoveShaderFromWorldTexture(smoke, "*smoke*") end addEventHandler("onClientResourceStart", resourceRoot, function() outputChatBox("#FFFFFFResource #FF0000'" .. getResourceName(getThisResource()) .. "'#FFFFFF To Disable Smoke press (F10)#FFFFFF!", 255, 255, 255, true ) enablesmoke() enabledSmoke = true end) bindKey(disablingSmokeKey, "down", function() if enabledSmoke then disablesmoke() outputChatBox("#666666The smoke was turned #FF0000off#666666!", 255, 255, 255, true) enabledSmoke = false else enablesmoke() outputChatBox("#666666The smoke was turned #00FF00on#666666!", 255, 255, 255, true) enabledSmoke = true end end) -- The Body. Author: FornetGearĀ© smoke.fx #include "mta-helper.fx" sampler Sampler0 = sampler_state { Texture = (gTexture0); MinFilter = Linear; MagFilter = Linear; MipFilter = Linear; }; struct VSInput { float3 Position : POSITION0; float3 Normal : NORMAL0; float4 Diffuse : COLOR5; float2 TexCoord : TEXCOORD0; }; struct PSInput { float4 Position : POSITION0; float4 Diffuse : COLOR5; float2 TexCoord : TEXCOORD0; }; PSInput VertexShaderFunction(VSInput VS) { PSInput PS = (PSInput)0; PS.Position = mul(float4(VS.Position, 1), gWorldViewProjection); PS.TexCoord = VS.TexCoord; PS.Diffuse = MTACalcGTABuildingDiffuse( VS.Diffuse ); return PS; } float4 PixelShaderFunction(PSInput PS) : COLOR0 { float4 texel = tex2D(Sampler0, PS.TexCoord); float3 pixel = texel.rgb; float4 diffuse = PS.Diffuse; float intensity = diffuse.r * 0.2126 + diffuse.g * 0.7152 + diffuse.b * 0.0722; if ( intensity <= 0.05 ) pixel *= 0.1; else if ( intensity <= 0.5 ) pixel *= 0.35; else if ( intensity <= 0.95 ) pixel *= 0.7; return float4(pixel.rgb, texel.a); } technique smoke { pass P0 { VertexShader = compile vs_3_0 VertexShaderFunction(); PixelShader = compile ps_3_0 PixelShaderFunction(); } }
-
It is spawn gui! Client.lua ----------------------------This side doesn't need to change,you can change Server side.This one only for trigger to the server --------------------- GUIEditor = { gridlist = {}, window = {}, button = {} } function SetMenuVisibleTrue () --===Core===-- GUIEditor.window[3] = guiCreateWindow(485, 268, 352, 361, "Spawn Menu", false) guiWindowSetSizable(GUIEditor.window[3], false) GUIEditor.button[4] = guiCreateButton(75, 35, 188, 69, "Army", false, GUIEditor.window[3]) GUIEditor.button[5] = guiCreateButton(74, 158, 189, 68, "Civilian", false, GUIEditor.window[3]) GUIEditor.button[6] = guiCreateButton(75, 273, 188, 66, "Gangs", false, GUIEditor.window[3]) showCursor ( true ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[6] then outputChatBox ("This feature in the Development.Try it later") end if source == GUIEditor.button[4] then if GUIEditor.window[4] then destroyElement ( GUIEditor.window[4] ) end GUIEditor.window[4] = guiCreateWindow(868, 268, 174, 363, "Army Spawn", false) guiWindowSetSizable(GUIEditor.window[4], false) GUIEditor.gridlist[2] = guiCreateGridList(9, 21, 155, 113, false, GUIEditor.window[4]) guiGridListAddColumn(GUIEditor.gridlist[2], "Spawnpoints", 0.9) for i = 1, 2 do guiGridListAddRow(GUIEditor.gridlist[2]) end guiGridListSetItemText(GUIEditor.gridlist[2], 0, 1, "Zone 69", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 1, 1, "Zone 51", false, false) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.gridlist[2] then name = guiGridListGetItemText ( GUIEditor.gridlist[2], guiGridListGetSelectedItem (GUIEditor.gridlist[2]), 1 ) if name == "Zone 69" then triggerServerEvent ("ArmyZone69",localPlayer) destroyElement(GUIEditor.gridlist[2]) destroyElement(GUIEditor.window[4]) destroyElement(GUIEditor.window[3]) showCursor ( false ) end if name == "Zone 51" then triggerServerEvent ("ArmyZone51",localPlayer) destroyElement(GUIEditor.gridlist[2]) destroyElement(GUIEditor.window[4]) destroyElement(GUIEditor.window[3]) showCursor ( false ) end end end) end if source == GUIEditor.button[5] then if GUIEditor.window[1] then destroyElement ( GUIEditor.window[1] ) end GUIEditor.window[1] = guiCreateWindow(226, 277, 224, 363, "Civilian", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 22, 205, 118, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Spawnpoints", 0.9) for i = 1, 5 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "[LS]Grove Street", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "[LS]Port", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "[LS]Center", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "[LV]Bus Station", false, false) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.gridlist[1] then nameCivillian = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem (GUIEditor.gridlist[1]), 1 ) if nameCivillian == "[LS]Grove Street" then destroyElement(GUIEditor.window[1]) destroyElement(GUIEditor.gridlist[1]) triggerServerEvent ("GroveStreet",localPlayer) destroyElement(GUIEditor.window[3]) showCursor ( false ) elseif nameCivillian == "[LS]Port" then destroyElement(GUIEditor.window[1]) destroyElement(GUIEditor.gridlist[1]) triggerServerEvent ("LSPORT",localPlayer) destroyElement(GUIEditor.window[3]) showCursor ( false ) elseif nameCivillian == "[LS]Center" then destroyElement(GUIEditor.window[1]) triggerServerEvent ("LVCENTER",localPlayer) destroyElement(GUIEditor.window[3]) showCursor ( false ) elseif nameCivillian == "[LV]Bus Station" then destroyElement(GUIEditor.window[1]) destroyElement(GUIEditor.gridlist[1]) triggerServerEvent ("LSBUSSTATION",localPlayer) destroyElement(GUIEditor.window[3]) showCursor ( false ) end end end) end end) end addEvent ("visiblemenu",true) addEventHandler ("visiblemenu",getRootElement(),SetMenuVisibleTrue) addEventHandler ("onClientPlayerWasted",getLocalPlayer(),SetMenuVisibleTrue) server.lua ---------------------------Settings:----------------------------------- --==[Army - {LV\SF}]==-- --==Zone 51==-- Zone51X,Zone51Y,Zone51Z = 214.29565, 1856.56372, 13.09107 SPMENUtriggerZone51_Weapon = 31 SPMENUtriggerZone51_Weapon_ammo = 100 SPMENUtriggerZone51_Skin = 287 --==Zone 69==-- Zone69X,Zone69Y,Zone69Z = -1347.93640, 495.12314, 18.23438 SPMENU_triggerZone69_Weapon = 29 SPMENU_triggerZone69_Weapon_ammo = 100 SPMENU_triggerZone69_Skin = 287 --==[CIVILIAN - {LS}]==-- --==Grove Street==-- LS_groveX,groveY,groveZ = 2473.25806, -1686.48108, 13.50781 SPMENU_triggerCIVILIAN_SkinGrove = math.random ( 15,150 ) --==[LS]Port==-- LS_portX,portY,portZ = 2443.36768, -2458.22974, 13.62500 SPMENU_triggerCIVILIAN_SkinPort = math.random ( 10,150 ) --==[LS]CENTER==-- LS_centerX,centerY,centerZ = 1311.64001, 2085.39111, 10.82031 SPMENU_triggerCIVILIAN_SkinCenter = math.random ( 10,150 ) --==[LS]Bus Station==-- LS_busstationX,busstationportY,busstationportZ = 1789.77136, -1936.38538, 13.54688 SPMENU_triggerCIVILIAN_SkinBusStation = math.random ( 10,150 ) ----------------------CORE------------------------------ function SpawnPlayerAsZone51 () outputChatBox ("You spawned as Army Team: 'Zone 51'!",source,math.random(1,255),math.random(1,255),math.random(1,255)) spawnPlayer ( source , Zone51X,Zone51Y,Zone51Z ) giveWeapon ( source , SPMENUtriggerZone51_Weapon ,SPMENUtriggerZone51_Weapon_ammo ) setPedSkin ( source ,SPMENUtriggerZone51_Skin ) end addEvent ("ArmyZone51",true) addEventHandler ("ArmyZone51",getRootElement(),SpawnPlayerAsZone51) function SpawnPlayerAsZone69 () outputChatBox ("You spawned as Army Team: 'Zone 69'!",source,math.random(1,255),math.random(1,255),math.random(1,255)) spawnPlayer ( source ,Zone69X,Zone69Y,Zone69Z ) giveWeapon ( source ,SPMENU_triggerZone69_Weapon , SPMENU_triggerZone69_Weapon_ammo ) setPedSkin ( source ,SPMENU_triggerZone69_Skin ) end addEvent ("ArmyZone69",true) addEventHandler ("ArmyZone69",getRootElement(),SpawnPlayerAsZone69) function SpawnPlayerAsCIVILIANGROVE () outputChatBox ("You spawned as Civilian!Position: ---> Grove Street <---",source,math.random(1,255),math.random(1,255),math.random(1,255)) spawnPlayer ( source ,LS_groveX,groveY,groveZ ) setPedSkin ( source ,SPMENU_triggerCIVILIAN_SkinGrove ) end addEvent ("GroveStreet",true) addEventHandler ("GroveStreet",getRootElement(),SpawnPlayerAsCIVILIANGROVE) function SpawnPlayerAsCIVILIANPORT () outputChatBox ("You spawned as Civilian!Position: ---> Port <--- ",source,math.random(1,255),math.random(1,255),math.random(1,255)) spawnPlayer ( source , LS_portX,portY,portZ ) setPedSkin ( source , SPMENU_triggerCIVILIAN_SkinPort) end addEvent ("LSPORT",true) addEventHandler ("LSPORT",getRootElement(),SpawnPlayerAsCIVILIANPORT) function SpawnPlayerAsCivilianCenter () outputChatBox ("You spawned as Civilian!Position: ---> CENTER <--- ",source,math.random(1,255),math.random(1,255),math.random(1,255)) spawnPlayer ( source ,LS_centerX,centerY,centerZ) setPedSkin ( source , SPMENU_triggerCIVILIAN_SkinCenter) end addEvent ("LVCENTER",true) addEventHandler ("LVCENTER",getRootElement(),SpawnPlayerAsCivilianCenter) function SpawnPlayerAsCIVILIANBUSSTATION () outputChatBox ("You spawned as Civilian!Position: ---> Bus Station <--- ",source,math.random(1,255),math.random(1,255),math.random(1,255)) spawnPlayer ( source ,LS_busstationX,busstationportY,busstationportZ ) setPedSkin ( source , SPMENU_triggerCIVILIAN_SkinBusStation) end addEvent ("LSBUSSTATION",true) addEventHandler ("LSBUSSTATION",getRootElement(),SpawnPlayerAsCIVILIANBUSSTATION) --------------------------Don't change it,or system will be not work!--------------------------------------- ---==[[[]]]]==--- function StartAllProccessWindow () triggerClientEvent (source,"visiblemenu",getRootElement()) end addEventHandler ("onPlayerJoin",getRootElement(),StartAllProccessWindow) ----=[[[]]]=----
-
How to get this? Who can give me this script? http://prntscr.com/31v0oo