
Evil-Cod3r
Members-
Posts
370 -
Joined
-
Last visited
Everything posted by Evil-Cod3r
-
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 )
-
oh sorrey thanks for the lesson
-
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
-
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
-
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
-
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 )
-
Close Topic no help 2 days
-
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 )
-
please castillo help me with this script its buging my head
-
i dont got what is the problem outputChatBox or trigger or what ?
-
yes i want it show to the killer and show on the center of the screen just that
-
ok sorrey Man my bad
-
please Help i almost finsh my gamemode please
-
Kenix can you help me
-
function Armor ( thePlayer ) setPedArmor ( source, 100 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), Armor ) Updated !
-
lol the images dosnt gone and they are so mutch bigger
-
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
-
lol he want the msg output 1 time only not spaming in the chat
-
explain Better where did you see it give use full info about it
-
lol iam the killer ? i salp my self i die its show the images to me ? i want it show to the killer only
-
no erros and the meta is 1000% fine and they are in the folders
-
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