-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Where's "Team" defined?
-
function start ( ) txd = engineLoadTXD ( "vehicle.txd" ) engineImportTXD ( txd, 0 ) end-- you forgot to end the function. addEventHandler ( "onClientResourceStart", resourceRoot, start ) -- You forgot to attach a event handler to the function.
-
As far as I know, you can't replace CJ skin, try with a different model. Also, you're using a wrong file location. outputChatBox ( "> replacing the Carl Johnson skin with the Stormtrooper skin" ) txd = engineLoadTXD ( "trooper/stormtrooper.txd" ) engineImportTXD ( txd, 0 ) dff = engineLoadDFF ( "trooper/stormtrooper.dff", 0 ) engineReplaceModel ( dff, 0 )
-
local admins = {} local superModerators = {} function processAdminList() admins = {} superModerators = {} for index, player in ipairs">ipairs( getElementsByType ( "player" ) ) do if not isGuestAccount ( getPlayerAccount ( player ) ) then local accountName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user.".. accountName, aclGetGroup ( "Admin" ) ) then table.insert( admins, getPlayerName ( player ) ) elseif isObjectInACLGroup ("user.".. accountName, aclGetGroup ( "SuperModerator" ) ) then table.insert( superModerators, getPlayerName ( player ) ) end end end outputChatBox("* Admins: #307D7E".. table.concat ( admins, "," ), root, 255, 255, 0, true) outputChatBox("* SuperModerator: #307D7E" .. table.concat ( superModerators, "," ), root, 255, 255, 0, true) end
-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(355,249,503,303,":O| Destruction Derby Userpanel v1.01", true) guiSetVisible ( GUIEditor_Window[1], false ) GUIEditor_Button[1] = guiCreateButton(369,259,113,30,"Close (F3)",false,GUIEditor_Window[1]) GUIEditor_Label[8] = guiCreateLabel(384,27,114,18,"Created by |V",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(14,249,183,37,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(355,249,503,303,":O| Destruction Derby Userpanel v1.01",true) GUIEditor_Label[1] = guiCreateLabel(20,31,196,26,"Your Stats:",false,GUIEditor_Window[2]) GUIEditor_Label[2] = guiCreateLabel(20,68,34,16,"Serial:",false,GUIEditor_Window[2]) GUIEditor_Label[9] = guiCreateLabel(58,68,287,17,"".. getPlayerSerial ( ) .."",false,GUIEditor_Window[2]) GUIEditor_Label[3] = guiCreateLabel(19,99,32,17,"Wins:",false,GUIEditor_Window[2]) GUIEditor_Label[4] = guiCreateLabel(18,129,38,16,"Points:",false,GUIEditor_Window[2]) GUIEditor_Label[5] = guiCreateLabel(17,159,83,16,"Second places:",false,GUIEditor_Window[2]) GUIEditor_Label[6] = guiCreateLabel(16,184,73,15,"Third places:",false,GUIEditor_Window[2]) GUIEditor_Label[7] = guiCreateLabel(17,213,33,17,"Rank:",false,GUIEditor_Window[2]) triggerServerEvent("GUIwins",getLocalPlayer()) triggerServerEvent("GUIpoints",getLocalPlayer()) triggerServerEvent("GUIsecond",getLocalPlayer()) triggerServerEvent("GUIthird",getLocalPlayer()) triggerServerEvent("GUIrank",getLocalPlayer()) function guiToggleVisible ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) end bindKey ( "f1", "down", guiToggleVisible ) addEvent ( "GUIwins", true ) addEventHandler ( "GUIwins", root, function ( wins ) if ( wins ) then GUIEditor_Label[10] = guiCreateLabel ( 55, 100, 287, 17, "".. wins .. "", false, GUIEditor_Window[2] ) end end ) addEvent ( "GUIpoints", true ) addEventHandler ( "GUIpoints" ,root, function ( points ) if ( points ) then GUIEditor_Label[11] = guiCreateLabel ( 60, 129, 287, 17, "".. points .."", false, GUIEditor_Window[2] ) end end ) addEvent ( "GUIsecond", true ) addEventHandler ( "GUIsecond",root, function ( second ) if ( second ) then GUIEditor_Label[12] = guiCreateLabel ( 102, 159, 287, 17, "".. second .."", false, GUIEditor_Window[2] ) end end ) addEvent ( "GUIthird", true ) addEventHandler ( "GUIthird", root, function ( third ) if ( third ) then GUIEditor_Label[13] = guiCreateLabel ( 90, 184, 287, 17, "".. third .."", false, GUIEditor_Window[2] ) end end ) addEvent ( "GUIrank", true ) addEventHandler ( "GUIrank", root, function ( rank ) if ( rank ) then GUIEditor_Label[14] = guiCreateLabel ( 51, 213, 287, 17, "".. rank .."", false, GUIEditor_Window[2] ) end end )
-
doesn't helps I wasn't really trying to help decompile scripts, as he could decompile stolen scripts .
-
Use: guiGridListAddRow and guiGridListSetItemText
-
Busca en esta pagina: https://community.multitheftauto.com/, hay muchos recursos para crear casas.
-
There's a resource called "gatemaker" which let's you create gates in game.
-
There's "luadec", which doesn't decompile the script exactly like it was, but with a lot of changes, variable names missing, and other things.
-
You can't use numbers as variable names. You should test what you post.
-
function createText ( ) -- add your code here end function TheRendering ( ) addEventHandler ( "onClientRender", root, createText ) -- keep the text visible with onClientRender. end addEventHandler ( "onClientResourceStart", resourceRoot, TheRendering ) --And if you want to stop rendering. function stopTheRendering ( ) removeEventHandler ( "onClientRender", root, createText ) --now removing the eventhandler end addCommandHandler ( "stoprender", stopTheRendering ) -- You had 'addCommandHamdler', that's wrong.
-
@Draken: That script make's no sense, you're setting the text of the rows with the return of xmlLoadFile which isn't the content of course.
-
Aca ayudamos a arreglar sus problemas, no damos los scripts porque no quieren aprender.
-
Aca no damos los scripts como asi, nosotros te ayudamos a resolver los problemas que tengas. Podes empezar a aprender aca: http://development.mtasa.com/wiki/ES/In ... %B3n_a_Lua http://development.mtasa.com/wiki/ES/In ... B3n_de_GUI http://lua-users.org/wiki/TutorialDirectory
-
Of course it can be done, but we're not going to do it for you .
-
Well, then I suggest to do easier things first.
-
You should create a function like: getPlayerByID ( theID ) and then implement it on the admin panel.
-
If you want to kick players by their "ID", you'll have to modify the admin panel.
-
What? I told you to search for "SKIN REPLACEMENTS" because in "zombies_client.lua" it says that, and just below there's the skin replacement code.
-
Of course it won't, they are just texture mods, remove the files and take them off meta.xml, then search for "SKIN REPLACEMENTS" and remove them all.