Jump to content

PauloCascus

Members
  • Posts

    57
  • Joined

  • Last visited

About PauloCascus

  • Birthday 17/02/1996

Details

  • Gang
    Enogue Studios
  • Location
    Russia
  • Interests
    Software and game development

Recent Profile Visitors

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

PauloCascus's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. возможно... а может с позицией колшейпа накасячил
  2. Just i want to fix and improve this script to use shaders, but not easing functions...
  3. Кажется видел, что у вас проблема с тем, что кто то может узнать команду и использовать ее Если ГМ нужен только для админов или випов То вам нужно производить запуск функции через тригер с серверной стороны Серверная сторона function adminGMon() local accName = getAccountName( getPlayerAccount(source)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent( source, "onClientGMStart", getRootElement()) else outputChatBox("У вас нет прав на использование этой команды", source, 200, 0, 0 ) end end addCommandHandler("ongodmode", adminGMon) function adminGMoff() local accName = getAccountName( getPlayerAccount(source)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent( source, "onClientGMStop", getRootElement()) else outputChatBox("У вас нет прав на использование этой команды", source, 200, 0, 0 ) end end addCommandHandler("offgodmode", adminGMoff) Клиентская сторона function startgm() gmtimer = setTimer(gmforad, 2000, 0) outputChatBox ("GodMode режим был включен!",255, 0, 0,true) end addEvent("onClientGMStart", true) addEventHandler("onClientGMStart", getRootElement(), startgm) function offgm() killTimer (gmtimer) setElementData(getLocalPlayer(),"blood", 12000) outputChatBox ("GodMode режим был выключен!",255, 0, 0,true) end addEvent("onClientGMStop", true) addEventHandler("onClientGMStop", getRootElement(), offgm) function gmforad() if getElementData(getLocalPlayer(),"logedin") then setElementData(getLocalPlayer(),"blood", 500000) setElementData(getLocalPlayer(),"bleeding", 0) setElementData(getLocalPlayer(),"cold", false) setElementData(getLocalPlayer(),"temperature", 37) setElementData(getLocalPlayer(),"pain", false) setElementData(getLocalPlayer(),"brokenbone", false) setElementData(getLocalPlayer(),"thirst", 100) setElementData(getLocalPlayer(),"food", 100) end end
  4. ... i was looking for HLSL, but there are so many other formats not the same like fx and so many editors but a little count of tutorials... So shity mess...
  5. Серверная сторона предназначена для функций которые выполняет сервер, клиентская сторона для функций которые выполняет ваша MTA. https://wiki.multitheftauto.com/ Посмотри там, Функции бывают клиентские, серверные и те которые можно использовать на обеих сторонах в зависимости от цели. Добавь меня в скайпе проведу тебе быстрый семинар по скриптингу МТА PauloManwen
  6. попробуй сделать на клиентской стороне скорее всего у тебя игрок не определяется как thePlayer что написано в debugscript ? addEventHandler("onClientResourceStart", getRootElement(), function() setDevelopmentMode(true) end) local gate = createObject(10841, 2595.5, -2140.3000488281,6.9000000953674 ) local colshape = createColCircle ( 2595.5, -2140.3000488281, 25 ) function moveUp() if ( getElementModel(localPlayer) == 217 ) then moveObject( gate, 6000, 2618.3000488281, -2140.3000488281, 6.9000000953674, 0, 0, 0 ) else return false end end addEventHandler("onClientColshapeHit", colshape, moveUp) function moveBack() if ( getElementModel( localPlayer ) == 217 ) then moveObject( moveObject (gate, 6000, 2595.5, -2140.3000488281,6.9000000953674) else return false end end addEventHandler("onClientColShapeLeave", colshape, moveBack)
  7. thank you )) guys, i need some tutorials of camera movement and dxShaders anybody has a few links ?
  8. dx Authotization System Information about script: • dxEditboxes • dxButtons • dxError Label • dxError Highlight line • hmm.. Copyrights or advertising on the element which move Updates: [28.01.2015] Open-Source: https://community.multitheftauto.com/index.php?p= ... s&id=10860 Goals: • Want to add shader effects to the script instead the easing • To make it in oop ( need for the shaders ) Second version First version viewtopic.php?f=108&t=81918
  9. Hi guys I saw like a guys from different scripting teams import the models for a few vehicles of the specifiс ID: Sultan for example, i saw the Police Sultan on the server and normal, i want to know how i can to make it becouze engineLoadTXD and engineLoadDFF makes it for all cars from specific ID...
  10. So here is what you should write instead: dxDrawText( mbut.text, mbut.x, mbut.y, mbut.x + mbut.w, mbut.y + mbut.h, tocolor(0, 0, 0), sw/1600, "bankgothic", "center", "center") It should work as expected. Regards, Citizen yeah, it's working. Thanks
  11. Hello, i think this is stupid situation but what i'm doing wrong... Position of the rectangle and text is the same.. but the text has moved in other on the test. It's not once happend, every time when i've started to write my code, i had this result... local sw, sh = guiGetScreenSize() function renderMain() addEventHandler("onClientRender", getRootElement(), renderMainButtons) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), renderMain) mainbuttons = { { x = sw * 0.5, y = sh * 0.5, w = sw * 0.2, h = sh * 0.2, text = "Login" } } function renderMainButtons() for i, mbut in ipairs ( mainbuttons ) do dxDrawRectangle( mbut.x, mbut.y, mbut.w, mbut.h ) if mbut.text then dxDrawText( mbut.text, mbut.x, mbut.y, mbut.w, mbut.h, tocolor(0, 0, 0), sw/1600, "bankgothic", "center", "center") end end end
  12. thank you for fast answer i will try to make it )
  13. Hi guys, i have some not ordinary question: how i can to hide a part of dx element on the screen? hmm stupid question... Okay.. Everybody saw default mta scoreboard, it's using dx functions, but when the player scrolled up or down the list of the players hidding. Okay we can open the package with this scoreboard script inside the resource folder and what we looking ? js file ( Javascript ) and FX file ( idk what is it, couze i'm begginer in the programming ) So question is simple: i need to use Javascript to make dx scrolling grid list ? Or i can to use any vectors ? I think anyone who met dx in the Mta like it more then gui, but it's harder... So anyway i told not only about grid lists, but about dx functions in general I hope, u understand me It's not my native lang Thank you ))
  14. Оплата зависит от сложности написания программного кода
×
×
  • Create New...