Jump to content

Evil-Cod3r

Members
  • Posts

    370
  • Joined

  • Last visited

Everything posted by Evil-Cod3r

  1. Try This function kill ( killer, killerweapon, bodypart ) local vehicle = getPedOccupiedVehicle ( killer ) if isPedInVehicle ( killer ) and getElementModel ( vehicle ) == 425 then outputChatBox ( getPlayerName( killer ).." Has Killed ".. getPlayerName( source ).." with His Hunter .") end end addEventHandler ( "onPlayerWasted", getRootElement(), kill )
  2. oh sorrey thanks for the lesson
  3. local frozeTime = 60 -- Seconds as frozen local timeLeft = {} local timeLeftText = {} addEvent("Froze", true) addEventHandler("Froze", root, function() if getPlayerMoney(source) >= 7500 then local players = getElementsByType("player") takePlayerMoney(source, 7500) outputChatBox("All players successfully frozen", source, 255, 255, 0, true) for theKey,thePlayer in ipairs(players) do if (thePlayer ~= source) then setElementFrozen(thePlayer, true) setElementData(thePlayer, "Timeleft", tonumber(frozeTime)) showTimeLeft(thePlayer) end end else outputChatBox("Not enough money.", source, 255, 0, 0, true) end end) function showTimeLeft(player) timeLeft[player] = textCreateDisplay() textDisplayAddObserver(timeLeft[player], player) timeLeftText[player] = textCreateTextItem("Time left: " .. getElementData(player, "Timeleft"), 0.45, 0.1, "high", 255, 255, 255, 255) textDisplayAddText(timeLeft[player], timeLeftText[player]) setTimer(updateTimeLeft, 1000, getElementData(player, "Timeleft"), player) end function updateTimeLeft(player) setElementData(player, "Timeleft", getElementData(player, "Timeleft") - 1) textItemSetText(timeLeftText[player], "Time left: " .. getElementData(player, "Timeleft")) if tonumber(getElementData(player, "Timeleft")) == 0 then textDestroyDisplay(timeLeft[player]) setElementFrozen(player, false) setGameSpeed(3) end end
  4. ok i have some problems with my gamemde i well fix and and get Back To You Thx For Help Kenix mybye i well replay tomorow
  5. try this local frozeTime = 60 -- Seconds as frozen local timeLeft = {} local timeLeftText = {} addEvent("Froze", true) addEventHandler("Froze", root, function() if getPlayerMoney(source) >= 7500 then local players = getElementsByType("player") takePlayerMoney(source, 7500) outputChatBox("All players successfully frozen", source, 255, 255, 0, true) for theKey,thePlayer in ipairs(players) do if (thePlayer ~= source) then setElementFrozen(thePlayer, true) setGameSpeed(0) setElementData(thePlayer, "Timeleft", tonumber(frozeTime)) showTimeLeft(thePlayer) end end else outputChatBox("Not enough money.", source, 255, 0, 0, true) end end) function showTimeLeft(player) timeLeft[player] = textCreateDisplay() textDisplayAddObserver(timeLeft[player], player) timeLeftText[player] = textCreateTextItem("Time left: " .. getElementData(player, "Timeleft"), 0.45, 0.1, "high", 255, 255, 255, 255) textDisplayAddText(timeLeft[player], timeLeftText[player]) setTimer(updateTimeLeft, 1000, getElementData(player, "Timeleft"), player) end function updateTimeLeft(player) setElementData(player, "Timeleft", getElementData(player, "Timeleft") - 1) textItemSetText(timeLeftText[player], "Time left: " .. getElementData(player, "Timeleft")) if tonumber(getElementData(player, "Timeleft")) == 0 then textDestroyDisplay(timeLeft[player]) setElementFrozen(player, false) setGameSpeed(3) end end
  6. i have made this but if i killed some one the images dosnt show in the top and center on screen and they show to both of us i need it show to the killer and show it center of the screen local x,y = guiGetScreenSize() function headshot ( killer, weapon, bodypart ) if ( killer ) and ( killer ~= source ) then local image = guiCreateStaticImage ( x/5, y/5.8, 399,169, "SAMP"..math.random(1,4)..".png", false ) guiSetVisible ( image, false ) guiSetVisible ( image, true ) guiStaticImageLoadImage(image, "SAMP"..math.random(1,4)..".png") setTimer (guiSetVisible, 4000, 1, image, false ) end addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), headshot )
  7. Code Updated ! 2 local him = getPlayerName(killer) local me = getPlayerName(source) local what = getElementType() local mta = getElementModel() function kill ( ammo, killer, killerweapon, bodypart) if (what == "vehicle" and mta == 425) then outputChatBox ( "him .. Has Killed .. me with .. what .. mta" ) end end addEventHandler ( "onPlayerWasted", getRootElement(), kill )
  8. please castillo help me with this script its buging my head
  9. i dont got what is the problem outputChatBox or trigger or what ?
  10. yes i want it show to the killer and show on the center of the screen just that
  11. please Help i almost finsh my gamemode please
  12. function Armor ( thePlayer ) setPedArmor ( source, 100 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), Armor ) Updated !
  13. lol the images dosnt gone and they are so mutch bigger
  14. Evil-Cod3r

    playericons

    i have go to mta resources and i dont fined any resource called playericons i think i see it on mta 1.0.5 maybe
  15. lol he want the msg output 1 time only not spaming in the chat
  16. Evil-Cod3r

    playericons

    explain Better where did you see it give use full info about it
  17. lol iam the killer ? i salp my self i die its show the images to me ? i want it show to the killer only
  18. no erros and the meta is 1000% fine and they are in the folders
  19. i test it if i slap my self the images show to me and the outputChatBox(Woops) its show but no sound i need if i kill a player the images show to the killer and then they gone
×
×
  • Create New...