menü

Üzenetek megjelenítése

Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.

Üzenetek megjelenítése menü

Témák - asdpudingasd

#21
Archívum / Random Gomb Kiválasztása
2015. március 23. - 20:23:20
Helló! Azt szeretném tőletek kérdezni, hogy hogyan lehet azt megcsinálni, hogy van 7 gomb egy ablakban. És egyszer ha rányomok a 7-es gombra akkor add 500$-t és utána ha újra megnyitjuk akkor megint megnyomom a 7-es gombot akkor azt írja ki, hogy: \" Nem sikerült! :( \". ha megnyomom  a 3-as gombot akkor pedog szintén ad 500$-t.
Rövidebben: Random válassza ki a gombokat.
Ezt meglehetne-e csinálni? A Segítségeteket előre is köszönöm!
#22
Archívum / OpticMTA: Roleplay
2015. február 13. - 19:12:46

Üdvözlök Mindenkit!
Beszeretném nektek mutatni az OpticMTA-t! Ez a Szerver Valhallából áll, szóval NEM EGYEDI. A szerver célja az, hogy egy RP-s és Normális társaságot kialakítson és persze a szerverrel is foglalkozzon! Most térjünk a szerveren lévő dolgokra. A TS3 IP: Eltávolítva
Szerveren lévő Frakciók:
Legális:
- Rendőrség
- Országos Mentő Szolgálat [szabad]
- Nemzeti Adó- és Vámhivatal
- Állam [szabad]
- Optimus Mechanic Shop
- Fuvarozás & Építői Vállalat
- OpticTV
 
Illegális:
- Yakuza [szabad]
- Serbian Maffia [szabad]
- La Cosa Nostra [szabad]
- 18th Street Gang
- 83 Gagster Crips
- Mob Piru Blood\'S
Munkák:
 
- Csomagszállító
- Busz Sofőr
- Lakatos
- Pilóta
- Távolsági Busz Sofőr
- Fűnyíró
Várható Munkák:
 
- Halász
- Postás
- Olaj Szállító [Frakciónak]
- Fa Szállító [Frakciónak]
- Csuklós Busz Vezető [Frakciónak]
- Légi Postás
- Kukás
- Mozdonyvezető
 
Munkák dolgai:
Csomagszállító:
Az a dolga, hogy a város szerte csomagokat hordjon ide oda. Minden CP-ért 6500Ft-ot kapsz! A Térképen jelöli,  hogy hova kell menned!
Busz Sofőr:
Nincs más dolgod csak, hogy elmenj a busz állomásra és beülj egy buszba! Miután beültél be kell írnod egy parncsot amivel elkezdheted a munkát. Az a dolgod, hogy szállítsd az utasokat CP-ről CP-re. Egy CP-ért 5000Ft-t kapsz.
Pilóta:
Miután felvetted a munkát annyi a dolgod , hogy beülj egy repülőbe és követve a CP-ket szállítsd az utasokat városokból városokba. Minden CP-ért 7000Ft-t kapsz. Csak vigyázz! Nehogy lezuhanj a Repülővel!
Fűnyiró:
A Munka felvétele után elkell menni a Parkba ahol beszálsz egy fűnyiróba és beírod az adott parancsot. Miután beírtad a parancsot akkor pedig elkell indulnod a Piros CP-be. Minden CP-ért 400Ft-ot kapsz.
Távolsági Busz Sofőr:
Annyi a dolgod, hogy felvedd a munkát a Városházán és kövesd az adott útvonalat! A járat LS pályaudvartól - SF Vasútállomásig tart. Egy CP-ért 6000Ft-t kapsz!
Mappolások:
Mivel a szerver még csak most nyit ezért nincs nagyon sok hely megmappolva! Minden frakció ( Banda / Maffia ) saját maga mappolhatja mg a banda helyét a Mapper szerverünkön.
FIGYELEM!!! A Szerverre UCP-s Regisztráció szükséges! UCP-nek a linkjét a TS3 szerveren megtaláljátok! FIGYELEM!!!! EZ EGY ÁTMENETI UCP!
Köszönöm ,hogy elolvastad! Nézz fel mert szerintem megéri! TS3 Szerver IP: Eltávolítva | Szerver IP: Eltávolítva | UCP:Eltávolítva
#23
Archívum / Dekódolt DayZ Mód
2015. január 30. - 23:19:27
Helló! Az lenne a kérésem, hogy van-e nem kódolt MTA DayZ mód? A Válaszokat előre is köszönöm
#24
Archívum / Object eltüntetése Scriptbe
2015. január 25. - 19:50:33
Helló! Azt szeretném kérdezni, hogy hogyan tudom törölni a Városháza tetején lévő zászlókat?
#25
Archívum / phpMyAdminból való lekérés
2015. január 24. - 00:23:13
Helló! Olyan problémám támadt, hogy nem tudom lekérni az accounts táblából a credits résznek az összegét :\'(.
Ezekkel próbálkoztam:
 


local credits = \" (\"..tostring(getElementData(thePlayer, \"accounts:credits\"))..\")\"
local credits =  getElementData(thePlayer, \"accounts:credits\")
local credits =  getElementData(thePlayer, \"credits\")
local credits =  (getElementData(thePlayer, \"accounts:credits\"))
local credits =  (getElementData(thePlayer, \"credits\"))

 
És ahol beraktam a \" .. credits .. \" dolgot ott mindig nil-t vagy (false)-t írt. A Válaszokat előre is köszönöm! :)
#26
Archívum / Shader kikapcsolása!
2015. január 18. - 17:33:34
Helló! Azt szeretném megkérdezni, hogy hogyan lehetne beállítani egy adott parancsra azt, hogy a Shadert kikapcsolja. Ha már ki van kapcsolva akkor pedig bekapcsolja
 

local myShader
local timer
function update( )
if tonumber( exports[\'account-system\']:loadSavedData(\"enable_vehicle_shader\", \"1\") ) == 1 then
if myShader then
   return
end
-- Create shader
myShader, tec = dxCreateShader ( \"car_paint.fx\" )
if not myShader then
   -- outputChatBox( \"Could not create shader. Please use debugscript 3\" )
else
   --outputDebugString( \"water shader: Using technique \" .. tec )
   local textureVol = dxCreateTexture ( \"images/smallnoise3d.dds\" );
   local textureCube = dxCreateTexture ( \"images/cube_env256.dds\" );
   dxSetShaderValue ( myShader, \"sRandomTexture\", textureVol );
   dxSetShaderValue ( myShader, \"sReflectionTexture\", textureCube );
   -- Apply to world texture
   engineApplyShaderToWorldTexture ( myShader, \"vehiclegrunge256\" )
   engineApplyShaderToWorldTexture ( myShader, \"?emap*\" )
   --[[
   timer = setTimer(
      function()
         if myShader then
            local r,g,b,a = getWaterColor()
            dxSetShaderValue ( myShader, \"gVehicleColor\", r/255, g/255, b/255, a/255 );
         end
      end,
      5000,
      0
   )
end
else
if myShader then
   destroyElement(myShader)
   killTimer(timer)
   myShader = nil]]
end
end
end
addEventHandler( \"onClientResourceStart\", resourceRoot, update )
addEventHandler( \"accounts:options:settings:updated\", root, update )

 
 a Válaszokat előre is köszönöm! :)
#27
Archívum / Funkció Meghívása
2015. január 18. - 14:58:00
Helló! Az a gondom támadt , hogy Hiába nyomok a Gombra nem nyitja meg a Mód panelt. :( ( Meghívtam  a Funkciót. )
Itt a Script:
 (Gomb)
 

bMods = guiCreateButton(0.01, 0.50, 0.20, 0.10, \"Modpanel\", true, aTeszt)
addEventHandler

 


addEventHandler(\"onClientGUIClick\", bMods, modPanel)

 
Gombnak a Funkciója
 

function modPanel(button, state)
if (source==bMods) and (button==\"left\") then
triggerClientEvent(source, \"panelCommand\", root)
end
end

 
Modpanel:
 

function panelCommand()
togglePanel(not panelState)
end
addCommandHandler(\"mod\", panelCommand)
addEvent(\"panelCommand\", true)
addEventHandler(\"panelCommand\", root, panelCommand)
/code]
A Modpanel Kliens oldali.
Előre is köszönöm a Segítségeteket
#28
Archívum / Bad argument
2015. január 16. - 17:24:22
Hello! a Segítségeteket kérném! Mi lehet a baj mer nem tudok rájönni :d
[2015-01-16 17:14:03] ERROR: cctv-system/cctv.lua:57: bad argument #1 to \'ipairs\' (table expected, got string)
Script:
 

function cctvDB(action, id, data)
  if action == \"create\" then
    local checkT = executeSQLSelect(\"cctvterminals\", \"name, loc, interior, restricted, access, options\")
    if not checkT then
      local alter = executeSQLSelect(\"cctvterminals\", \"name\", \"\", 1)
      if not alter then
        executeSQLCreateTable(\"cctvterminals\", \"name TEXT, loc TEXT, interior INTEGER, restricted INTEGER, access TEXT, options TEXT\")   
        outputChatBox(\"CCTV: DB: Created terminal table\", getRootElement(), 0, 222, 222, true)
      else
        executeSQLQuery(\"ALTER TABLE cctvterminals ADD COLUMN options TEXT DEFAULT \'0\'\")
        outputChatBox(\"CCTV: DB: Updated terminal table structure\", getRootElement(), 0, 222, 222, true)
      end
    end
    local checkC = executeSQLSelect(\"cctvcameras\", \"name, type, terminal, loc, interior, target, color, scan, zoom, motor, options\")
    if not checkC then
      local alter = executeSQLSelect(\"cctvcameras\", \"name\", \"\", 1)
      if not alter then
        executeSQLCreateTable(\"cctvcameras\", \"name TEXT, type INTEGER, terminal TEXT, loc TEXT, interior INTEGER, target TEXT, color TEXT, scan TEXT, zoom BOOL, motor BOOL, options TEXT\")
        outputChatBox(\"CCTV: DB: Created camera table\", getRootElement(), 0, 222, 222, true)
      else
        executeSQLQuery(\"ALTER TABLE cctvcameras ADD COLUMN options TEXT DEFAULT \'0\'\")
        outputChatBox(\"CCTV: DB: Updated camera table structure\", getRootElement(), 0, 222, 222, true)
      end
    end
#29
Archívum / Phone System
2015. január 10. - 23:10:17
Helló! Egy gondom akadt amit nem tudok megoldani  és a segítségeteket kérném :SSSS
 

[2015-01-10 22:28:45] WARNING: phone-system/s_hotlines.lua:146: Bad argument @ \'getPlayersInTeam\' [Expected team at argument 1, got boolean]
[2015-01-10 22:28:45] ERROR: phone-system/s_hotlines.lua:146: bad argument #1 to \'ipairs\' (table expected, got boolean)

 


function isNumberAHotline(theNumber)
local challengeNumber = tonumber(theNumber)
return challengeNumber == 911 or challengeNumber == 311 or challengeNumber == 411 or challengeNumber == 511  or challengeNumber == 611 or challengeNumber == 921 or challengeNumber == 1501 or challengeNumber == 1502 or challengeNumber == 8294 or challengeNumber == 7331 or challengeNumber == 7332 or challengeNumber == 864
end
function routeHotlineCall(callingElement, callingPhoneNumber, outboundPhoneNumber, startingCall, message)
local callprogress = getElementData(callingElement, \"callprogress\")
if callingPhoneNumber == 911 then
-- 911: Emergency Services and Police.
-- Emergency calls that they need to respond to.
if startingCall then
   outputChatBox(\"911 Operator [Cellphone]: 911 emergency. Please state your location.\", callingElement)
   exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 1, false)
else
   if (callprogress==1) then -- Requesting the location
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"call.location\", message, false)
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 2, false)
      outputChatBox(\"911 Operator [Cellphone]: Can you describe your emergency please?\", callingElement)
   elseif (callprogress==2) then -- Requesting the situation
      outputChatBox(\"911 Operator [Cellphone]: Thanks for your call, we\'ve dispatched a unit to your location.\", callingElement)
      local location = getElementData(callingElement, \"call.location\")
 
      local playerStack = { }
      for key, value in ipairs( getPlayersInTeam( getTeamFromName( \"Los Santos Police Department\" ) ) ) do
         table.insert(playerStack, value)
      end
      for key, value in ipairs( getPlayersInTeam( getTeamFromName( \"State Police\" ) ) ) do
         table.insert(playerStack, value)
      end
      for key, value in ipairs( getPlayersInTeam( getTeamFromName( \"Los Santos Medical Services\" ) ) ) do
         table.insert(playerStack, value)
      end
      for key, value in ipairs( getPlayersInTeam( getTeamFromName( \"Los Santos Fire Department\" ) ) ) do
         table.insert(playerStack, value)
      end
      local affectedElements = { }
      for key, value in ipairs( playerStack ) do
         for _, itemRow in ipairs(exports[\'item-system\']:getItems(value)) do
            local setIn = false
            if (not setIn) and (itemRow[1] == 6 and itemRow[2] > 0) then
               table.insert(affectedElements, value)
               setIn = true
               break
            end
         end
      end
      for key, value in ipairs( affectedElements ) do
         outputChatBox(\"[RADIO] This is dispatch, We\'ve got an incident call from #\" .. outboundPhoneNumber .. \", Over.\", value, 0, 183, 239)
         outputChatBox(\"[RADIO] Situation: \'\" .. message .. \"\', Over.\", value, 0, 183, 239)
         outputChatBox(\"[RADIO] Location: \'\" .. tostring(location) .. \"\', Out.\", value, 0, 183, 239)
      end
      executeCommandHandler( \"hangup\", callingElement )
   end
end

 
A Segítségeteket előre is köszönöm
#30
Archívum / MySQL Hiba
2015. január 03. - 19:22:36
Hello! Olyan gondom támadt, hogy a MySQL-t nem akarja elindítani. Mi lehet a baja?
[2015-01-03 19:19:32] Stopping mysql
[2015-01-03 19:19:32] Resource \'mysql\' changed, reloading and starting
[2015-01-03 19:19:32] Starting mysql
[2015-01-03 19:19:32] ERROR: Unable to connect to mysql: (2003) Can\'t connect to MySQL server on \'mysqlgame.clans.hu\' (111)
[2015-01-03 19:19:32] Start up of resource mysql cancelled by script
[2015-01-03 19:19:32] Stopping mysql
[2015-01-03 19:19:32] ERROR: Unable to restart resource mysql
[2015-01-03 19:19:35] ERROR: vehicle-system/s_vehicle_system.lua:187: attempt to concatenate a nil value
[2015-01-03 19:19:38] Starting mysql
[2015-01-03 19:19:38] ERROR: Unable to connect to mysql: (2003) Can\'t connect to MySQL server on \'mysqlgame.clans.hu\' (111)
[2015-01-03 19:19:38] Start up of resource mysql cancelled by script
[2015-01-03 19:19:38] Stopping mysql
[2015-01-03 19:19:38] startResource: Failed to start resource \'mysql\'
#31
Archívum / Admin Felirat
2014. december 21. - 00:00:16
Hello! Az a problémá m támadt amikor bedutyzik az admin akkor csak piros lesz a neve. De én azt szeretném ,hogy ne csak piros legyen hanem a feje felett még azt is írja ki, hogy  ...
A Mód: Valhalla
A Szerver oldali Fájl: (Forrás: global/s_nametag_glolabs)
 

function updateNametagColor(thePlayer)
local username = getPlayerName(thePlayer)
if getElementData(thePlayer, \"loggedin\") ~= 1 then -- Not logged in
setPlayerNametagColor(thePlayer, 127, 127, 127)
elseif isPlayerAdmin(thePlayer) and getElementData(thePlayer, \"adminduty\") == 1 and getElementData(thePlayer, \"hiddenadmin\") == 0 then -- Admin duty
setPlayerNametagColor(thePlayer, 255, 0, 0)
setPlayerName( thePlayer, \"[Admin] \"..username )
elseif exports.donators:hasPlayerPerk(thePlayer, 11) then -- Donator
setPlayerNametagColor(thePlayer, 167, 133, 63)
elseif isPlayerGameMaster(thePlayer) and getElementData(thePlayer, \"account:gmduty\") then -- as duty
setPlayerNametagColor(thePlayer, 0, 255, 0)
else
setPlayerNametagColor(thePlayer, 255, 255, 255)
end
end
for key, value in ipairs( getElementsByType( \"player\" ) ) do
updateNametagColor( value )
end   
#32
Archívum / Kocsi lefoglalás
2014. december 09. - 20:26:43
Hello! Azt szeretném kérdezni ,hogy hogyan tudnám beállítani, hogy ne cska a biciklit tudja lefoglalni hanem a kocsikat is?
 

-- Command to impound Bikes:
function setbikeimpound(player, matchingDimension)
local leader = tonumber( getElementData(player, \"factionleader\") ) or 0
local rank = tonumber( getElementData(player, \"factionrank\") ) or 0
local veh = getPedOccupiedVehicle(player)
if (getElementData(player,\"faction\")) == 30 then
if (isPedInVehicle(player)) then
   if (getVehicleType(veh) == \"Bike\") or (getVehicleType(veh) == \"BMX\") then
      local owner = getElementData(veh, \"owner\")
      local faction = getElementData(veh, \"faction\")
      local dbid = getElementData(veh, \"dbid\")
      local impounded = getElementData(veh, \"Impounded\")
      if (owner > 0) then
         if (faction > 3 or faction < 0) then
            if (source == towSphere2) then
               --PD make sure its not marked as impounded so it cannot be recovered and unlock/undp it
               setVehicleLocked(veh, false)
               exports[\'anticheat-system\']:changeProtectedElementDataEx(veh, \"Impounded\", 0)
               exports[\'anticheat-system\']:changeProtectedElementDataEx(veh, \"enginebroke\", 0, false)
               setVehicleDamageProof(veh, false)
               setVehicleEngineState(veh, false)
               outputChatBox(\"((A járművet parkold le:  /park és húzd be a kéziféket: /kezifek.))\", player, 255, 194, 14)
            else
               if rank >= 5 then
                  if (getElementData(veh, \"faction\") ~= 30) then
                     if (impounded == 0) then
                        exports[\'anticheat-system\']:changeProtectedElementDataEx(veh, \"Impounded\", getRealTime().yearday)
                        setVehicleLocked(veh, false)
                        exports[\'anticheat-system\']:changeProtectedElementDataEx(veh, \"enginebroke\", 1, false)
                        setVehicleEngineState(veh, false)
                        outputChatBox(\"(( A bicikli sikeresen lefoglalva. ))\", player, 50, 205, 50)
                        outputChatBox(\"((A járművet parkold le:  /park és húzd be a kéziféket: /kezifek.))\", player, 255, 194, 14)
                        isin = false
                        exports.logs:logMessage(\"[iMPOUNDED BIKE] \" .. getPlayerName(player) .. \" impounded vehicle #\" .. dbid .. \", owned by \" .. tostring(exports[\'cache\']:getCharacterName(owner)) .. \", in \" .. table.concat({exports.global:getElementZoneName(veh)}, \", \") .. \" (pos = \" .. table.concat({getElementPosition(veh)}, \", \") .. \", rot = \".. table.concat({getVehicleRotation(veh)}, \", \") .. \", health = \" .. getElementHealth(veh) .. \")\", 14)
                     end
                  end
               else
                  local factionRanks = getElementData(getPlayerTeam(player), \"ranks\")
                  local factionRank = factionRanks[ 5 ] or \"awesome dudes\"
                  outputChatBox(\"A parancs kizárólag ettöl a rangtól használható: \" .. factionRank, player, 255, 194, 14)
               end
            end
         else
            outputChatBox(\"Ez a frakció jármű nem lefoglalható.\", player, 255, 194, 14)
         end
      end
   else
      outputChatBox(\"Ezt a parancsot csak lefoglalt bicikliknél és BMXeknél használhatod.\", player, 255, 194, 14)
   end
else
   outputChatBox(\"Nem vagy járműben.\", player, 255, 0, 0)
end
end
end
addCommandHandler(\"impoundbike\", setbikeimpound)
#33
Archívum / Letöltési Probléma
2014. december 07. - 20:06:32
Hello! Az a Problémám lenne, hogy amikor felmek szerverekre és ott alul megjelenik a Letöltési csík , de nekem nem tölt semmit se... Mi lehet a Probléma?
#34
Archívum / Telefon ( 104 , 105, 107 )
2014. december 06. - 18:49:17
Hello! Azt szeretném kérdezni ,hogy hogyan csinhatnám meg azt, hogy 911 helyet 112 legyen. Mert átírtam a Dolgokat de azt rja h ne létezik a 112-es szám
Itt a Szerkesztett:
 
function isNumberAHotline(theNumber)
local challengeNumber = tonumber(theNumber)
return challengeNumber == 112 or challengeNumber == 107 or challengeNumber == 104 or challengeNumber == 105  or challengeNumber == 511 or challengeNumber == 921 or challengeNumber == 1501 or challengeNumber == 1502 or challengeNumber == 8294 or challengeNumber == 7331 or challengeNumber == 7332 or challengeNumber == 864
end
function routeHotlineCall(callingElement, callingPhoneNumber, outboundPhoneNumber, startingCall, message)
local callprogress = getElementData(callingElement, \"callprogress\")
if callingPhoneNumber == 112 then
-- 911: Emergency Services and Police.
-- Emergency calls that they need to respond to.
if startingCall then
   outputChatBox(\"112 Operátor [TELEFONBA]: Itt a Segély hívó! Kérjük mondja meg a helyzetét.\", callingElement)
   exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 1, false)
else
   if (callprogress==1) then -- Requesting the location
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"call.location\", message, false)
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 2, false)
      outputChatBox(\"112 Operátor [TELEFONBA]: Kérem mondja el, hogy mi történt\", callingElement)
   elseif (callprogress==2) then -- Requesting the situation
      outputChatBox(\"112 Operátor [TELEFONBA]: Köszönjük a hívását. Az egységeink már úton vannak.\", callingElement)
      local location = getElementData(callingElement, \"call.location\")
 
      local playerStack = { }
      for key, value in ipairs( getPlayersInTeam( getTeamFromName( \"Orsuágos Rendőr Fő Kapitányság\" ) ) ) do
         table.insert(playerStack, value)
      end
      for key, value in ipairs( getPlayersInTeam( getTeamFromName( \"Nemzeti Adó-és Vámhivatal\" ) ) ) do
         table.insert(playerStack, value)
      end
      for key, value in ipairs( getPlayersInTeam( getTeamFromName( \"Országos Mentő Szolgálat\" ) ) ) do
         table.insert(playerStack, value)
      end
      for key, value in ipairs( getPlayersInTeam( getTeamFromName( \"Hivatalos Onkormányzati Tűzoltóság\" ) ) ) do
         table.insert(playerStack, value)
      end
      local affectedElements = { }
      for key, value in ipairs( playerStack ) do
         for _, itemRow in ipairs(exports[\'item-system\']:getItems(value)) do
            local setIn = false
            if (not setIn) and (itemRow[1] == 6 and itemRow[2] > 0) then
               table.insert(affectedElements, value)
               setIn = true
               break
            end
         end
      end
      for key, value in ipairs( affectedElements ) do
         outputChatBox(\"[RADIO] Itt a Diszpécser központ! Hívás érkezett  #\" .. outboundPhoneNumber .. \" számról!\", value, 0, 183, 239)
         outputChatBox(\"[RADIO] Kérem, hogy a megfelelő egység induljon a hívásra!\", value, 0, 183, 239)
         outputChatBox(\"[RADIO] Szituáció: \'\" .. message .. \"\' \", value, 0, 183, 239)
         outputChatBox(\"[RADIO] Helyzet: \'\" .. tostring(location) .. \"\' \", value, 0, 183, 239)
      end
      executeCommandHandler( \"hangup\", callingElement )
   end
end
elseif callingPhoneNumber == 107 then
if startingCall then
   outputChatBox(\"107 Operátor [TELEFONBA]: Itt a Rendőrség. Kérjük adja meg a Pozicióját.\", callingElement)
   exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 1, false)
else
   if (callprogress==1) then -- Requesting the location
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"call.location\", message, false)
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 2, false)
      outputChatBox(\"107 Operátor [TELEFONBA]: Kérjük mondja el, hogy mi történt\", callingElement)
   elseif (callprogress==2) then -- Requesting the situation
      outputChatBox(\"107 Operátor [TELEFONBA]: Köszönjük a hívását. Az egységeink már úton vannak\", callingElement)
      local location = getElementData(callingElement, \"call.location\")
      local affectedElements = { }
      for key, value in ipairs( getPlayersInTeam( getTeamFromName( \"Országos Rendőr Fő Kapitányság\" ) ) ) do
         for _, itemRow in ipairs(exports[\'item-system\']:getItems(value)) do
            local setIn = false
            if (not setIn) and (itemRow[1] == 6 and itemRow[2] > 0) then
               table.insert(affectedElements, value)
               setIn = true
               break
            end
         end
      end
      for key, value in ipairs( affectedElements ) do
         outputChatBox(\"[RADIO] Itt a Diszpécser központ! Hívás érkezett #\" .. outboundPhoneNumber .. \" számról!\", value, 245, 40, 135)
         outputChatBox(\"[RADIO] Indok: \'\" .. message .. \"\' \", value, 245, 40, 135)
         outputChatBox(\"[RADIO] Helyzet: \'\" .. tostring(location) .. \"\' \", value, 245, 40, 135)
      end
      executeCommandHandler( \"hangup\", callingElement )
   end
end
elseif callingPhoneNumber == 104 then
if startingCall then
   outputChatBox(\"104 Operátor [TELEFONBA]: Itt az OMSZ! Kérjük mondja el a helyzetét.\", callingElement)
   exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 1, false)
else
   if (callprogress==1) then -- Requesting the location
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"call.location\", message, false)
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 2, false)
      outputChatBox(\"104 Operátor [TELEFONBA]: Kérjük mondja el, hogy mi történt\", callingElement)
   elseif (callprogress==2) then -- Requesting the situation
      outputChatBox(\"104 Operátor [TELEFONBA]: Köszönjü a hívását! Az Egységeink már úton vannak!\", callingElement)         
      local location = getElementData(callingElement, \"call.location\")
      local affectedElements = { }
      for key, value in ipairs( getPlayersInTeam( getTeamFromName(\"Los Santos Medical Services\") ) ) do
         for _, itemRow in ipairs(exports[\'item-system\']:getItems(value)) do
            local setIn = false
            if (not setIn) and (itemRow[1] == 6 and itemRow[2] > 0) then
               table.insert(affectedElements, value)
               setIn = true
               break
            end
         end
      end            
      for key, value in ipairs( affectedElements ) do
         outputChatBox(\"[RADIO] Bejelentés érkezett a #\" .. outboundPhoneNumber .. \" számról!\", value, 245, 40, 135)
         outputChatBox(\"[RADIO] Indok: \'\" .. message .. \"\', Over.\", value, 245, 40, 135)
         outputChatBox(\"[RADIO] Helyzet: \'\" .. tostring(location) .. \"\', Out.\", value, 245, 40, 135)
      end
      executeCommandHandler( \"hangup\", callingElement )
   end      
end
elseif callingPhoneNumber == 511 then
if startingCall then
   outputChatBox(\"511 Operátor [TELEFONBA]: Üdvözlöm! Ön a szerelőket hívta! Adja meg a Helyzetét.\", callingElement)
   exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 1, false)
else
   if (callprogress==1) then -- Requesting the location
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"call.location\", message, false)
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 2, false)
      outputChatBox(\"511 Operátor [TELEFONBA]: Kérjük mondja el ,hogy mi történt.\", callingElement)
   elseif (callprogress==2) then -- Requesting the situation
      outputChatBox(\"511 Operátor [TELEFONBA]: Köszönjük a bejelentést! A Szerelő(k) már úton vannak.\", callingElement)         
      local location = getElementData(callingElement, \"call.location\")
      local affectedElements = { }
      for key, value in ipairs( getPlayersInTeam( getTeamFromName(\"Jármű Szervíz\") ) ) do
         for _, itemRow in ipairs(exports[\'item-system\']:getItems(value)) do
            local setIn = false
            if (not setIn) and (itemRow[1] == 6 and itemRow[2] > 0) then
               table.insert(affectedElements, value)
               setIn = true
               break
            end
         end
      end      
      for key, value in ipairs( affectedElements ) do
         outputChatBox(\"[RADIO] Hívás érkezett! Egy autó mentőt kérnék a helyszínre!\", value, 245, 40, 135)
         outputChatBox(\"[RADIO] Szituáció: \'\" .. message .. \"\' \", value, 245, 40, 135)
         outputChatBox(\"[RADIO] Helyzet: \'\" .. tostring(location) .. \"\', Tell. Szám:: \"..outboundPhoneNumber..\" \", value, 245, 40, 135)
      end
      executeCommandHandler( \"hangup\", callingElement )
   end      
end
elseif callingPhoneNumber == 105 then
if startingCall then
   outputChatBox(\"105 Operátor [TELEFONBA]: Itt a Tűzoltóság! Kérjük mondja el, hogy hol van.\", callingElement)
   exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 1, false)
else
   if (callprogress==1) then -- Requesting the location
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"call.location\", message, false)
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 2, false)
      outputChatBox(\"105 Operátor [TELEFONBA]: Kérjük mondja el, hogy mi történt\", callingElement)
   elseif (callprogress==2) then -- Requesting the situation
      outputChatBox(\"105 Operátor [TELEFONBA]: Köszönjük! Az Egységek hamarosan kiérnek önhöz!.\", callingElement)         
      local location = getElementData(callingElement, \"call.location\")
      local affectedElements = { }
      for key, value in ipairs( getPlayersInTeam( getTeamFromName(\"Hivatalos Onkormányzati Tűzoltóság\") ) ) do
         for _, itemRow in ipairs(exports[\'item-system\']:getItems(value)) do
            local setIn = false
            if (not setIn) and (itemRow[1] == 6 and itemRow[2] > 0) then
               table.insert(affectedElements, value)
               setIn = true
               break
            end
         end
      end   
      for key, value in ipairs( affectedElements ) do
         outputChatBox(\"[RADIO] Bejelentés érkezett a #\" .. outboundPhoneNumber .. \" számról!.\", value, 245, 40, 135)
         outputChatBox(\"[RADIO] Indok: \'\" .. message .. \"\', \", value, 245, 40, 135)
         outputChatBox(\"[RADIO] Helyzet: \'\" .. tostring(location) .. \"\', \", value, 245, 40, 135)
      end
      executeCommandHandler( \"hangup\", callingElement )
   end      
end
elseif callingPhoneNumber == 921 then
if startingCall then
   outputChatBox(\"Operator [Cellphone]: Hex Tow \'n Go. Please state your location.\", callingElement)
   exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 1, false)
else
   if (callprogress==1) then -- Requesting the location
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"call.location\", message)
      exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 2)
      outputChatBox(\"Operator [Cellphone]: Can you describe the situation please?\", callingElement)
   elseif (callprogress==2) then -- Requesting the situation
      outputChatBox(\"Operator [Cellphone]: Thanks for your call, we\'ve dispatched a unit to your location.\", callingElement)
      local location = getElementData(callingElement, \"call.location\")
      local affectedElements = { }
      for key, value in ipairs( getPlayersInTeam( getTeamFromName(\"Hex Tow \'n Go\") ) ) do
         for _, itemRow in ipairs(exports[\'item-system\']:getItems(value)) do
            local setIn = false
            if (not setIn) and (itemRow[1] == 6 and itemRow[2] > 0) then
               table.insert(affectedElements, value)
               setIn = true
               break
            end
         end
      end   
      for key, value in ipairs( affectedElements ) do
         outputChatBox(\"[RADIO] This is dispatch, We\'ve got an incident report from #\" .. outboundPhoneNumber .. \", Over.\", value, 0, 183, 239)
         outputChatBox(\"[RADIO] Situation: \'\" .. message .. \"\', Over.\", value, 0, 183, 239)
         outputChatBox(\"[RADIO] Location: \'\" .. tostring(location) .. \"\', Out.\", value, 0, 183, 239)
      end
      executeCommandHandler( \"hangup\", callingElement )
   end      
end
elseif callingPhoneNumber == 1501 then
if (publicphone) then
   outputChatBox(\"Computer voice [Cellphone]: This service is not available on this phone.\", callingElement)
else
   outputChatBox(\"Computer voice [Cellphone]: You are now calling with a secret number.\", callingElement)
   mysql:query_free( \"UPDATE `phone_settings` SET `secretnumber`=\'1\' WHERE `phonenumber`=\'\".. mysql:escape_string(tostring(outboundPhoneNumber)) ..\"\'\")
   --exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement,\"cellphone.secret\",1, false)
end
executeCommandHandler( \"hangup\", callingElement )
elseif callingPhoneNumber == 1502 then
if (publicphone) then
   outputChatBox(\"Computer voice [Cellphone]: This service is not available on this phone.\", callingElement)
else
   outputChatBox(\"Computer voice [Cellphone]: You are now calling with a normal number.\", callingElement)
   mysql:query_free( \"UPDATE `phone_settings` SET `secretnumber`=\'0\' WHERE `phonenumber`=\'\".. mysql:escape_string(tostring(outboundPhoneNumber)) ..\"\'\")
   --exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement,\"cellphone.secret\",0, false)
end
executeCommandHandler( \"hangup\", callingElement )
elseif callingPhoneNumber == 8294 then
if startingCall then
   outputChatBox(\"Taxi Operátor [TELEFONBA]: Itt az optic Taxi! Kérjük mondja el, hogy hol van\", callingElement)
   exports[\'anticheat-system\']:changeProtectedElementDataEx(callingElement, \"callprogress\", 1, false)
else
   local founddriver = false
   for key, value in ipairs(exports.pool:getPoolElementsByType(\"player\")) do
      local job = getElementData(value, \"job\")                  
      if (job == 2) then
         local car = getPedOccupiedVehicle(value)
         if car and (getElementModel(car)==438 or getElementModel(car)==420) then
            outputChatBox(\"[Új HÍVÁS] \" .. getPlayerName(callingElement):gsub(\"_\",\" \") ..\" | Tell. Szám:\" .. outboundPhoneNumber .. \" | Helyzet: \" .. message ..\".\" , value, 0, 183, 239)
            founddriver = true
         end
      end
   end
   if founddriver == true then
      outputChatBox(\"Taxi Operátor [TELEFONBA]: Köszönjük a hívását. Kérjük várjon míg a Taxi kiér önhöz.\", callingElement)
   else
      outputChatBox(\"Taxi Operátor [TELEFONBA]: Sajnos nincs szolgálatba 1 Taxis se..\", callingElement)
   end
   executeCommandHandler( \"hangup\", callingElement )
end
 
#35
Archívum / Script Error
2014. december 06. - 16:57:23
Hello! Azt szeretném kérdezni tőletek, hogy mi lehet a baj? Nem nyitja meg az ablakot
Log ezt írja:
[2014-12-06 16:52:40] WARNING: Script \'donators/g_donation_perks.lua\' is not encoded in UTF-8.  Loading as ANSI...
[2014-12-06 16:52:40] SCRIPT ERROR: donators/g_donation_perks.lua:1: unexpected symbol near \'?\'
[2014-12-06 16:52:40] ERROR: Loading script failed: donators/g_donation_perks.lua:1: unexpected symbol near \'?\'
[2014-12-06 16:52:40] WARNING: Script \'donators/g_donation_data.lua\' is not encoded in UTF-8.  Loading as ANSI...
[2014-12-06 16:52:40] SCRIPT ERROR: donators/g_donation_data.lua:1: unexpected symbol near \'?\'
[2014-12-06 16:52:40] ERROR: Loading script failed: donators/g_donation_data.lua:1: unexpected symbol near \'?\'
[2014-12-06 16:52:40] donators restarted successfully
[2014-12-06 16:52:42] ERROR: donators/s_donation_gui.lua:37: bad argument #1 to \'ipairs\' (table expected, got nil)
#36
Archívum / Hang lejátszás
2014. december 01. - 19:42:59
Hello! Hogyan tudnám megoldani , hogy ezt mindenki hallja a szerveren?
 

 
function PDGarageAlarm ()
 
local x, y, z = getElementPosition(source)
PDAlarm = playSound3D(\"alarm.wav\",xyz, true)
setTimer(stopPDAlarm, 60000, 1, client)
setSoundVolume(PDAlarm, 3)
setSoundMaxDistance(PDAlarm, 100)
 
end
addCommandHandler(\"alarm\", PDGarageAlarm)
 
function stopPDAlarm ()
 
stopSound (PDAlarm)
end
 
#37
Archívum / Vehicle system
2014. november 28. - 19:16:18
Hello! Segítségeteket kérném!
Amikor /makecivveh-vel leszeretném rakni a Kocsit akkor nem teszi le. Mindent jól kitöltöttem. A Log ezt írja:
[2014-11-28 20:03:08] ERROR: mysql/connection.lua:206: bad argument #2 to \'mysql_escape_string\' (string expected, got nil)
[2014-11-28 20:03:08] ERROR: mysql/connection.lua:206: bad argument #2 to \'mysql_escape_string\' (string expected, got nil)
[2014-11-28 20:03:08] ERROR: vehicle-system/s_vehicle_system.lua:178: call: failed to call \'mysql:escape_string\'
[2014-11-28 20:03:08] ERROR: vehicle-system/s_vehicle_system.lua:178: attempt to concatenate a boolean value
#38
Archívum / Hex Kód
2014. november 27. - 19:06:21
Hello! Azt szeretném kérdezni, hogy hogyan tudnám használni a Hex Kódot?
A)  outputChatBox(\"#FF0000Teszt\")
B)  outputChatBox(\"#FF0000Teszt\", 255, 255, 255)
C)  outputChatBox(\"#FF0000Teszt\", 0, 0, 0)
#39
Archívum / Localhost-os Szerver készítése
2014. november 22. - 16:15:15
Hello! Azt szeretném kérdezni, hogy hogyan tudnék Localhost-os RP szervert csinálni phpMyAdminnal? ( Tesztre )
A XAMPP-ot és a WampServer-t Próbáltam. A XAMPP Erre a hibára hvatkozott:
16:13:57  [Apache]    Error: Apache shutdown unexpectedly.
16:13:57  [Apache]    This may be due to a blocked port, missing dependencies,
16:13:57  [Apache]    improper privileges, a crash, or a shutdown by another method.
16:13:57  [Apache]    Press the Logs button to view error logs and check
16:13:57  [Apache]    the Windows Event Viewer for more clues
16:13:57  [Apache]    If you need more help, copy and post this
16:13:57  [Apache]    entire log window on the forums
( és ugyan úgy a MySQL is ezt írja )
És a WampServer pedig egy DLL Fájl hiányra
 És még az a kérdésem ,hogy ha ez mind megvan és stb..  a mysql Csatlakozást hogy oldjam meg? Azaz:
Mit írjak a jelszóhoz és a felhasználónév-hez?
#40
Archívum / Kocsi mód Obejctre
2014. november 04. - 19:00:54
Hello! Az a kérdésem lenn ,hogy egy adott kocsimódot ( Pl: Hajó mód ) lehetne-e egy Objectre rámodolni?