-
Posts
254 -
Joined
-
Last visited
Everything posted by Sticmy
-
local Wacc = getAccountName(getPlayerAccount(thePlayer))
-
function vipReplaceModele () local account = getPlayerAccount(source) if isObjectInACLGroup ("user."..getAccountName( account ), aclGetGroup ( "VIP" ) ) then triggerClientEvent (source, "onReplace", source ) end end addEventHandler('onPlayerLogin', root, vipReplaceModele) function replaceModele () local txd = engineLoadTXD("hydra.txd") engineImportTXD(txd, 520) local dff = engineLoadDFF("hydra.dff", 520) engineReplaceModel(dff, 520) end addEvent( "onReplace", true ) addEventHandler( "onReplace", root, replaceModele ) Try it i did some changes i tried it in my local and it works
-
pública tu código, es usar dos funciones que son: setElementData y getElementData.
-
Debes usar un getElementData para obtener el data del jugador. y si quieres hacer que el tiempo baje usa el setTimer
-
lol forget the onClientRender sorry event
-
Put the second you want if it appears in 30 seconds or whatever seconds you want
-
setTimer(function() local time = getRealTime() local hours = time.hour local minutes = time.minute if hours == 7 and minutes == 00 then outputChatBox("Time: "..hours..":"..minute"", source, 255, 0, 0) givePlayerMoney(source, 1500) end end, 1000, 0) i have not tried it
-
Have you given permissions to the admin panel? If it does not work, use it : resource.script in the group ACL Name "Admin"
-
No es necesario eso hacerlo con sql.. para obtener toda las datas de un jugador getAllElementData(getPlayerAccount(thePlayer)) Si es sobre accountData getAllAccountData(getPlayerAccount(thePlayer)) y para que puedas modificar una data es: setElementData y accountData: setAccountData PD:No se si me explico bien jeje
-
Yo uso cache y no me gusta compilar mis cosas pero también yo mismo hice un propio sistema de proteger mis cosas cuando hay alguien que me lo robo. Te recomiendo que uses mysql o data para que solamente funcionen obteniendo tal data o mysql.
- 11 replies
-
- proteccion
- scripts
-
(and 1 more)
Tagged with:
-
change the ThePlayer in hitElement all
-
Hi i would like to know how i can do that a player can put more than 3 letters in their names, i do not know if i can explain myself. Please help me i' am sorry for my English, i do not know so much
-
That function I always use and I do well
-
toggleAllControls ( false ) in the part where you open the panel and if it is server side toggleAllControls ( thePlayer, false ) Here is the function: https://wiki.multitheftauto.com/wiki/ToggleAllControls PD: i'm sorry but i do not know much english
-
Problema con (VF #2 0005000)
Sticmy replied to Sticmy's topic in Ayuda relacionada al cliente/servidor
Si ya lo arregle man Ya ando listo para configurar mi local, poder scriptear y hacer lo que me gusta -
Hola quisiera saber porque me kickea en mi propio local y cuando entró en un server también me da kick porque me dan kick??
-
man he hecho lo que me dices pero sigue..
-
El error sigue por favor ayúdenme
-
Ah ya entendí, veré si funciona
-
No hay ningún fallo man Prueba el código en tu local y verás..
-
Por más que lo ponga derecho el problema sigue al mover la cámara se ancha más y baja más...
-
Hola chicos del MTA! Tengo un problema que no tengo idea de como resolverlo.. Lo que pasa es que quisiera que quede así la Rectangle PD: Lo hice con el guieditor para hacerme explicar Pero cuando pongo el Rectangle se pone así cuando muevo cámara se pone así también Alguna manera de arreglarlo dejo la función aquí mismo! addEventHandler("onClientRender", root, function() for k, v in ipairs(getElementsByType("ped")) do local x, y, z = getElementPosition(localPlayer) local x2, y2, z2 = getElementPosition(v) local a, b = 100, 100 local cx, cy, cz = getCameraMatrix() if getDistanceBetweenPoints3D(x, y, z, x2, y2, z2 + 0.5) < 7 and isLineOfSightClear(cx, cy, cz, x2, y2, z2 + 0.5, true, true, false) then local sx, sy = getScreenFromWorldPosition(x2, y2, z2 + 0.5) if sx and sy then sx, sy = sx - a, sy - b dxDrawRectangle(sx - 10, sy, sx + 20, sy + 20, tocolor(0, 0, 0, 100)) dxDrawText("Salud: ".. math.ceil(getElementHealth(v)).."", sx - 10, sy, sx + 500, sy + 500, tocolor(0, 255, 0, 100), 1.2, "default-bold") end end end end ) Por favor necesito ayuda es para mi Roleplay
-
Vida Callejera [Roleplay] |v0.1| [Latino] [LS]
Sticmy replied to RinkeDiaz's topic in Servidores en donde jugar
Me encanta el roleplay! PD: Ahí entró a ver tus sistemas..- 16 replies