Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Postea el codigo del server side (todo).
  2. I suposed you we're wrong, no problem btw.
  3. That's impossible, it works without errors here.
  4. Citizen, i've helped him personally on MSN, and what he said after i helped "noob, fuck you" or something like that, he doesn't even know how to make a simple meta.xml.
  5. megaman, i think that's not the point of this topic.
  6. Castillo

    Name

    You can't sell an script which you taked from the forums (I know you'd), even worst, for 15 euros.
  7. --Client side GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(244,192,289,309,"Panel Miembros Que Pagan",false) guiSetVisible ( GUIEditor_Window[1], false ) GUIEditor_Button[1] = guiCreateButton(73,31,124,39,"Repair",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(72,83,129,38,"Flip",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(71,140,124,39,"Get Nitro",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(19,275,237,25,"Close [M]",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(11,199,266,17,"Todo En este panel No tiene Costo Para Ti.",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(64,220,166,43,"premium!",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0,0) guiSetFont(GUIEditor_Label[2],"sa-gothic") addEventHandler("onClientGUIClick",getRootElement(), function () if (source == GUIEditor_Button[4]) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) end end) addEvent("openPremiumPanel",true) addEventHandler("openPremiumPanel",getRootElement(), function () guiSetVisible (GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(not isCursorShowing()) end) --Server side function showPremiumPanel(thePlayer) local account = getPlayerAccount(thePlayer) if account then local accountname = getAccountName(account) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Sr.Admin" )) then triggerClientEvent (thePlayer, "openPremiumPanel", getRootElement()) else outputChatBox ("Premium: Access denied", thePlayer, 255, 0, 0) end end end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), function () for index, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "M", "down", showPremiumPanel ) end end) addEventHandler ( "onPlayerJoin", getRootElement(), function () bindKey ( source, "M", "down", showPremiumPanel ) end) addEventHandler ( "onResourceStop", getResourceRootElement ( getThisResource() ), function () for index, player in ipairs ( getElementsByType ( "player" ) ) do unbindKey ( player, "M", "down", showPremiumPanel ) end end) Works (tested).
  8. Mira, para desactivar usas la funcion: setBlurLevel. Y para desactivar las armas del hunter usas la funcion: toggleControl. Buena suerte.
  9. What do you mean by "How did you found my codes" ?
  10. Castillo

    addStat()

    I guess you are using both functions, right? addStat and onPlayerWins.
  11. Todo esta contestado aqui: https://wiki.multitheftauto.com/wiki/Main_Page, lo unico que tenes que hacer es aprender y para lo de crear agua, creo que con createWater funcionaria.
  12. yourButtonElement = guiCreateButton(blabla) You will have something else, that's why i put yourButtonElement for you to change it.
  13. Castillo

    addStat()

    Doesn't make any sense, you are passing 'thePlayer' as player argument, but in your function you are using 'player'. function onPlayerWins(player) local players = getPlayerCount() local points = players * 1.3 local pointsstat = "Points" local cash = players * 7 local cashstat = "Cash" addStat(player, pointsstat, points) addStat(player, cashstat, cash) end
  14. DeagleTM, P-login is a public login GUI... why would he remove it?
  15. He's right, if you don't feel like to share it, then why did you post?
  16. Cuando te conectas a un servidor bajas los archivos client-side, pero no puedes obtener los server-side de esa manera.
  17. Castillo

    Exp Zumbie

    You must store the data somewhere, then draw it with DX drawing functions. https://wiki.multitheftauto.com/wiki/Cli ... _functions
  18. I had this problem before, but a guy in the forums helped me, here's the topic: viewtopic.php?f=91&t=32132&hilit=resolution
  19. Hahaha, nice catch John, i didn't look so carefully
  20. This function should do what you want, https://wiki.multitheftauto.com/wiki/Set ... idableWith i think?
  21. Dude... what do you mean? i really don't understand, are you asking for help or what? please use a better translator.
  22. I still don't understand you... what is this? a contest?
  23. There's a program named: sqlitebrowser, it's able to open this kind of databases, just google it.
×
×
  • Create New...