Jump to content

Kenix

Retired Staff
  • Posts

    4,121
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Kenix

  1. Клиент DJ = createPed ( 83, 781.283, -1360.212, 14.253 ) setElementFrozen ( DJ, false ) setPedRotation ( DJ, 90 ) setPedAnimation( DJ, "BSKTBALL", "BBALL_idle" ) addEventHandler( 'onClientPedDamage', DJ, cancelEvent ) Ты перепутал группу анимации. Должна быть не ped, а BSKTBALL. P.S Перепутал событие с другим P.S2 Если хочешь синхронизировать своего педа, то сделай его на стороне сервера, а чтобы сделать его не убиваемым, то сделай ему дату аля 'cancel_damage' и проверяй на клиенте в событии onClientPedDamage ну и отменяй событие.
  2. DJ = createPed ( 83, 781.283, -1360.212, 14.253 ) setElementFrozen ( DJ, false ) setPedRotation ( DJ, 90 ) setPedAnimation( DJ, "ped", "BBALL_idle" ) addEventHandler( 'onPedDamage', DJ, cancelEvent )
  3. Maybe you mean Rebuild solution? I tested. The same.
  4. I have problem with compile mta. So i start compile and in debug output i see it. fatal error C1047: The object or library file '.\Release\CClient.obj' was created with an older compiler than other objects; rebuild old objects and libraries LINK : fatal error LNK1257: code generation failed Build log was saved at "file://c:\mta-sa-blue\MTA10\mods\deathmatch\Release\BuildLog.htm" Client - Deathmatch - 1 error(s), 4 warning(s) I try delete CClient.obj and it's same and i try rebuild project, also clean and build and all the same.
  5. Рановато написал, не помогло. Тажа ошибка.
  6. https://wiki.multitheftauto.com/wiki/SpawnPlayer local tPos = -- Change pos { [1] = 0; [2] = 0; [3] = 10; } addEventHandler( 'onPlayerJoin', root, function( ) spawnPlayer( source, tPos[1], tPos[2], tPos[3] ) fadeCamera ( source, true ) setCameraTarget ( source, source ) end )
  7. Kenix

    Money HUD

    It's client side script. You should indicate it in meta.xml. https://wiki.multitheftauto.com/wiki/Meta.xml
  8. Kenix

    Money HUD

    local nW, nH = guiGetScreenSize( ) showPlayerHudComponent ( 'money', false ) addEventHandler( 'onClientRender', root, function( ) dxDrawText( string.format( "$%s", getPlayerMoney( localPlayer ) ), nW - 450, nH - 500, nW - 7, nH - 57, tocolor( 0,255,0,220 ), 1.0, 'pricedown', 'right', 'top', false, false, false ) -- Money DX text end )
  9. Kenix

    Money HUD

    onPlayerJoin is server side event Why define this in render? sWidth, sHeight = guiGetScreenSize()
  10. Вообщем проблема такая. Решил я компильнуть мта, нажал Build Solution и при компиляции выскочила эта ошибка: fatal error C1047: The object or library file '.\Release\CClient.obj' was created with an older compiler than other objects; rebuild old objects and libraries LINK : fatal error LNK1257: code generation failed Build log was saved at "file://c:\mta-sa-blue\MTA10\mods\deathmatch\Release\BuildLog.htm" Client - Deathmatch - 1 error(s), 4 warning(s) Попробывал сделать ребилд ( Rebuild Solution ) и всё равно. Так же пробовал отдельно скомпилировать клиентский deathmatch и тоже самое. Помогите пожалуйста.
  11. Kenix

    Money HUD

    showPlayerHudComponent dxDrawText
  12. Maybe resource extrahealth not running?
  13. https://wiki.multitheftauto.com/wiki/Scr ... troduction viewtopic.php?f=148&t=40809 You need learn it and you understand, what you need delete.
  14. Can you check variables, conditions, .. ?
  15. Maybe you need this? https://community.multitheftauto.com/index.php?p= ... ls&id=1821
  16. Kenix

    Help needed

    Maybe kill in water? setTimer( function( ) if isElementInWater( localPlayer ) then setElementHealth( localPlayer, 0 ) end end, 1000, 0 ) Client side.
  17. Thx New version 1.3 Added comboboxes for client/server, true/false ,script/misc/gamemode/map. Added message box, if you not complete ( required ) edit's. Also i add, if you not use some edits ( optional ) it not writed like: version =''. First post updated. P.S Thx JR10 for ideas.
  18. Kenix

    Metatable

    http://lua-users.org/wiki/MetamethodsTutorial Also you can find tutorials here: viewtopic.php?f=148&t=40809
  19. I not understand you. 1/10 - 10 is all zones? - 1 zone id? or you mean common captured zones?
×
×
  • Create New...