Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You can change it from the admin panel by lil toady (default) in the "Server" tab, or via scripting using setGameType function.
  2. Castillo

    markers

    Just change px, py, pz to your cords.
  3. I don't want to be rude, but if I'm right, the question was already answered.
  4. Do you mean like a random location? if so, yes, you can make a table with locations and then use math.random.
  5. Of what gamemode are you talking about?
  6. You got missing a function there. local index = 1 local MaxFrame = 11 local screenWidth, screenHeight = guiGetScreenSize() addEventHandler("onClientRender" , root , function ( ) dxDrawImage ( screenWidth/2 - 50, 0, 642, 204, "nyancat/nyan"..index..".png" ) index = index + 1 if index >= MaxFrame then index = 1 end end )
  7. I don't know what's that, but is wrong. function fade() fadeCamera(source,false,10.0) end addEventHandler("onPlayerJoin",getRootElement(),fade)
  8. Ok, if you can post the whole resource it would be highly helpfull to us.
  9. I just added the variable MaxFrame = 32, you'd forgot about it.
  10. local index = 1 local MaxFrame = 32 addEventHandler("onClientRender" , root , function ( ) dxDrawImage ( screenWidth/2 - 50, 0, 642, 204, , "imageName"..index..".png" ) index = index + 1 if index >= MaxFrame then index = 1 end end )
  11. Hello again! I have decided to finally upload the version 4.5 of my friends list resource, with this new version it brings a lot of changes, such as rewritten almost the whole script, added features such as language system, block friends, and some other changes in the interface system. I'll leave some screenshots in a slideshow. Slideshow: http://img691.imageshack.us/slideshow/w ... 123038.png Download 4.5: https://community.multitheftauto.com/index.php?p= ... ls&id=1267 Enjoy and please report bugs, thanks.
  12. It is possible, but you'll need some scripting knowledge, and many images to simulate a kind of GIF image.
  13. onClientResourceStart is triggered when the player finishes downloading the resources, maybe you should do it server-side onPlayerJoin to fade camera.
  14. Castillo

    Text box

    Your question doesn't help him if he's a newbie, Capy. I'll tell you what functions/events do you need to make it. dxDrawRectangle dxDrawText dxGetTextWidth onClientRender -- event handler used to render DX drawing. You'll need LUA scripting knowledge though, maybe you should start with something easier first.
  15. Nice work karlis, I'll surely check it out when you release it! keep up the good work.
  16. Car mod: https://community.multitheftauto.com/ind ... ls&id=2787
  17. Castillo

    Giving Money

    local gpickup = {} function takemoney ( thePlayer ) givePlayerMoney(thePlayer, getElementData(source, "moneyDropped")) destroyElement(source) end function givemoney(thePlayer, command, amount) if isElement(gpickup[thePlayer]) then return end local x,y,z = getElementPosition(thePlayer) local x = x + 5 gpickup[thePlayer] = createPickup(x,y,z,3,1212) setElementData(gpickup[thePlayer], "moneyDropped", math.ceil(tonumber(amount))) takePlayerMoney (thePlayer, math.abs(math.ceil(tonumber(amount)))) addEventHandler('onPickupHit', gpickup[thePlayer], takemoney) end addCommandHandler ("givemoney", givemoney) Works fine here.
  18. function reglas() ven = guiCreateWindow(268,191,276,332,"Reglas",false) guiSetVisible(ven,false) edi = guiCreateEdit(48,68,178,177,"hola te presento",false,ven) bot = guiCreateButton(56,265,167,58,"cerrar",false,ven) addEventHandler( "onClientGUIClick",bot,cerrar1,false) end addEventHandler("onClientResourceStart",resourceRoot,reglas) function bindr() bindKey ("F1", "down", mostrarReglas) end addCommandHandler ( "reglas", bindr ) function mostrarReglas() if guiGetVisible(ven) then guiSetVisible(ven,false) showCursor(false) else guiSetVisible(ven,true) showCursor(true) end end function cerrar1() guiSetVisible(ven,false) showCursor(false) end
  19. You put it vice versa. local screenWidth,screenHeight = guiGetScreenSize() GUIEditor_Label = {} function lol () GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) guiSetFont(GUIEditor_Label[1],"clear-normal") setTimer ( guiSetVisible, 5000, 1, GUIEditor_Label[1], false) end addEventHandler("onClientResourceStart",getRootElement(), lol )
  20. ------------------------------------------------------------------------------ local dwnzgate = createColSphere ( -1572, 662, 7, 6 ) local dwnogate = createObject ( 968, -1572.19, 658.79, 6.8, 0, 269, 270 ) function pd_dgate_enter ( thePlayer ) local team = getPlayerTeam(thePlayer) if not team then return end if getTeamName(team) == "SWAT" or getTeamName(team) == "SFPD" then local x,y,z = getObjectRotation ( dwnogate ) moveObject ( dwnogate, 3000, -1572.19, 658.79, 6.8, 0, -1+(360-y), 0 ) end end function pd_dgate_exit ( thePlayer ) if getPlayerTeam ( thePlayer ) then local x,y,z = getObjectRotation ( dwnogate ) moveObject ( dwnogate, 2000, -1572.19, 658.79, 6.8, 0, -90+(360-y), 0 ) end end addEventHandler ( "onColShapeHit", dwnzgate, pd_dgate_enter ) addEventHandler ( "onColShapeLeave", dwnzgate, pd_dgate_exit ) ------------------------------------------------------------------------------
  21. Castillo

    HGui

    Remove that 'end', I don't see any function or anything that should use it.
  22. There are many ways of getting "Admin levels", one would be using the MTA ACL system, creating groups and adding the users in there.
  23. If you are going to copy something, at least learn how to make the meta.xml. https://wiki.multitheftauto.com/wiki/Meta.xml
×
×
  • Create New...