-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Postea el codigo del server side (todo).
-
I suposed you we're wrong, no problem btw.
-
That's impossible, it works without errors here.
-
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.
-
megaman, i think that's not the point of this topic.
-
Do you mean: onClientClick?
-
--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).
-
Mira, para desactivar usas la funcion: setBlurLevel. Y para desactivar las armas del hunter usas la funcion: toggleControl. Buena suerte.
-
What do you mean by "How did you found my codes" ?
-
I guess you are using both functions, right? addStat and onPlayerWins.
-
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.
-
yourButtonElement = guiCreateButton(blabla) You will have something else, that's why i put yourButtonElement for you to change it.
-
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
-
DeagleTM, P-login is a public login GUI... why would he remove it?
-
He's right, if you don't feel like to share it, then why did you post?
-
Rumor sobre robo de resources.
Castillo replied to juniorblinxs's topic in Ayuda relacionada al cliente/servidor
Cuando te conectas a un servidor bajas los archivos client-side, pero no puedes obtener los server-side de esa manera. -
You must store the data somewhere, then draw it with DX drawing functions. https://wiki.multitheftauto.com/wiki/Cli ... _functions
-
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
-
Hahaha, nice catch John, i didn't look so carefully
-
This function should do what you want, https://wiki.multitheftauto.com/wiki/Set ... idableWith i think?
-
It does work fine here, no errors.
-
Dude... what do you mean? i really don't understand, are you asking for help or what? please use a better translator.
-
I still don't understand you... what is this? a contest?
-
There's a program named: sqlitebrowser, it's able to open this kind of databases, just google it.
