-
Posts
4,121 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Kenix
-
http://lmgtfy.com/?q=3dMax http://lmgtfy.com/?q=helmet+for+gta+san+andreas
-
Use amx resource. But Better learn lua. viewtopic.php?f=148&t=40809
-
No. You need create custom model helmet.
-
It's joke? You need learn lua. I gave you link. Read! Want know error? You have syntax error in script.
-
If he want know lua he need read all.
-
What you mean? Anyway, if you not read all manuals you not going ahead in scripting.
-
Read viewtopic.php?f=148&t=40809 You need fix it yourself.
-
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 )
-
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
-
You get current gamemode map.
-
sMapName = getResourceName( getRunningGamemodeMap ( ) ) or 'N/A'
-
In your code i not found this line Anyway in mapmanager not have this exported function. You need use this
-
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
-
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, ...
-
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.
-
Лучше сделать самому, то что тебе нужно .
-
You can't attach element to event handler onClientRender. You can only use root.
-
Уже был случай с аспектом
-
Надо радиус больше ставить. Ну и так же надо уйти из зоны стрима и войти обратно.
-
Не понимаю смысл кода. Темболее функцию removeWorldModel лучше юзать на сервере. Разве трудно вручную найти LOD? Нужно делать всё тоже самое, что и с объектами.
-
Уже есть функция для этого dxDrawRelativeText viewtopic.php?f=141&t=33091 Зачем изобретать велосипед?
-
Скачивай последние ресурсы для сервера http://mtasa-resources.googlecode.com/f ... s-r841.zip Запускаешь мап едитор -> летишь туда где нужно снести объект -> выбираешь прицел в самом низу списка элементов ( World object ) -> наводишь на объект -> по середине прицела будет показан ид LOD'а.( например LOD: 17858 ) http://ru.wikipedia.org/wiki/Level_of_Detail