Jump to content

Mr.DeViLsS

Members
  • Posts

    25
  • Joined

  • Last visited

Details

  • Gang
    Downloads

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Mr.DeViLsS's Achievements

Advanced Member

Advanced Member (8/54)

1

Reputation

  1. function skins ( commandName ) -- cj_ped_head local textSkin = dxCreateTexture ( "img.png" ) local skin = dxCreateShader( "tex_names.fx", 0, 0, true, "ped" ) engineApplyShaderToWorldTexture ( skin, "cj_ped_head", localPlayer ); dxSetShaderValue ( skin, "texure0", textSkin ) end addCommandHandler ( "cSkin", skins ) Shader: // // tex_names.fx // float Time : TIME; // Make everything all flashy! float4 GetColor() { return float4( cos(Time*10), cos(Time*7), cos(Time*4), 1 ); } //----------------------------------------------------------------------------- // Techniques //----------------------------------------------------------------------------- technique tec0 { pass P0 { MaterialAmbient = GetColor(); MaterialDiffuse = GetColor(); MaterialEmissive = GetColor(); MaterialSpecular = GetColor(); AmbientMaterialSource = Material; DiffuseMaterialSource = Material; EmissiveMaterialSource = Material; SpecularMaterialSource = Material; ColorOp[0] = SELECTARG1; ColorArg1[0] = Diffuse; AlphaOp[0] = SELECTARG1; AlphaArg1[0] = Diffuse; Lighting = true; } } Please tell me, why not replace the texture? Result: https://imgur.com/a/vciyC Texture: https://imgur.com/a/VCcbO
  2. function createFileHandler() local RootNode = xmlCreateFile("new.xml"," newroot") test_1 = xmlFindChild ( RootNode, "Test_1", 0 ) test_2 = xmlFindChild ( RootNode, "Test_2", 0 ) if test_1 == false then test_1 = xmlCreateChild ( RootNode, "Test_1", 0 ) end if test_2 == false then test_2 = xmlCreateChild ( RootNode, "Test_2", 0 ) end xmlNodeSetValue ( test_1, 10 ) xmlNodeSetValue ( test_2, 1 ) xmlSaveFile(RootNode) xmlUnloadFile(RootNode) end addCommandHandler("createfile", createFileHandler) function createFileHandler(commandName, param1, param2) local RootNode = xmlCreateFile("new.xml"," newroot") test = xmlFindChild ( RootNode, param1, 0 ) if test == false then test = xmlCreateChild ( RootNode, param1, 0 ) end xmlNodeSetValue ( test, param2 ) xmlSaveFile(RootNode) xmlUnloadFile(RootNode) end addCommandHandler("val", createFileHandler)
  3. Really nobody knows?
  4. The text goes beyond the boundaries of the field.
  5. Mr.DeViLsS

    outline

    Good time of day. Please tell me, how to implement this outline?
  6. What I there should see? I need to when creating a field, the system is automatic clicks on the field itself. So what would I hadn't clicked on edit box it to for enter text
  7. Hi. How to make a field active immediately after the show? So to be able to enter text immediately, not after clicking
  8. Hi. Prompt me please. If use the 'executeCommandHandler' on the server side - the command will be compared with those that have been created on the server side?
  9. elementGUI.scrollBar = guiCreateScrollBar ( 0.02, 0.85, 0.96, 0.04, true, true, elementGUI.window ) guiSetProperty ( elementGUI.scrollBar, "StepSize", 0.01 ) How to make the scroll range was from 0 to 3, for example. Or from 0 to 6
  10. Почему не работает "HorzRange в guiSetProperty?
  11. Why doesn't works "HorzRange in guiSetProperty?
  12. Mr.DeViLsS

    ScrollBar

    Hi. Please tell me how to make the range for the ScrollBar. For example, to the slider was only from 0 to 3, for example.
×
×
  • Create New...