Jump to content

JustDance

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by JustDance

  1. You can see this: 178.94.4.121:22003 pass: 123456 oh, thanx man. It work witch onClientResourceStart
  2. I know... But this is not the original... I need use client functions! this is just an example. source I do not want to share:)
  3. You probably did not understand me.... Its not client resource. Its client script. core_s.lua: addEventHandler ( "onPlayerJoin", getRootElement(), function() triggerClientEvent ( source, "selTeam", getRootElement(), source) end ); core_c.lua: function sel_team(source) for i = 1,20 do outputChatBox(" ") end outputChatBox('lol') fadeCamera(true) end addEvent("selTeam", true) addEventHandler("selTeam", getRootElement(), sel_team) meta: <meta> <script src="core_s.lua" type="server" /> <script src="core_client.lua" type="client" /> <file src="teams.xml" /> </meta>
  4. Help me pls I have a problem. client script the first time does not start... If you exit and re-enter - it works. Why? I trigger client script (function): addEventHandler ( "onPlayerJoin", getRootElement(), function() triggerClientEvent ( source, "selTeam", getRootElement(), source) end );
  5. прикольно... на скрине бегает шлюха под словом "Русские вперёд"??!! хД
  6. Интересно. Многие мои друзья говорят что в МТА какая-то атмосфера тупая... как-то нудно... Нету хороших серверов такие которые на SAMP. Ибо мне даже реально не интересно играть на серверах здесь. Ну могу не много поиграть DD/DM и то потом надоедает... Первая причина скриптеры МТА не умеют сделать уютную атмосферу в игре. Скриптеры начинают использовать все доступные возможности, пихать всё на кучу и в итоге это получается "говномод". Помню я много хороших серверов SAMP. Они были очень простые и очень удобными. Сейчас я пытаюсь создать игровой сервер под МТА с игровым режимом SFTDM и тем самым питаюсь сохранить атмосферу SAMP что бы было удобно играть как и раньше. Также будут доступные новые функции которых не было в SAMPе. жесть... lua на сколько прост что проще не бывает. На мое мнение это самые легкой язык програмирования для скриптов который есть в мире... В павно нужно обьявлять не нужные переменные, их размер, тип... И тоже самое с функциями... А зачем это всё? Что бы усложнять себе работу? ....
  7. ahhh. I forgot just ... thank you
  8. I created a new guilabel: guiCreateLabel(0.02,0.04,0.94,0.92,"This is text.",true,tabHelp) How to change "This is text." on "Just TEXT! :)" which function change text in gui and in parameters in other functions?
  9. Я тоже знаю что МТА работает только с "чистой гта". Но как МТА работает с модом Criminal Russia?
  10. Я прямо пророк... русское сообщество мигрирует на МТА И это хорошо
  11. Oh Lola ... Just had no source, needed a client ... thanks
  12. JustDance

    Top Times.

    If you want, I do create one. Write in ICQ 95040971
  13. JustDance

    Top Times.

    Plagiarism in the EPG? It is not possible explained to. You need to look at your fashion
  14. how variable my player to walk? How do I install the player as the source? Markups below to find out how variable player?
  15. Help me pls. I cant use spawnPlayer function. It not work. In console write: [12:07:31] WARNING: login_server.lua: Bad 'player' pointer @ 'spawnPlayer'(1) - Line: 72 I use: function serverRegister(newUsername, newPassword, newMail) local newXML = xmlCreateFile ( ":RPGRACE_login/accounts/" .. newUsername .. ".xml", "account" ) local usernameNode = xmlCreateSubNode ( newXML, "username" ) xmlNodeSetValue ( usernameNode, newUsername ) local passwordNode = xmlCreateSubNode ( newXML, "password" ) xmlNodeSetValue ( passwordNode, newPassword ) local adminNode = xmlCreateSubNode ( newXML, "admin" ) xmlNodeSetValue ( adminNode, "0" ) local mailNode = xmlCreateSubNode ( newXML, "mail" ) xmlNodeSetValue ( mailNode, newMail ) local statNode = xmlCreateSubNode ( newXML, "stat" ) local lvlNode = xmlCreateSubNode ( statNode, "lvl" ) xmlNodeSetValue ( lvlNode, "1" ) local moneyNode = xmlCreateSubNode ( statNode, "money" ) xmlNodeSetValue ( moneyNode, "0" ) local winsNode = xmlCreateSubNode ( statNode, "wins" ) xmlNodeSetValue ( winsNode, "0" ) local racesNode = xmlCreateSubNode ( statNode, "races" ) xmlNodeSetValue ( racesNode, "0" ) local carNode = xmlCreateSubNode ( statNode, "car" ) xmlNodeSetValue ( carNode, "0" ) local carcolorNode = xmlCreateSubNode ( statNode, "carcolor" ) xmlNodeSetValue ( carcolorNode, "0" ) local scoresNode = xmlCreateSubNode ( statNode, "scores" ) xmlNodeSetValue ( scoresNode, "0" ) local rankNode = xmlCreateSubNode ( statNode, "rank" ) xmlNodeSetValue ( rankNode, "Newbie" ) xmlSaveFile( newXML ) spawnPlayer(source, 0,0 ,0) triggerClientEvent ( source, "clientRegister2", getRootElement() , newUsername, newPassword, newMail ) end addEvent("serverRegister", true) addEventHandler("serverRegister", getRootElement(), serverRegister)
  16. Hello again everyone! I have a question again. Here I want to kick a player at some point, but the functions do not work (cancelEvent ().... kickPlayer .... banPlayer .......) When using the function cancelEvent () in debuge not write something. When using kickPlayer (source) in debuge wrote: [09:52:17] WARNING: sftdm.lua: Access denied @ 'banPlayer' - Line: 177 Pls help me
  17. Sorry, I had corrected the problem: removeEventHandler("onClientRender", getRootElement(), teamText)
  18. I do not know how to remove the DX text. how to remove? I have not seen such a function. ( guiSetVisible dont work)
  19. x, y, z = getElementPosition(source) stats = 0 addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() setTimer(enterStuntZone, 2000, 0) end ) function enterStuntZone() if (getDistanceBetweenPoints3D ( x,y,z, xGate, yGate, zGate ) < 7 ) then -- xGate, yGa...... position of gate or airport terminal..... if stats == 0 then stats = 1 setTimer(setStats, 6000, 1) if getPlayerMoney(source) > 500 then setPlayerMoney(source, getPlayerMoney(source)-500) --here function of gate outputChatBox("Welcome to stunt zone!", source) setTimer(setStats, 6000, 1) else outputChatBox("You havent money for enter stunt zone!", source) end end else --close gate function....... end end setStats() stats = 0 end
×
×
  • Create New...