Jump to content

Whizz

Members
  • Posts

    17
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Whizz's Achievements

Square

Square (6/54)

0

Reputation

  1. Hello, I am communicating with you through translit. Is there anything I can do to identify the status of Download Player? When it starts and when it finds ended.
  2. Hi Everyone. I want to change the status of the player by changing her team. This is my code: exports.scoreboard:addScoreboardColumn('status') function setTeam() if getPlayerTeam(source) == getTeamFromName("theTeam") then setElementData( source,"status", "theTeam") end end addEventHandler("onPlayerLogin", root, setTeam) What is the problem? Thank you for your help
  3. hello to friends This is my script but it doesn't work properly. He does not destroy the car, what is the problem? function PutTruck (thePlayer) if ( source == TahvilVanGang ) then if getElementType(thePlayer) == "player" then if isPedInVehicle ( thePlayer ) then if getElementData(thePlayer,"VanMafiaP") == true then if getPedOccupiedVehicle(thePlayer) == Van then if getPedOccupiedVehicleSeat ( thePlayer ) == 0 then local RandomGold = math.random(50,150) givePlayerMoney(thePlayer,RandomGold) removeElementData(thePlayer,"VanMafiaP") removePedFromVehicle( thePlayer ) if isElement( TahvilVanGang ) then --destroyElement(Van) destroyElement(VanBlip) destroyElement(TahvilVanGang) destroyElement(TahvilVanGangBlip) IsCreate2 = false for index,allplayers in ipairs(getElementsByType("player")) do if getElementData(allplayers,"loggedIn") == true then end end SendPlayers("") end end end end end end end end addEventHandler("onMarkerHit",root,PutTruck)
  4. Randomly give me an idea for spawn players with a timer. (onPlayerWasted)
  5. But this player sometimes does not spawn.
  6. But that didn't work.
  7. Hello . What is this problem? The player does not receive weapons after the review. addEventHandler("onPlayerWasted", root, function() local spawn23 = math.random(1, 3) local teamDM = getPlayerTeam(source) local player23 = source if teamDM == DeathMatch then if spawn23 == 1 then giveWeapon(Player23, 31, 500) setTimer(spawnPlayer, 3000, 1, player23, 206.875, 168.638671875, 1003.0234375, 150, 104, 3, 0, team23) elseif spawn23 == 2 then giveWeapon(Player23, 31, 500) setTimer(spawnPlayer, 3000, 1, player23, 252.208984375, 185.451171875, 1008.171875, math.random(0, 360), 107, 3, 0, team23) elseif spawn23 == 3 then giveWeapon(Player23, 31, 500) setTimer(spawnPlayer, 3000, 1, player23, 288.3740234375, 168.3642578125, 1007.171875, math.random(0, 360), 101, 3, 0, team23) end end end )
  8. I really appreciate it and it worked right! youre doing great . But there is one more question how do I get a timer for this project.
  9. Players will return to Spawn 1,2,3 after dying matchmarker = createMarker(1518.0277099609 , -1138.9915771484 , 140.93536376953,"cylinder", 1, 255, 0, 0) function start (thePlayer) local x, y, z = getElementPosition(thePlayer) local spawn = math.random(1, 3) getPlayerTeam(thePlayer) setPlayerTeam(thePlayer, *) if getPlayerMoney (thePlayer) >=0 then if (getDistanceBetweenPoints3D(x, y, z, 1518.0277099609 , -1138.9915771484 , 140.93536376953)) < 5 then if spawn == 1 then end if spawn == 2 then end if spawn == 3 then end else outputChatBox("You're not in the marker.", thePlayer, 255, 0, 0) end else outputChatBox("Your Not Money", thePlayer, 0, 255, 255) end end addCommandHandler("play", start) --------------------------------------------------------------------------------------------- getDistanceBetweenPoints3D I used it to get the player to be in the marker and use the command.
  10. Hello friends. I don't remember OnPlayerWasted, can anyone help? function start (thePlayer) local x, y, z = getElementPosition(thePlayer) local spawn = math.random(1, 3) if getPlayerMoney (thePlayer) >=0 then if (getDistanceBetweenPoints3D(x, y, z,)) < 5 then if spawn == 1 then end if spawn == 2 then end if spawn == 3 then end else outputChatBox("", thePlayer, 255, 0, 0) end else outputChatBox("", thePlayer, 0, 255, 255) end end addCommandHandler("play", start)
  11. Hello friends. Could this be the problem؟ addEventHandler("onClientMarkerHit",resourceRoot, function(thePlayer) dm_window = guiCreateWindow(0.1556,0.1597,0.6375,0.6944,"Team-Panel",true) grove_button = guiCreateButton(10,108,162,165,"Team-1",false,dm_window) police_button = guiCreateButton(285,108,162,165,"Team-2",false,dm_window) teams_label = guiCreateLabel(159,44,145,47,"",false,dm_window) showCursor(true) end )
  12. I did it. But it didn't work out right.
  13. This script that I created is shown to all players GUi. But I want it to be shown for the player who entered the marker. pls Helpme. Marker = createMarker( 1508.814453125 , -1144.19921875 , 140.93536376953, "cylinder", 1, 255, 0, 0) function openwindow(thePlayer) triggerClientEvent("opengui1window", thePlayer, thePlayer) end addEventHandler("onMarkerHit", Marker, openwindow)
  14. I tried this code, but the player does not respawn after the specified time
  15. Hello, I want the player to respawn after a certain time. Thank you for helping me. function respawn () local team = getPlayerTeam(source) if team == grove then local x = 268.868 local y = 2037.208 local z = 17.7 local groveskins = math.random(1, 4) spawnPlayer(source, x, y, z) fadeCamera(source, true) setCameraTarget(source, source) setPlayerTeam(source, grove) giveWeapon(source, 31, 500) outputChatBox("", source, 255, 255, 255) if groveskins == 1 then setElementModel(source, 101) end if groveskins == 2 then setElementModel(source, 102) end if groveskins == 3 then setElementModel(source, 103) end if groveskins == 4 then setElementModel(source, 107) end end if team == police then local x = 270.871 local y = 1937.740 local z = 17.7 local policeskins = math.random(1, 4) spawnPlayer(source, x, y, z) fadeCamera(source, true) setCameraTarget(source, source) setPlayerTeam(source, police) outputChatBox("", source, 255, 255, 255) giveWeapon(source, 31, 500) if policeskins == 1 then setElementModel(source, 100) end if policeskins == 2 then setElementModel(source, 104) end if policeskins == 3 then setElementModel(source, 105) end if policeskins == 4 then setElementModel(source, 106) end end end addEventHandler("onPlayerWasted", getRootElement(), respawn)
×
×
  • Create New...