Jump to content

Kenix

Retired Staff
  • Posts

    4,121
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Kenix

  1. http://lmgtfy.com/?q=3dMax http://lmgtfy.com/?q=helmet+for+gta+san+andreas
  2. Use amx resource. But Better learn lua. viewtopic.php?f=148&t=40809
  3. No. You need create custom model helmet.
  4. It's joke? You need learn lua. I gave you link. Read! Want know error? You have syntax error in script.
  5. If he want know lua he need read all.
  6. What you mean? Anyway, if you not read all manuals you not going ahead in scripting.
  7. Read viewtopic.php?f=148&t=40809 You need fix it yourself.
  8. addEventHandler ( 'onMarkerHit', root, function( uElement ) if getElementType( uElement ) == 'player' and isPedInVehicle( uElement ) then if source == clubMarker then setElementInterior( getPedOccupiedVehicle( uElement ), 2, 1204.9, -10.5, 1000.9 ) triggerClientEvent( 'onElementClub', uElement ) toggleControl( uElement, 'fire', false ) elseif source == clubMarker2 then setElementInterior( uElement, 0, 2421.5, -1223.9, 25.3 ) triggerClientEvent( 'onElementClub', uElement ) toggleControl( uElement, 'fire', true ) end end end )
  9. For your vote tGamemodeMaps = getMapsCompatibleWithGamemode( getRunningGamemode ( ) ) For change function setGamemodeMap( sName ) if type( sName ) == 'string' then local uResourceMap = getResourceFromName( sName ) if uResourceMap then changeGamemodeMap ( uResourceMap ) end return false end return false end https://wiki.multitheftauto.com/wiki/Mapmanager
  10. You get current gamemode map.
  11. sMapName = getResourceName( getRunningGamemodeMap ( ) ) or 'N/A'
  12. In your code i not found this line Anyway in mapmanager not have this exported function. You need use this
  13. Kenix

    Need help

    No problem. addEvent ( 'triggerData', true ); addEventHandler ( 'triggerData', root, function ( playerName ) local plsayer = getPlayerFromName ( playerName ) local playerip = getPlayerIP ( player ); -- Your problem here. Variable 'player' not defined. Also use in next time /debugscript 3. local playerSerial = getPlayerSerial ( player ); local accountname = getAccountName ( getPlayerAccount ( player ) ); triggerClientEvent ( source, 'setText', source, playerName, ip, playerSerial, accountname ); end ) Read comments
  14. Kenix

    dxDrawImage

    addEventHandler( 'onClientRender', root, function( ) if getElementData( localPlayer, 'onlyMe' ) then -- dxDrawText( ... ) end end ) addCommandHandler( 'draw', function( ) setElementData( localPlayer, 'onlyMe', true ) end ) It's just example. You can use variables, element data, ...
  15. Kenix

    Need help

    Client addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == GridListePlayer ) then local nColumn = guiGridListGetSelectedItem ( GridListePlayer ); if ( nColumn and nColumn ~= -1 ) then local sPlayerName = guiGridListGetItemText ( GridListePlayer, nColumn, 1 ); if sPlayerName then triggerServerEvent ( 'triggerData', localPlayer, sPlayerName ); end end end end ) addEvent ( 'setText', true ); addEventHandler ( 'setText', root, function ( sPlayerName, nPlayerIp, nPlayerSerial, uAccount ) guiSetText ( LabelName, "Name : " .. tostring ( sPlayerName ) .. " " ); guiSetText ( LabelIp, "IP : " ..tostring ( nPlayerIp ) .." " ); guiSetText ( LabelSerial, "Serial : " ..tostring ( nPlayerSerial ) .." " ); guiSetText ( LabelAccountName, "Account Name : " ..tostring ( uAccount or '' ) .." " ); --triggerServerEvent ( 'ListInfo', localPlayer, player, ip, nPlayerSerial, account ); end ) Server --[[ addEvent ( "ListInfo", true ); addEventHandler ( "ListInfo", root, function ( playerName, ip, serial, account ) local plsayer = getPlayerFromName ( playerName ) local playerip = getPlayerIP ( ip ) local playerSerial = getPlayerSerial ( serial ) local accountname = getAccountName ( getPlayerAccount ( account ) ) end ) ]] addEvent ( 'triggerData', true ); addEventHandler ( 'triggerData', root, function ( sPlayerName ) local uPlayer = getPlayerFromName ( sPlayerName ) local nPlayerIp = getPlayerIP ( uPlayer ); local nPlayerSerial = getPlayerSerial ( uPlayer ); local uAccount = getPlayerAccount ( uPlayer ) if uAccount then uAccount = getAccountName ( uAccount ); else uAccount = false end triggerClientEvent ( source, 'setText', source, sPlayerName, nPlayerIp, nPlayerSerial, uAccount ); end ) Try i have make a panel with gridlist players and i want when i click from grid list to any player it show his informations like his name : his Ip : accountName: his serial .... like admin panel You not need again trigger to server.
  16. Kenix

    dxDrawImage

    You can't attach element to event handler onClientRender. You can only use root.
  17. Надо радиус больше ставить. Ну и так же надо уйти из зоны стрима и войти обратно.
  18. Не понимаю смысл кода. Темболее функцию removeWorldModel лучше юзать на сервере. Разве трудно вручную найти LOD? Нужно делать всё тоже самое, что и с объектами.
  19. Уже есть функция для этого dxDrawRelativeText viewtopic.php?f=141&t=33091 Зачем изобретать велосипед?
  20. Скачивай последние ресурсы для сервера http://mtasa-resources.googlecode.com/f ... s-r841.zip Запускаешь мап едитор -> летишь туда где нужно снести объект -> выбираешь прицел в самом низу списка элементов ( World object ) -> наводишь на объект -> по середине прицела будет показан ид LOD'а.( например LOD: 17858 ) http://ru.wikipedia.org/wiki/Level_of_Detail
×
×
  • Create New...