Jump to content

Annas

Members
  • Posts

    143
  • Joined

  • Last visited

Everything posted by Annas

  1. Annas

    Help me please

    Please help me , only who go to the gate able to see the shader.. I wanna all can see it please help me
  2. Annas

    Help me please

    Please how to make "All able to see the shader on that object" Please help me and thx
  3. Annas

    Help me please

    How to get an object Texture Name , so i can use "engineApplyShaderToWorldTexture" without writting the texture name , i tried this but it's not working.. local LogiC_gate = createObject ( 980, 0, 0, 0, 0, 0, 0 ) -- FAKE ID's applyCustomTextures( LogiC_gate, "testing") function applyCustomTextures(object, texture) local shaderElement = dxCreateShader ( "shader.fx", 0, 0, false, "object" ) texture = dxCreateTexture( "textures/"..texture..".png" ) dxSetShaderValue( shaderElement, "Tex0", texture) texturename = engineGetModelTextureNames(object) --- THIS engineApplyShaderToWorldTexture( shaderElement, texturename, object) end
  4. Annas

    HELP PLEASE!

    --CLIENT SIDE You didnt see ? :fp:
  5. Annas

    HELP PLEASE!

    Hello , i have made a simple script wish replaces a gate Texture.. --CLIENT SIDE ---------------------------------------------------------------------- local group = "LogiC" -- ADD THE GROUP NAME HERE ------------------------ local LogiC_marker = createMarker ( 3230.0249023438, 1057.3933105469, 32.006248474121, "cylinder", 15, 44, 44, 44, 0 ) local LogiC_gate = createObject ( 980, 3230.4418945312, 1057.2094726562, 34.706253051758, 0, 0, 90 ) applyCustomTextures( LogiC_gate, "testing") ------------------------------------------------------------------------ addEventHandler ( "onMarkerHit", LogiC_marker, function ( hitElement ) if ( getElementType ( hitElement ) == "player" ) then if ( getElementData(hitElement,"g") == group ) or (exports.CSTalliance:getPlayerAlliance(hitElement, group)) or (exports.CSTteams:isPlayerInTeams(hitElement, "Staff")) then moveObject ( LogiC_gate, 400, 3230.4418945312, 1057.2094726562, 29.07536315918 ) end end end ) addEventHandler ( "onMarkerLeave", LogiC_marker, function ( leftElement ) if ( getElementType ( leftElement ) == "player" ) then if ( getElementData(leftElement,"g") == group ) or (exports.CSTalliance:getPlayerAlliance(leftElement, group)) or (exports.CSTteams:isPlayerInTeams(leftElement, "Staff")) then moveObject ( LogiC_gate, 400, 3230.4418945312, 1057.2094726562, 34.706253051758 ) end end end ) ------------------------------------------------------------------------ function applyCustomTextures(object, texture) local shaderElement = dxCreateShader ( "shaders/shader.fx", 0, 0, false, "all" ) --shader = dxCreateShader( "shader.fx", 0, 0, false, "object") texture = dxCreateTexture( "textures/"..texture..".png" ) dxSetShaderValue( shaderElement, "Tex0", texture) texturename = engineGetModelTextureNames( object ) engineApplyShaderToWorldTexture( shaderElement, texturename, object) end DEBUGSCRIPT: attempt to call global 'dxCreateShader' (a nil value)
  6. How can i add player last name to the database i tried this , but it's not working function saveData() local account = getPlayerAccount(source) if (not account or isGuestAccount(account)) then return end local lastname = getPlayerName(source) -- Last name dbExec(db, "UPDATE banking (name, lastname) VALUES(?)", account, lastname) end addEventHandler("onPlayerQuit", root, saveData) addEventHandler("onPlayerLogout", root, saveData) Sorry if it's wrong board HELP ME PLEASE
  7. Hello, i wanna something like (Get Currently Online members in my server by a command.) /players, then it will be output : Online Members: NUMBERofONLINEmembers Help me and thx.
  8. Nvm , i fixed it. Thx.
  9. I cant as it's a complete script. and it's just If (Hide Vehicle) Then triggerserverevent ..
  10. Nothing , not working And there is nothing about it in debugscript
  11. Hi , i have made a script to destroy selected vehicle , but idk why it's not working --- SERVER SIDE function destroyvehicles(player, selected) destroyElement(selected) outputChatBox("You Destroyed This Vehicle Vehicle", player, 0, 250, 0). end end addEvent("CSTdestroy.destroyvehicle", true) addEventHandler("CSTdestroy.destroyvehicle", root, destroyvehicles)
  12. Annas

    About meta

    Hi , i dont know if what i want is available or no.. So when i add any file in a folder Named (ServerInformation) it will auto added in the meta Exemple, i added a file here (ServerInformation/exemple.xml) and in the meta: When i start/restart the resource ingame , it will auto loaded and been like this I wish you understand me
  13. Annas

    [HELP] CST server

    Any admin ? :fp: DDoS atack , you made me laught.. None can hack any MTA server LOL .. Solidsnake14 or any Moderator/Admin .. deal with this guy please.
  14. Annas

    [HELP] CST server

    rly you made me laught , we are using 1 type of leaked resources , they are GTI resources, even they shared those resources.. others are mine.. you can see my posts , all of our resources are by our Community. And.. many servers that starts with C... they are all using CIT, CSG, GTI, SAUR 2.0... You are competely wrong .. as what i said our team has our idea's. and C means Community , when u even know what it mean you can talk about it LOL..
  15. Still not working - You see those Grid List texts? , VIP / Rules ext.. - When i type exemple: VIP , it will only show the VIP grid list text. - And when i type nothing, it will show all of them (VIP/ Rules ext..) SS Token now: http://i.imgur.com/7M535JG.png The whole Client Side script:
  16. Not working , please fellow my code
  17. Not Working.. Here is my Client Side script local windowTitle = "CST Rules, Documentation and Answers" GUIEditor = { button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local sx, sy = guiGetScreenSize() rule = guiCreateWindow((sx/2)-400, (sy/2)-300, 800, 600, windowTitle, false) guiWindowSetSizable(rule, false) guiSetAlpha (rule, 1) grid = guiCreateGridList(9, 64, 781, 164, false, rule) guiGridListSetSelectionMode(grid, 1) guiGridListSetSortingEnabled(grid, false) colum = guiGridListAddColumn(grid, "Question", 0.9) for index, val in pairs(griditem) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, colum, val[1], false, false) end guiSetVisible( rule, false ) memo = guiCreateMemo(3, 238, 700, 350, "Select a Question above to learn about the game.", false, rule) guiMemoSetReadOnly(memo, true) ask = guiCreateButton(713, 238, 78, 89, "Ask a question that isn't answered here", false, rule) close = guiCreateButton(713, 532, 78, 55, "Close", false, rule) search = guiCreateEdit(10, 24, 780, 35, "", false, rule) --combo = guiCreateComboBox(597, 100, 171, 29, "", false, rule) --for i, k in pairs ( rulesToFile ) do --guiComboBoxAddItem ( combo, i ) --end guiMemoSetReadOnly (memo, true) addEventHandler("onClientGUIClick", grid, clickedGridlist, false) addEventHandler("onClientGUIClick", close, function () guiSetVisible(rule, false) showCursor(false) end, false) addEventHandler("onClientGUIClick", ask, showSupports, false) end ) addEventHandler("onClientGUIChanged", search, function() local rowsToRemove = {} local counter = 0 local searchFor = guiGetText(search) local rows = guiGridListGetRowCount(grid) for i=1, rows do rowText = guiGridListGetItemText(grid, i, 1) if not (string.match(rowText, searchFor)) then rowsToRemove[counter] = i counter = counter + 1 end end for i,v in rowsToRemove do guiGridListRemoveRow(grid, v) for i, v in rowsToRemove do rowsToRemove[i] = rowsToRemove[i] - 1 end end end
  18. There is no exemple ? i tried to search for an exemple , but i didnt found.. All of the currently exemples are search in grid list for the player name .. Help please
  19. Hello community Members, as what the title says , About Search in the grid list When player write in Edit it search in the grid list bellow. (Search for Text in the Grid list) I mean , when i type Example "Rules" in the Edit , it only shows "Rules" in the Grid List. and when there is nothing in the edit , it shows every text in the Grid List. Help me and thx.
  20. Annas

    help object id

    Haha, Ty , and yea.
×
×
  • Create New...