Jump to content

JoZeFSvK

Members
  • Posts

    201
  • Joined

  • Last visited

Everything posted by JoZeFSvK

  1. JoZeFSvK

    Country

    Hey i wanna create country in scoreboard |i dont see my country| why ? how i create that i see my country ? ( i have script but i dont see my flag) i think it requires an url to get the country from so you have to upload a php script on a webserver and just send a request to it with an ip get the request back and set the players element data but i dont know how can you show me example or explain it to me? thank you
  2. I click to link and i see this http://pastebin.com/D4jLFtz1 i dont know what it is. and i add rights on windows firewall but dont work
  3. My friend send me his serverache.xml and i replace, but no change. i see some sparsely servers.
  4. thank you i delete but now i dont see no server
  5. MTA San Andreas 1.4 what the hell ? 1.4 ? its new update? i have 1.3
  6. i dont know why but i dont see servers when i install enthernet driver relatek pcie lan (latest version) then i dont see all servers i see mr.green and when i write some servers i dont see in list, but when i write ip and connect work. When i uninstal driver i connect to internet and mta work but 2 times i have problem with connect i reinstal mta and i think in mta it not. here is mtadiag http://pastebin.com/Xf8kteMs
  7. Who know where will problem ? handle = mysql_connect(MYSQL_SERVER,MYSQL_USERNAME,MYSQL_PASSWORD,MYSQL_DB) function unmuteSpammer (serial, account) --if isPlayerMuted(player) then --setPlayerMuted(player, false) --outputChatBox("#41FE5B[!]#84F994 " .. string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") .. " #41FE5Bhas been automatically unmuted!",getRootElement(), 255,0,0,true) --end mysql_query(handle, "UPDATE spamer SET muted = 'false' WHERE spamer.serial = '" .. serial .. "'") end addEvent("onPlayerSpam", true) addEventHandler("onPlayerSpam", getRootElement(), function (action, time, message, reason) if (isPlayerMuted(source) == false) then outputChatBox(message .. " (" .. reason .. ")", getRootElement(), 255,0,0,true) if action == "mute" then local time2 = time * 1000 setPlayerMuted(source, true) --outputChatBox(time2) serialu = serialu + 1 serialy[serialu] = getPlayerSerial(source) local nick = string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "") setTimer(unmuteSpammer, time2, 1, serialy[serialu], getPlayerAccount(source)) setElementData(source, "muted", true) mysql_query(handle, "INSERT INTO `DM_svr`.`spamer` (`serial`, `muted`) VALUES ('" .. getPlayerSerial(source) .. "', 'true')") elseif action == "ban" then --outputChatBox("Mas ban..") end end end) addCommandHandler("testing", function(player) outputChatBox(tostring(isPlayerMuted(player))) end) addEventHandler("onPlayerJoin", getRootElement(), function () local result = mysql_query(handle,"SELECT * FROM spamer WHERE serial='"..getPlayerSerial(source).."'") --if mysql_result(result,1,1)==login then for i,v in mysql_rows(result) do if (v[1] == getPlayerSerial(source)) and not (v[2] == "false") then setPlayerMuted(source, true) outputChatBox("[!] #FF6F6F" .. string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "") .. " #FE4141has been automatically muted!", getRootElement(), 255,0,0,true) end end --end mysql_free_result(result) end) function unmutePlayers () players = getElementsByType("player") for _, player in ipairs(players) do --outputDebugString("unmutePlayers spusteno") local serial = getPlayerSerial(player) if isPlayerMuted(player) then result = mysql_query(handle, "SELECT * FROM spamer WHERE spamer.serial = '" .. serial .. "'") for i,v in mysql_rows(result) do if (v[1] == getPlayerSerial(player)) and (v[2] == "false") then setPlayerMuted(player, false) mysql_query(handle, "DELETE FROM spamer WHERE spamer.serial = '" .. serial .. "'") outputChatBox("#41FE5B[!]#84F994 " .. string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") .. " #41FE5Bhas been automatically unmuted!",getRootElement(), 255,0,0,true) end end end end end setTimer(unmutePlayers, 30000, 0) voice = true function adminChangeVoice (player, cmd) if hasObjectPermissionTo ( player, "command.toggleVoice", false ) then if voice then voice = false outputChatBox("#FE4141[!] Administrator #FF6F6F" .. string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") .. " #FE4141has disabled voice chat!", getRootElement(), 255, 0,0,true) else voice = true outputChatBox("#41FE5B[!] Administrator #84F994" .. string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") .. " #41FE5B has enabled voice chat!", getRootElement(), 255, 0,0,true) end end end addCommandHandler("voice", adminChangeVoice) addEventHandler("onPlayerVoiceStart", getRootElement(), function () if not voice then cancelEvent() return end for i,player in ipairs(getElementsByType("player")) do if tonumber(getElementData(player, "adminlvl")) > 1 then outputChatBox("Player " .. string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "") .. " start voice!", player) end end end) function countThat (msg, type) if type == 0 then if string.find(msg, "!count") then setTimer(outputChatBox, 100, 1, "#8ED2FF* " .. getPlayerCount(), root, 255, 0, 0, true) end end end addEventHandler("onPlayerChat", getRootElement(), countThat)
  8. you can find this in race_client.lua i think it's under the name ranknum
  9. shit epic now i cant show panel i open but when i again press f1 nothing
  10. hmm thank you but when i died i press f1 and nothing it will them that i am alone on server ?
  11. Hey how i create when player death can open panel BUT! when is ALIVE CAN´T open panel. function funkcia() guiSetVisible(window1, not guiGetVisible(window1)) showCursor(guiGetVisible(window1)) end bindKey ("F1", "down", funkcia )
  12. Hey i wanna create command which start drawtext but i dont work how to combine it server and client. Can you show me example ?
  13. Anony# thank you but i this have fixed i need dxdrawtext in loagind map
  14. ok when i use onClientRender what do i get? when i start script i will see message hey world, i need see this message when is loading the map.
  15. you use autoteams? or you write team through admin panel ?
  16. ok i edit race client work, but can you help me with dx text which will write when the game loads the map, in race when i edit i always have problem with nametags in debugscript and race dont work so local sw, sh = guiGetScreenSize() function createText ( ) dxDrawText ("Hey world", 0, sh/2-200, sw, sh, tocolor (255,255,255,255), 2, "default-bold", "center", "top") end addEvent( "onTravelScreenStart", true ) addEventHandler( "onTravelScreenStart", getRootElement(), createText ) function manageTravelScreenStop () removeEventHandler ( "onClientRender", root, createText) end dont work i see city "edit travelling" but text no
  17. hmm but then i must edit race client part travel screen and there write
  18. i try this but dont work when i add line addEventHandler ( "onClientRender", root, load ) and start script work but when start map loading dont work.
  19. my problem is ... when start map travelling i will dont see black screen but camera matrix in city ^^ when travelling stop i normal see map this is for mode race (i dont need client "pre"render)
  20. see this work nacitavanie = 0 createPed(40, 173.35345, -1320.99438, 79.13128) function drawBackround() nacitavanie = nacitavanie + 1 if getPedOccupiedVehicle(localPlayer) then local x, y, z = getElementPosition(getPedOccupiedVehicle(localPlayer)) setElementPosition(getPedOccupiedVehicle(localPlayer), x, y, z) end if nacitavanie > 3350 then setCameraMatrix(-437.14282226563 + nacitavanie, -1320 + nacitavanie - 3350, 80, 2580, -1628.5712890625, -300, 0, 70) else setCameraMatrix(-437.14282226563 + nacitavanie, -1320, 80, 2580, -1628.5712890625, -300, 0, 70) end end addEventHandler("onClientRender", getRootElement(), drawBackround) but when i add addEvent( "onTravelScreenStart", true ) and i see travelling map ... i see black background why ?
  21. blee i dont think onClientPreRender and .. its bad i dont like it
×
×
  • Create New...