Jump to content

Snow-Man

Members
  • Posts

    350
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Snow-Man

  1. Snow-Man

    ban system

    hey can you help me to fix my ban system? bansTable = {} function addBanPlayer(admin, player, reason, time) if not admin or not player or type(reason) ~= "string" or type(time) ~= "number" then return false end timer = math.floor(time) if (timer < 0 and timer ~= -1) then return false end for _, v in pairs(bansTable) do if (v[1] == admin) then return false end local timer = getRealTime().timestamp+timer exports.USCsql:exec("INSERT INTO `bans` (`admin`, `player`, `reason`, `duration`, `IP`) VALUES (?, ?, ?, ?)", admin, player, reason, timer, getPlayerIP(player) ) table.insert(bansTable, {admin, player, reason, timer, ip}) end end
  2. Snow-Man

    Bans SQL

    i have made bans system with sql but i have worried how to unban player while the time is end
  3. i'm thinking to attach members to group and get info using player how can i do that? like tree elements in same time
  4. I'm making Group system not team
  5. function createGroup(groupName) local account = getPlayerAccount(client) if (isGuestAccount(account)) then return end if (groupName) then outputChatBox(groupName.." is already an existing group", client, 255, 0, 0) return end setElementData(client, "Group", groupName) setElementData(client, "Rank", "Founder") setElementData(groupName, "Members", 1) outputChatBox("You have succesfully made a group called "..groupName, client, 0, 255, 0) end addEvent("createGroup", true) addEventHandler("createGroup", root, createGroup) that's a part of creating Group
  6. i'm making group system and i have got a problem to count group member using setElementData getElementData function getGroupMembers(group) if (not group) then return false end local memberCount = getElementData(group, "Members") or 0 return tonumber(memberCount) end
  7. today, i'm selling my server ressources each ressource for 7$ USC Jobs system http://imgur.com/Tmmmfhz http://imgur.com/bUEy0kP http://imgur.com/94z3Xxu http://imgur.com/yWLuw50 http://imgur.com/bl7mvSN Vehicles spawner http://imgur.com/G09tU9P http://imgur.com/qQdhCKS
  8. ye5i win enajem na3ml topic w n7ot fih ressources enta3i lel bi3?
  9. CIT Safezone : https://community.multitheftauto.com/index.php?p= ... ls&id=9779 DONE
  10. what about show us more screenshots for notifications and more.....
  11. thanks please lock this thread
  12. sizeX, sizeY = guiGetScreenSize() rsx, rsy = sizeX/1280, sizeY/1024 -- Max Resolution dxDrawRectangle(rsx*484, rsy*493, rsx*125, rsy*32, tocolor(0, 0, 0, 150), true) dxDrawText(" Login", rsx*484, rsy*493, rsy*561, rsy*446, tocolor(255, 255, 255, 255), 0.80, myFont, "left", "top", false, false, true, false, false) when i use that, it work fine but when i change resolution i see positions of dx has been changed
  13. Bad Quality, i didn't like it
  14. local weapons = {} function spawnPlayerIntoHospital() local x,y,z = getElementPosition( source ) -- you only need to get player position once before the loop local model = getElementModel(source) for i=1, 12 do local wep = getPedWeapon(source,i ) local totalwep = getPedTotalAmmo(source, i) table.insert(weapons, wep, totalwep) end for i, v in ipairs( table ) do local dist = getDistanceBetweenPoints3D( x,y,z, v[1],v[2],v[3] ); if dist < maxDist and dist < closestHospitalDist then closestHospitalDist = dist; closestHospital = v; -- save the closest hospital table end end if closestHospital then -- check if the closestHospital is not = nil SpawnPed( source, closestHospital[1], closestHospital[2], closestHospital[3], closestHospital[4], model, 0, 0 ); outputChatBox( "You Have Spawned in "..closestHospital[11], source, 178, 123, 0 ); giveWeapon(source, weapons[1], weapons[2]) end end Error: USCspawn_system\s_spawn.lua:523: attempt to call field 'insert' ( a nil value )
  15. there's no problem with this script just put it in meta to server side
  16. use setElementInterior and setElementDimension
  17. is it another one for server side ? Nope but why don't you script it in client side? i want to make it in server side because i'll use server event, and if i use it client side to server side with triggerServerEvent i'll get bugs
  18. is it another one for server side ?
  19. hello Guys, how can i make Camera Moving ?
  20. Snow-Man

    Help MTA Problem

    i have downloaded the Awesomium Files then when i clicked on MTA to play i have got problem http://pastebin.mtasa.com/643840205
  21. thanks, i have fixed it /lock please
  22. i have fixed problem but still dx text and rectangle is not in same line, please take a look in screenshot
×
×
  • Create New...