Jump to content

ALw7sH

Members
  • Posts

    1,165
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by ALw7sH

  1. ALw7sH

    Script search

    Im not saying that you have a bad server, I dont even know your server
  2. Change the events name in one of them ( The events that you are triggering them using "triggerServerEvent/triggerClientEvent/triggerEvent" )
  3. ALw7sH

    errors script

    This is leaked script Try to ask tapl if he would give you permission to use it, just to be clear im pretty sure he wont
  4. ALw7sH

    Script search

    It's shame when you have a very bad server with alot "players" When I search for servers to play on, I sort the by players but with fake players I wont be able to do that because ofcours idon't want to play with fake players
  5. ALw7sH

    Script search

    If you mean peds you can but if you mean fake players its not possible unless if you can run more than 1 mta in the same time
  6. Its "Time" not "Speed" It wont go with the same speed unless the space between every 2 points is the same because for example 100km in 10 seconds will go faster than 1000km in 10 seconds
  7. Do you have another server running with the same port ? (22003) Even if no try to change the port and start it again
  8. local table = {105,106,107,114,109,110,108,115,116,102,103,104,163,164,165,166,265,266,267,280,281,282,283,284,285,286,287,288,312,0,1,2,7,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,37,43,44,45,46,47,48,50,51,52,57,59,60,83,84,96,97,274,275,276} local teams = { ["Grove"] = {105, 106, 107}, ["Aztecas"] = {109,110,108,115,116}, ["Police"] = {283, 284, 285,163,164,165,166,265,266,267,280,281,282,283,284,285,286,287,288,312}, ["Ballas"] = {102, 103, 104}, ["NoTeam"] = {0,1,2,7,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,37,43,44,45,46,47,48,50,51,52,57,59,60,83,84,96,97}, ["Medic"] = {274, 275, 276} } ped = createPed(105,428.39999389648, -56.700000762939, 1013.799987793,270) local var = 0 setCameraMatrix(434.94989013672, -56.703098297119, 1014.8275146484, 433.95333862305, -56.695301055908, 1014.7448120117) bindKey("arrow_r", "down", function() var = var + 1 if var > #table then var = 1 end setElementModel(ped, table[var]) end ) bindKey("arrow_l", "down", function() var = var - 1 if var < 1 then var = #table end setElementModel(ped, table[var]) end ) bindKey("enter", "down", function() local SkinID = getElementModel(ped) table.foreach(teams, function(teamName,sTable) table.foreach(sTable, function(_,id) if id == skin then local Team = teamName end end) end) triggerServerEvent("Client:Spawn", getLocalPlayer(), SkinID,Team) unbindKey("arrow_r", "down", hideLoginWindow) unbindKey("arrow_l", "down", hideLoginWindow) unbindKey("enter", "down", hideLoginWindow) end ) Grove = createTeam ("Grove", 0, 255, 0) Ballas = createTeam ("Ballas", 255, 0, 255) Medic = createTeam ("Medic", 0, 255, 255) Police = createTeam ("Police", 0, 0, 255) Aztecas = createTeam ("Aztecas", 0, 204, 204) NoTeam = createTeam ("NoTeam", 255, 0, 0) local teamSpawn = { ["Grove"] = {x, y, z}, ["Aztecas"] = {x,y,z,}, ["Police"] = {x, y, z}, ["Ballas"] = {x, y, z}, ["NoTeam"] = {x, y, z}, ["Medic"] = {x, y, z}, } function SpawnNoTe (SkinID,team) setPlayerTeam(source,getTeamFromName(team)) setPlayerNametagColor ( source, 255, 0, 0 ) local x,y,z = unpack(teamSpawn[team]) spawnPlayer (source, x,y,z, 0, SkinID, 0, 0) fadeCamera(source, true) setCameraTarget(source, source) exports ["guimessages"] : outputServer (root,"أنت الأن في فريق "..team, 255, 0, 0) end addEvent("Client:Spawn", true) addEventHandler("Client:Spawn",root,SpawnNoTe)
  9. There's no weapon with this ID(47) https://wiki.multitheftauto.com/wiki/Weapons
  10. You are not forced to use it, you could just see how it works btw i haven't tested it local pollSystem = { settings = { pollState = false -- Don't change it pollTime = 1*(60*1000), -- in milliseconds - 1*(60*1000) = 1 minute } votes = { voted = {} Yes = 0, No = 0, } } function startPoll(player,cmd,...) if hasObjectPermissionTo(player,"command.kick") then if pollSystem.settings.pollState == false then local question = table.concat({...}," ") pollSystem.settings.pollState = true addCommandHandler("yes",vote) addCommandHandler("no",vote) outputChatBox(getPlayerName(player).."#FFFFFF Has started poll: "..question,root,255,255,255,true) outputChatBox("Use /yes OR /no to vote",root,255,255,255,true) setTimer(function() pollSystem.settings.pollState = false pollSystem.votes.voted = {} removeEventHandler("yes",vote) removeEventHandler("no",vote) local result = (pollSystem.votes.Yes == pollSystem.votes.No and "Tie") or (pollSystem.votes.Yes > pollSystem.votes.No and "Yes") or "No" outputChatBox("The poll has been ended with "..result,root,255,255,255,true) end,pollSystem.settings.pollTime,1) else outputChatBox("There's already poll running right now, try later",player,255,255,255,true) end end end function vote(player,cmd) if pollSystem.settings.pollState == true then if not pollSystem.votes.voted[getPlayerSerial(player)] then if cmd == "yes" then pollSystem.votes.Yes = pollSystem.votes.Yes+1 elseif cmd == "no" then pollSystem.votes.No = pollSystem.votes.No+1 end pollSystem.votes.voted[getPlayerSerial(player)] = true end end end
  11. التحقق بيكون على حسب وش الي ضفته بالرو انت او باختصار وش الكولمنز الموجودين
  12. كود سيرفر حقك مافيه غير تيم واحد اذا عدلته حط الي عدلته
  13. for writing on dx edit "onClientCharacter" is better than "onClientKey" also im using guiSetInputEnabled on my dxLib and it works perfectly
  14. ALw7sH

    * eror

    until لازم يكون لها نهاية بفنكشن repeat شرط او تحقق until ولازم يكون في مثال local output = 0 repeat outputChatBox("repeat "..output) output = output + 1 until output == 3
  15. Line 2 killerss = getPlayerName(getElementData(getLocalPlayer(),"lasthit")) also the first parameter isn't player name it's the player element itself you should think about rewrite your code and read the wiki page of any function or event you'll use
  16. انا افكر اشتري خادم من ناشر نت كيف خوادمهم؟ عن تجربتك معى الخادم الي شريته يعني سرعة الانترنت والجوده حقت الخوادم وبالتوفيق في بيع الخادم
  17. مابيشتغل السكربت اذا حطيت اسم للفنكشن وهو داخل الايفنت ماذكر الخطأ بالضبط بس بيجي خطأ في الدي بق
  18. {time, x, y, z, rotX, rotY, rotZ} time = the time that the ship should move from position to the next position when you put 2 points that are so far with 60000 milliseconds the ship gonna move with a diffrent speed if the 2 points was close with 60000 milliseconds
  19. you have to put an element on setElementData not player name
  20. if the dff file is in the same script folder you don't have to write ":" addEventHandler("onClientResourceStart",root, function () weapontxd = engineLoadTXD ( "O.txd" ) engineImportTXD (weapontxd,357) weapondff = engineLoadDFF ( "O.dff",357) engineReplaceModel (weapondff,357) end) also make sure it's client side
×
×
  • Create New...