-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Hi! I curently own 2 servers and I can give free host!
Castillo replied to markkus1992's topic in Servers
And we have to believe you because of...? seriously, you think someone would trust all his work on some random guy? -
Jaysd, your post makes totally no sense to me, what are you trying to say? P.S: bandi, the MTA may crash when you're replacing a skin, but not always.
-
We don't accept requests here, you must learn how to do it yourself or pay someone to do it for you.
-
Could you explain what are you trying to do? because I don't get it.
-
Hi! I curently own 2 servers and I can give free host!
Castillo replied to markkus1992's topic in Servers
Why should we trust our gamemodes to a unknown person? that makes no sense (at least for me), you could just take the scripts and shutdown the server. -
Congratz MTA Team! You really deserve this.
-
The skin replacement can make your game crash, but not that much, I've crashed maybe once, and that's only when I was replacing them. P.S: I guess he's talking about his server Jaysd, selling them on his server .
-
local puerta = createObject (2634,1.0180234909058,-291.06182861328,5.5739164352417,0,0,180)-- con esto creas la puerta cambiando la ID del objeto que quieras crear, en este caso es 2634 y editales las cordenadas x,y,z local marker = createMarker (1.0180234909058,-291.06182861328,5.5739164352417, 'cylinder', 2, 0, 0, 255, 0)-- esto crea el marcador en la misma puerta para verificiar al tocarlo si el jugador es administrador o no, puedes ponerle mas alpha para ke puedas ver el marcador, aqui esta en 0 para que no se vea addEventHandler ("onMarkerHit",marker, function (hitPlayer) local account = getPlayerAccount(hitPlayer) if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Admin' ) ) then moveObject (puerta,2000,1.0180234909058,-291.06182861328,1.5739164352417)-- Aqui pones las coredenadas de hacia donde quieres que se mueva la puerta y cambias el tiempo que demorara en moverse la puerta, en este caso ai 2000, que son 2 segundos else outputChatBox ("Acceso denegado!",hitPlayer) end end) addEventHandler ("onMarkerLeave",marker, function () moveObject (puerta,2000,1.0180234909058,-291.06182861328,5.5739164352417)-- y la ultima funcion que movera la puerta a su lugar inicial cuando el jugador deje el marcador, pones las cordenadas de la pueta donde fue creada asi vuelve a su posicion inicial y modificas el tiempo que demorara la puerta nuevamente, que son 2 segundos de nuevo end)
-
There's no resource to do that, you must edit the race nametags.
-
Maybe because that's a f*** mess? I don't even get what is that.
-
Problema con "admin panel"
Castillo replied to RekZ's topic in Ayuda relacionada al cliente/servidor
No hay de que . P.D: No podias simplemente registrarte desde el juego mismo con /register? -
Problema con "admin panel"
Castillo replied to RekZ's topic in Ayuda relacionada al cliente/servidor
No podes registrar una cuenta desde la consola del servidor, para eso tenes que usar el comando "addaccount ". -
@novo: The script is working, maybe your resolution doesn't fit it.
-
local shown = true bindKey('F1', 'down', function() for _, player in ipairs(getElementsByType('player')) do if (player ~= localPlayer) then if (show) then setElementDimension(getPedOccupiedVehicle(player), 1) setElementDimension(player, 1) outputChatBox("[iNFO]: Currently Hidding Vehicles.", player ) else setElementDimension(getPedOccupiedVehicle(player), 0) setElementDimension(player, 0) outputChatBox("[iNFO]: Currently Showing Vehicles.", player ) end end end shown = not shown end)
-
I won't offend anyone but, that's just a total mess, wtf? using onClientRender on a server side script and combined with SQLITE functions? that's just stupid and non-sense. -- server side: exports.dxscoreboard:scoreboardAddColumn("Time played") function updateTimePlayed() setTimer(updateTimePlayed,1000,1) for index, player in ipairs(getElementsByType("player")) do local timePlayed = getElementData(player, "Time played") if (not timePlayed) then setElementData(player, "Time played","0:0:0") end local hours, mins, secs = unpack(split(timePlayed, ":")) local hours = tonumber(hours) local mins = tonumber(mins) local secs = tonumber(secs) if (hours and mins and secs) then local newsec = secs + 1 if ( newsec >= 60 ) then newsec = 0 mins = mins + 1 end if ( mins >= 60 ) then mins = 0 hours = hours + 1 end setElementData ( player, "Time played", tostring(hours) ..":".. tostring(mins) ..":".. tostring(newsec)) end end end setTimer(updateTimePlayed,1000,1)
-
You didn't make that, you should give credits to the real author. P.S: There's something missing, maybe the "restrictionEnd" function? .
-
Try this, not sure (I'm tired): function zarejestrujGracza(nazwa,haslo,email) outputChatBox(tostring(nazwa)) if dbExec( funbox_db, "UPDATE `gracze` SET `haslo` = '" .. haslo .. "' WHERE `nazwa` = '" .. nazwa .."'" ) then outputServerLog("Rejestracja: Gracz "..nazwa.." Haslo: "..haslo.." Email: "..email.."") end end addEvent("zarejestrujGracza",true) addEventHandler("zarejestrujGracza",root,zarejestrujGracza)
-
Si, me parecia que habia algo mal, gracias por correjirlo .
-
As I said, the text position is WRONG. local player = getLocalPlayer() local counter = 0 local starttick local currenttick local screenWidth, screenHeight = guiGetScreenSize() fpsLabel = dxText:create('FPS:', screenWidth - 190, 25, false, 'bankgothic', 1) fps = dxText:create("0", screenWidth - 130, 25, false, 'bankgothic', 1) addEventHandler("onClientRender",root, function() if not starttick then starttick = getTickCount() end counter = counter + 1 currenttick = getTickCount() if currenttick - starttick >= 1000 then setElementData(player,"fps",counter) fps:text(tostring(counter)) counter = 0 starttick = false end end ) That works, the text is over the HUD.
-
Any errors showing? is the size, position fine?
-
Try this (not tested): local player = getLocalPlayer() local counter = 0 local starttick local currenttick local screenWidth, screenHeight = guiGetScreenSize() dxText:create('FPS:', screenWidth - 190, 1090, false, 'bankgothic', 1) fpsLabel = dxText:create("0", screenWidth - 190, 1110, false, 'bankgothic', 1) addEventHandler("onClientRender",root, function() if not starttick then starttick = getTickCount() end counter = counter + 1 currenttick = getTickCount() if currenttick - starttick >= 1000 then setElementData(player,"fps",counter) fpsLabel:text(tostring(counter)) counter = 0 starttick = false end end )
-
Maybe this can help: viewtopic.php?f=91&t=33560&
-
addEventHandler("onResourceStart",resourceRoot, -- we add event for initiate function, on resource start. function() -- we start the function. t1 = createTeam("Team1", 255,0,0) --we create t1. setTeamFriendlyFire(getTeamFromName("Team1"), false) -- we set no friendly fire for t1. t2 = createTeam("Team2", 255,0,0) --we create t2. setTeamFriendlyFire(getTeamFromName("Team2"), false)-- we set no friendly fire for t2. end -- we close function. ) -- we close event.
-
The value stored in getPlayerIdleTime is from when a player becomes idle (AFK) as far as I know.
-
Ayuda soy novato y ya no se que hacer
Castillo replied to leobi96's topic in Ayuda relacionada al cliente/servidor
Entra en la pagina de tu modem/router y abri los puertos, ahi dice que estan cerrados. Busca tu modem/router en http://portforward.com/, que yo sepa hay guias para muchos modems/routers.
