Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Really, what is this? I seriously see no point on this.
  2. Castillo

    ok um

    Well, firstly, you'll need a server & a client side script, but, I done the job for you, and seems to be working . -- client side addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource( ) ), function () triggerServerEvent("isPlayerAdmin",getLocalPlayer(),getLocalPlayer()) end) function initGUI() btnOutput = guiCreateButton( 0.7, 0.1, 0.2, 0.1, "Output!", true ) addEventHandler ( "onClientGUIClick", btnOutput, outputEditBox, false ) editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, "Type your message here!", true ) guiEditSetMaxLength ( editBox, 128 ) end addEvent("returnIsPlayerAdmin",true) addEventHandler("returnIsPlayerAdmin",root,initGUI) function outputEditBox ( button ) if button == "left" then local text = guiGetText ( editBox ) triggerServerEvent("outputAdminText",getLocalPlayer(),text) end end -- server side addEvent("isPlayerAdmin",true) addEventHandler("isPlayerAdmin",root, function (client) local account = getPlayerAccount(client) if not account or isGuestAccount(account) then return end local accountName = getAccountName(account) if isObjectInACLGroup("user."..accountName,aclGetGroup("Admin")) then triggerClientEvent(client,"returnIsPlayerAdmin",client) end end) addEvent("outputAdminText",true) addEventHandler("outputAdminText",root, function (text) outputChatBox(tostring(text)) end) P.S: I added the outputChatBox server-sided because, it would have been output only to the client with your way.
  3. No, este es el post, pero pedi que lo movieran, ya que no podes postear en otro idioma que ingles en el foro, para eso esta esta seccion.
  4. I want a big mansion with 20 vehicles in the garage, please, help me to get them. Dude, this place is not for requests, if you need help scripting it, then post here, we don't accept requests.
  5. Mira, mi idea es esta, crea otro texto debajo (con color negro) y le cambias la posicion.
  6. function hideNShow(player) if isPlayerNametagShowing(player) then setPlayerNametagShowing ( player, false ) else setPlayerNametagShowing ( player, true ) end end addCommandHandler("togglenick",hideNShow)
  7. Yes, that's what I meant, sorry, I miss spell it .
  8. It tells you that it bound the key, but it doesn't tell you the parameters.
  9. You can do like this: /bind X ss 46 That'll set your skin to 46 when you press X (in freeroam).
  10. Yay, I appear on the video(s)! :D I can't wait for the official release!
  11. I've tried to get it's author, etc and it seems that it's not possible, I can only retrieve the version.
  12. Maybe try looking in GUIEDITOR resource, it has something like that.
  13. My race userpanel: https://community.multitheftauto.com/index.php?p= ... ils&id=811 race_starter_pack: https://community.multitheftauto.com/index.php?p= ... ils&id=821
  14. Well, firstly you'll need a way to store the data of the player (can be account data, sqlite, mysql, xml), you can check how is done some of the scripts in the MTA community (there are some which has this). https://community.multitheftauto.com/index.php?p=resources
  15. Please, don't double-post, use the EDIT button instead.
  16. Castillo

    Tabbar

    Firstly, this should go in the Scripting section. And second, to make this, you'll need scripting knowledge. You can start learning using the MTA wiki and asking for help in the scripting section.
  17. Pues, por si no lo sabias, este gamemode usa mysql, si no tienes un servidor mysql y le pones los datos del mismo en el servidor donde usas el gamemode anda.
  18. No tengo mucha idea sobre este game mode, pero que yo sepa, los trabajos estan en la "City Hall".
  19. Meh, at least you appear in most, I don't appear in any .
  20. If i'm right, it's: setPlayerNametagShowing
×
×
  • Create New...