zombienation
-
Posts
314 -
Joined
-
Last visited
Posts posted by zombienation
-
-
-
Enjoy the video guys
-
Enjoy the video, or the server
-
It is complete now, enjoy!
-
cool
thanks man
-
-
Enjoy
-
danku
meanwhile i added some saw music and traps, i will make more saw missions, i think 7
-
-
hey,
lately i'm working on a very big shop panel for my server, its not finnished yet, but i'd like to show the stuff that is done already
there are scripts in it i made myself, and parts from the community, and parts from people who were kind enough to share stuff with me for my server
the main purposes of this panel is to avoid putting time into showing players where to find what, its "almost" all in one panel
and also to avoid to many gui's
here are some details about the panel, if u like to play with it, come play on my server
hello
i have bin working a long time now on the new shop
its not 100% finnished, but its time to post some info about it here, this is what i got already
1th:
free ski's
free mountainbike
free boat
free stuntplane
flip car
repair car
go afk
come back
suicide pill
water suicide
50% painkiller
25% painkiller
lose head
give head back
put radar on/off
teleport skydive LS - SF - LV
get fire
room of choises teleport
teleport to zombie island
teleport under water
teleport to stunt area
teleport to race track
teleport to dessert
buy jetpack with fuel
afk2 ( 0 gravity )
fall down + parachute
spawn a raptor that hunts on u
spawn an easy or medium or hard bot to hunt with
spawn a cop
buy 6 wanted stars
guns:
brass knuckles
medieval weapon
rusty knife
battle axe
fire staff
skateboard
link's mastersword
cane
super pistols: double weapon + no reload
super tec9: double weapon + no reload
super uzi: double weapon + no reload
super sawn off: double weapon + no reload
smoke
flametower
RPG
pistol
fire ex.
molotov
parachute
minigun
super M4
super combat shotgun
super AK
armor
Health
mp4
tec9
rifle
ak47
mp5
uzi
combat shotgun
shotgun
sawn off
sniper
small weapon pack 1 - 2: normal weapons package
big weapon pack 1 - 2: normal with more ammo
hardcore pack: hard weapons package
cheats:
buy weed: low gravity
buy speed: high speed
buy heroin: 50% better hp
buy coke: godmode
wallhack 1 - 2
fire silencer gun
water driving
flying cars
high bunny hop
high jump
buy hay stacks
buy invincible
sniper with rocketbullets
suicidebomb
explosive bullets
molotov bullets
grapple gun
buy barrel
vehicle godmode
paintball bullets
teargas bullets
power bullets
ball bullets
teleport bullets
user panel:
buy/ spawn car
buy/spawn bike
buy/spawn boat
buy/spawn plane or heli
buy/spawn special
buy/spawn modded car
buy/spawn rental can & buy ticket
lock/unlock owned vehicles
park/unpark owned vehicles
cloak/uncloak owned vehicles
spawn/kill bot
setmode: aggresive, peace, guard, follow
give bot weapon: axe, pistol, shotgun, ak47
cars:
spawn vehicle mods, temp. for 15 minutes
carmodding:
buy tuned vehicles
buy nitro
buy hydraulics
buy all wheels
skins:
buy raptor
buy tiger
buy rabbit
buy snail
buy fox
buy zombie
buy goku
buy gex
buy frog
buy mort
buy lion
buy coffin
buy spyro
buy green demon
buy reaper
buy dwarf CJ
buy crash bandicoot
buy gascan
buy monkey
buy panda
buy skelleton
buy ghostface
buy halloweenguy
buy hotdogseller
buy ninja
buy samurai
buy bender
buy trollface
buy spongebob
buy gladiator
buy goomba
buy alien
skinpack:
buy saw pack: billy skin, wheelchair, meelee weapon
buy chucky package: RC car, rusty knife, chucky skin
buy martian: martian skin, UFO, flametower
buy greys package: greys skin, UFO, flametower
buy bin laden pack: bandito, osama skin, satchels and bomb
buy reptilian pack: skin, halo bike, minigun
buy sonic pack: sonic skin + 10 hits of speed
buy anonymous pack: skin, skateboard and bicycle
buy worms package: skin, bazooka, jetpack
buy jason voorhees package: farmer truck, jason skin, rusty knife
buy rasta pack: lowrider, rasta skin, tec9
buy batman pack: batman skin, batmobile, grapple gun
buy iron man pack: iron man skin, thumbler car, grapple gun
buy robocop pack: robocop skin, hunter, minigun
buy ghostbuster skin: mystery van, ghostbuster skin, flametower
buy kirby pack: kirby skin, RC heli, uzi
buy princess toad: sandbuggy, princess skin, uzi
buy mario: sandbuggy, mario skin, uzi
buy luigi: sandbuggy, luigi skin, uzi
buy link: bandito, link skin, mastersword
buy pickachu: skin, rc vehicle, gun
activities:
bmx trial
excitebike
big fucking jump
skydiving
zombie mission 1 - 2 - 3 - 4
money transfer
medic job
bankrob
basejump
dmtrack 1 - 2
drifttrack
house robber
cement trucker
taxijob
monster track
drunken pirate
bumper cars
drug shop
train driver
buggy mission
hotdog seller
weedfield
nintendo fight
poker game
warroom
ghosthunting
truckerjob 1 - 2
pilot job
fisherman
tram driver
robbing mission
journalist
heli mission
busdriver
spy job
ice cream seller
firework truck
activities 2
streetcleaner 1 - 2
boat mission
taxi LS
limo driver
forklift job
yard job
monster truck activity 1-2
grapple gun mission 1 - 2- 3- 4 - 5 - 6
treasure hunt
sanchez mission
nrg stunting
rollercoaster 1 - 2
warzone 1
worms map
warzone 2
wheelchair madness
turfwars
police
swat
boatjob
chemtrailjob
bike job
construction yard job
gold digger
-
as the intruder of the base you have to get out savely with the ufo's guarded by the aliens inside the base
you need to take out most of the aliens if you dont want to get blowned up while lifting of,
you dont see them on the radar, but if you can buy wallhack to locate them, or you can just hunt on sight, wich i prefer.
total of 17 aliens guarding the base with weapons like m4, snipers, minigun and flametowers
some of them run after you, there are also on high spots to shoot you when u lift of
note, i dont have something yet wich reset all the aliens to the normal locations after going away with the ufo or after some minutes, i'd like to expand with this to make better mission then this small one
enjoy the video
-
players need to draw their tag first, and then go to the locations to spray the tags
they get payed, and wanted stars
-
wut.
I think you should make race with skating
its a nice idea i tried before,
but i didn't managed yet to add races when its not the gamemode
atm players can start races where they want to against who ever they want to,
they can do a command for a countdown but thats it, if they wanna race they need to go to the circuits or explaine to the others wich way to go...
if somebody could help me out with that that would be great
-
i made something simple where people have to "skate" and try to not fall down in the water
the map i use for this activity is from this
https://community.multitheftauto.com/index.php?p= ... ls&id=5497
enjoy
-
basejumping
in Media
Lol, nice idea! This is like a competition, right?yeh u can do competitions on it to, we did some jumps with 4 - 5 people yesterday, it was fun to see them all jumping and spawning back there
-
basejumping
in Media
enjoy the video
-
hello,
i was wondering,
the downloaded map files that u get if u connect on a server, where on your pc are those map files?
-
nice in what server is it?
its on true killuminati, you can find the ip at the video info
-
Nice video man!
i need intro..Can someone make it?i really need it my youtube name is TheGTASolutions
thx man, i never made any video intro before, i always use a picture lol
but i guess there are others here on the forum who would be willing to make an intro for u
-
, that must have been hard
nice
lol yeh its almost impossible to shoot and walk slow at the same time on your own on this lol, i just did it again and it was almost pitchblack in the cage lol, i had to buy a vision lol
-
In this mission u get locked up with many many zombies, u need to find your way to the other side of that place,
u can run beside the zombies, but then the players wont earn anything,
i did the mission on my own ( with minigun, impossible to get them on your own without minigun lol ) and i almost got 200 kills,...
-
thx man
-
read this please
about the code you have post
i couldn't find this in the code.
createBlipAttachedTo(ped[p],24,2,0,255,0,0,0,200)
or
createBlipAttachedTo(ped,24,2,0,255,0,0,0,200)
post it with your code
so I can show your mistakes.
that is cuz the code is not in there, i placed this for it ( on line 170 )
----------------------------------------------HERE I DID THE CODE----------------------------------------------------------
local ablauf = {} local ped = {} local stat = {} local firetimer = {} local timer = {} local jx, jy, jz = {}, {}, {} local pedSayTimer = {} local say_messages = { [1] = "Hallo!", [2] = "Ich mache nur meinen Job.", [3] = "Brauchst du Hilfe? Nein? Ich auch nicht.", [4] = "Du befindest dich in einer sehr gefaehrlichen Lage.", [5] = "Menschen koennen unterwasser ueberleben. Aber nicht lange.", [6] = "Der Koerper eines Menschens enthaelt ein halbes kilo Salz.", [7] = "Kopiere einen Spiegel, und du erhaelst einen Fotokopierer.", [8] = "Der erste Passagierflug fand 1940 statt. Alle an Bord kreischten waerend des gesammten Flug's.", [9] = "Der erste Mensch der bewies, das Kuhmlich trinkbar ist, war sehr, sehr durstig.", [10] = "Bevor das Flugzeug erfunden wurde, musste jeder Mensch 100 Kilo Helium essen, um fliegen zu koennen.", [11] = "Mobiltelefone verursachen kein Krebs. Nur Hepatitis.", [12] = "69 Prozent aller Zaubertricks sind keine Zaubertricks, sondern hexerei.", [13] = "Ratten koennen nicht spucken.", [14] = "Auf jeden quadratzentimeter Mensch leben 32 Millionen Bakterien.", [15] = "Der Mond umkreist die Erde alle 27,32 Tage.", [16] = "Die Milliardste stelle von Pi ist 9.", [17] = "Ein Liter Wasser wiegt 9,99 Kilogramm.", [18] = "Heisses Wasser gefriert schneller als kaltes.", [19] = "China ist der zweitgroesste Hersteller von Sojabohnen.", [20] = "Wolfram besitzt den zweithoechsten Siedepunk. 3410.C", [21] = "Die Zahene 2x Taeglich zu Reinigen ist die beste Methode gegen Mundgeruch.", [22] = "Die Autobremse wurde erst 1895 erfunden. Zuvor musste der Fahrer solange im Kreis fahren, bis alle Insassen ihre Geschaefte erledigt hatten.", [23] = "Der erste Mensch auf dem Mount Everest betrat ihn ausversehn, als er einen Vogel jagte.", [24] = "Der Karpfen ist der giftigste Fisch der Welt.", [25] = "Rechtshaender leben im Durchschnitt neun Jahre laenger als Linkshaender.", [26] = "Eine Schlange kann bis zu 3 Jahren schlafen.", [27] = "Wenn man 6 Jahre und 9 Monate ununterbrochen furzt, hat man genug Gas gesammelt, um die Energie einer Atombombe darzustellen.", [28] = "Mit dem Kopf gegen die Wand zu knallen verbraucht 150 Kalorien die Stunde.", [29] = "Es ist unmoeglich mit offenen Augen zu niesen.", [30] = "Man stirbt eher an einem Champagner-Korken als von einer giftigen Spinne.", [31] = "1567 stolperte der Mann mit dem laengsten Bart Europas ueber eben diesen, stuerzte die Treppe herab und brach sich das Genick.", [32] = "In Indien ist es moeglich Tiere zu heiraten.", [33] = "Erhitzt man Eier in der Mikrowelle explodieren sie.", [34] = "Ein Mensch wiegt weniger, wenn der Mond genau ueber ihm steht.", [35] = "Nach einer Auswertung von 32.000.000 Datensaetzen ist das haeufigste Passwort im Internet 123456.", [36] = "Ein Mensch kann durch einen Sprung auf ebenem Boden nicht laenger als eine Sekunde in der Luft bleiben.", [37] = "Tritt man gegen eine Laterne mit einer Quecksilberdampflampe, erlischt diese fuer bis zu 5 Minuten.", [38] = "Der Halleyscher Komet naehert sich der Erde alle 76 Jahre.", [39] = "Zu jeder Uhrzeit sind auf der ganzen Welt rund 50 Millionen Menschen betrunken." } local function doPedSaySomething(ped) if(isTimer(pedSayTimer[ped])) then killTimer(pedSayTimer[ped]) end if(isElement(ped)) then local message = say_messages[math.random(1, #say_messages)] local x, y, z = getElementPosition(ped) local col = createColSphere(x, y, z, 10) for index, p in ipairs( getElementsWithinColShape(col, "player") ) do local x2, y2, z2 = getElementPosition ( p ) local distance = getDistanceBetweenPoints3D ( x, y, z, x2, y2, z2 ) local rgb = 15 * distance - 125 local rgb = math.abs ( rgb - 255 ) + 125 outputChatBox ("Bodyguard sagt: " ..message, p, rgb, rgb, rgb ) end destroyElement(col) pedSayTimer[ped] = setTimer(doPedSaySomething, 10000+math.random(5000, 60000), 1, ped) end end local function functionscheck() for index, p in next, ped do if(isElement(p)) then local player = getPlayerFromName(getElementData(p, "besitzer")) if(player) and (ped[player]) then if(isElement(p)) and (ablauf[player] == true) then if not(stat[p]) then stat[p] = {} timer[p] = {} end local owner = player if(owner) then local x, y, z = getElementPosition(owner) local x2, y2, z2 = getElementPosition(p) if(getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) > 3) then -- SPRINT CHECK -- stat[p]["running"] = true if(getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) > 10) then if(stat[p]["jumping"] ~= true) and (stat[p]["inveh"] ~= true) then setPedAnimation(p, "ped" , "sprint_civi", -1, true, true, false) -- Sprintet end else if(stat[p]["jumping"] ~= true) and (stat[p]["inveh"] ~= true) then setPedAnimation(p, "ped" , "JOG_maleA", -1, true, true, false) -- Joggt end end -- ROTATION -- local x1, y1 = getElementPosition(p) local x2, y2 = getElementPosition(owner) local rot = math.atan2(y2 - y1, x2 - x1) * 180 / math.pi rot = rot-90 setPedRotation(p, rot) -- CAR -- local inveh = false if(isPedInVehicle(player)) then inveh = true end if(inveh == true) and (getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) < 4) then if(stat[p]["inveh"] ~= true) and (stat[p]["enterveh"] ~= true) then stat[p]["enterveh"] = true setPedAnimation(p) triggerClientEvent(getRootElement(), "doPedEnter", player, p, true) setTimer(function() local occupants = getVehicleOccupants(getPedOccupiedVehicle(player)) for i = 1, getVehicleMaxPassengers(getPedOccupiedVehicle(player)), 1 do if not(occupants[i]) then warpPedIntoVehicle(p, getPedOccupiedVehicle(player), i) stat[p]["inveh"] = true break; end end stat[p]["enterveh"] = false end, 2000, 1) end else if(stat[p]["inveh"] == true) and (stat[p]["enterveh"] == false) and(isPedInVehicle(player) == false) then -- er ist nicht im auto aber ich bin es stat[p]["enterveh"] = true triggerClientEvent(getRootElement(), "doPedExitVeh", player, p, true) setTimer(function() removePedFromVehicle(p) stat[p]["enterveh"] = false stat[p]["inveh"] = false end, 1000, 1) end end -- JUMP CHECK -- if(inveh == false) then if((z-z2) > 0.-- s8) --> and (getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) < 4) and (stat[p]["jumping"] ~= true) then -- er ist oben stat[p]["jumping"] = true setPedAnimation(p) triggerClientEvent(getRootElement(), "doPedJump", player, p, true) if(isTimer(timer[p]["jump"])) then killTimer(timer[p]["jump"]) end timer[p]["jump"] = setTimer(function() stat[p]["jumping"] = false triggerClientEvent(getRootElement(), "doPedJump", player, p, false) end, 800, 1) end end else if (stat[p]["running"] == true)then stat[p]["running"] = false setPedAnimation(p) end end else destroyElement(p) end end end else p = nil end end end setTimer(functionscheck, 200, -1) ----------------------------------------------HERE I DID THE CODE---------------------------------------------------------- addCommandHandler("pet", function(p) if(ablauf[p] == true) then return end ablauf[p] = true local x, y, z = getElementPosition(p) ped[p] = createPed(7, x, y+1, z) setElementData(ped[p], "besitzer", getPlayerName(p)) setElementData(ped[p], "bodyguard", true) giveWeapon(ped[p], 0, 99999, true) setPedStat (ped[p], 72, 999) --addEventHandler("onClientPedDamage", ped, on_damage_check) pedSayTimer[ped[p]] = setTimer(doPedSaySomething, 5000, 1, ped[p]) addEventHandler("onPedWasted", ped[p], function() local ped = source setTimer(destroyElement, 1000, 1, ped) ablauf[p] = false end) end)
-
thats why i gave the link from the community, but i'll put the whole lua here then
local ablauf = {}
local ped = {}
local stat = {}
local firetimer = {}
local timer = {}
local jx, jy, jz = {}, {}, {}
local pedSayTimer = {}
local say_messages = {
[1] = "Hallo!",
[2] = "Ich mache nur meinen Job.",
[3] = "Brauchst du Hilfe? Nein? Ich auch nicht.",
[4] = "Du befindest dich in einer sehr gefaehrlichen Lage.",
[5] = "Menschen koennen unterwasser ueberleben. Aber nicht lange.",
[6] = "Der Koerper eines Menschens enthaelt ein halbes kilo Salz.",
[7] = "Kopiere einen Spiegel, und du erhaelst einen Fotokopierer.",
[8] = "Der erste Passagierflug fand 1940 statt. Alle an Bord kreischten waerend des gesammten Flug's.",
[9] = "Der erste Mensch der bewies, das Kuhmlich trinkbar ist, war sehr, sehr durstig.",
[10] = "Bevor das Flugzeug erfunden wurde, musste jeder Mensch 100 Kilo Helium essen, um fliegen zu koennen.",
[11] = "Mobiltelefone verursachen kein Krebs. Nur Hepatitis.",
[12] = "69 Prozent aller Zaubertricks sind keine Zaubertricks, sondern hexerei.",
[13] = "Ratten koennen nicht spucken.",
[14] = "Auf jeden quadratzentimeter Mensch leben 32 Millionen Bakterien.",
[15] = "Der Mond umkreist die Erde alle 27,32 Tage.",
[16] = "Die Milliardste stelle von Pi ist 9.",
[17] = "Ein Liter Wasser wiegt 9,99 Kilogramm.",
[18] = "Heisses Wasser gefriert schneller als kaltes.",
[19] = "China ist der zweitgroesste Hersteller von Sojabohnen.",
[20] = "Wolfram besitzt den zweithoechsten Siedepunk. 3410.C",
[21] = "Die Zahene 2x Taeglich zu Reinigen ist die beste Methode gegen Mundgeruch.",
[22] = "Die Autobremse wurde erst 1895 erfunden. Zuvor musste der Fahrer solange im Kreis fahren, bis alle Insassen ihre Geschaefte erledigt hatten.",
[23] = "Der erste Mensch auf dem Mount Everest betrat ihn ausversehn, als er einen Vogel jagte.",
[24] = "Der Karpfen ist der giftigste Fisch der Welt.",
[25] = "Rechtshaender leben im Durchschnitt neun Jahre laenger als Linkshaender.",
[26] = "Eine Schlange kann bis zu 3 Jahren schlafen.",
[27] = "Wenn man 6 Jahre und 9 Monate ununterbrochen furzt, hat man genug Gas gesammelt, um die Energie einer Atombombe darzustellen.",
[28] = "Mit dem Kopf gegen die Wand zu knallen verbraucht 150 Kalorien die Stunde.",
[29] = "Es ist unmoeglich mit offenen Augen zu niesen.",
[30] = "Man stirbt eher an einem Champagner-Korken als von einer giftigen Spinne.",
[31] = "1567 stolperte der Mann mit dem laengsten Bart Europas ueber eben diesen, stuerzte die Treppe herab und brach sich das Genick.",
[32] = "In Indien ist es moeglich Tiere zu heiraten.",
[33] = "Erhitzt man Eier in der Mikrowelle explodieren sie.",
[34] = "Ein Mensch wiegt weniger, wenn der Mond genau ueber ihm steht.",
[35] = "Nach einer Auswertung von 32.000.000 Datensaetzen ist das haeufigste Passwort im Internet 123456.",
[36] = "Ein Mensch kann durch einen Sprung auf ebenem Boden nicht laenger als eine Sekunde in der Luft bleiben.",
[37] = "Tritt man gegen eine Laterne mit einer Quecksilberdampflampe, erlischt diese fuer bis zu 5 Minuten.",
[38] = "Der Halleyscher Komet naehert sich der Erde alle 76 Jahre.",
[39] = "Zu jeder Uhrzeit sind auf der ganzen Welt rund 50 Millionen Menschen betrunken."
}
local function doPedSaySomething(ped)
if(isTimer(pedSayTimer[ped])) then
killTimer(pedSayTimer[ped])
end
if(isElement(ped)) then
local message = say_messages[math.random(1, #say_messages)]
local x, y, z = getElementPosition(ped)
local col = createColSphere(x, y, z, 10)
for index, p in ipairs( getElementsWithinColShape(col, "player") ) do
local x2, y2, z2 = getElementPosition ( p )
local distance = getDistanceBetweenPoints3D ( x, y, z, x2, y2, z2 )
local rgb = 15 * distance - 125
local rgb = math.abs ( rgb - 255 ) + 125
outputChatBox ("Bodyguard sagt: " ..message, p, rgb, rgb, rgb )
end
destroyElement(col)
pedSayTimer[ped] = setTimer(doPedSaySomething, 10000+math.random(5000, 60000), 1, ped)
end
end
local function functionscheck()
for index, p in next, ped do
if(isElement(p)) then
local player = getPlayerFromName(getElementData(p, "besitzer"))
if(player) and (ped[player]) then
if(isElement(p)) and (ablauf[player] == true) then
if not(stat[p]) then
stat[p] = {}
timer[p] = {}
end
local owner = player
if(owner) then
local x, y, z = getElementPosition(owner)
local x2, y2, z2 = getElementPosition(p)
if(getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) > 3) then
-- SPRINT CHECK --
stat[p]["running"] = true
if(getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) > 10) then
if(stat[p]["jumping"] ~= true) and (stat[p]["inveh"] ~= true) then
setPedAnimation(p, "ped" , "sprint_civi", -1, true, true, false) -- Sprintet
end
else
if(stat[p]["jumping"] ~= true) and (stat[p]["inveh"] ~= true) then
setPedAnimation(p, "ped" , "JOG_maleA", -1, true, true, false) -- Joggt
end
end
-- ROTATION --
local x1, y1 = getElementPosition(p)
local x2, y2 = getElementPosition(owner)
local rot = math.atan2(y2 - y1, x2 - x1) * 180 / math.pi
rot = rot-90
setPedRotation(p, rot)
-- CAR --
local inveh = false
if(isPedInVehicle(player)) then
inveh = true
end
if(inveh == true) and (getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) < 4) then
if(stat[p]["inveh"] ~= true) and (stat[p]["enterveh"] ~= true) then
stat[p]["enterveh"] = true
setPedAnimation(p)
triggerClientEvent(getRootElement(), "doPedEnter", player, p, true)
setTimer(function()
local occupants = getVehicleOccupants(getPedOccupiedVehicle(player))
for i = 1, getVehicleMaxPassengers(getPedOccupiedVehicle(player)), 1 do
if not(occupants) then
warpPedIntoVehicle(p, getPedOccupiedVehicle(player), i)
stat[p]["inveh"] = true
break;
end
end
stat[p]["enterveh"] = false
end, 2000, 1)
end
else
if(stat[p]["inveh"] == true) and (stat[p]["enterveh"] == false) and(isPedInVehicle(player) == false) then -- er ist nicht im auto aber ich bin es
stat[p]["enterveh"] = true
triggerClientEvent(getRootElement(), "doPedExitVeh", player, p, true)
setTimer(function()
removePedFromVehicle(p)
stat[p]["enterveh"] = false
stat[p]["inveh"] = false
end, 1000, 1)
end
end
-- JUMP CHECK --
if(inveh == false) then
if((z-z2) > 0. and (getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) < 4) and (stat[p]["jumping"] ~= true) then -- er ist oben
stat[p]["jumping"] = true
setPedAnimation(p)
triggerClientEvent(getRootElement(), "doPedJump", player, p, true)
if(isTimer(timer[p]["jump"])) then killTimer(timer[p]["jump"]) end
timer[p]["jump"] = setTimer(function()
stat[p]["jumping"] = false
triggerClientEvent(getRootElement(), "doPedJump", player, p, false)
end, 800, 1)
end
end
else
if (stat[p]["running"] == true)then
stat[p]["running"] = false
setPedAnimation(p)
end
end
else
destroyElement(p)
end
end
end
else
p = nil
end
end
end
setTimer(functionscheck, 200, -1)
----------------------------------------------HERE I DID THE CODE----------------------------------------------------------
addCommandHandler("pet", function(p)
if(ablauf[p] == true) then return end
ablauf[p] = true
local x, y, z = getElementPosition(p)
ped[p] = createPed(7, x, y+1, z)
setElementData(ped[p], "besitzer", getPlayerName(p))
setElementData(ped[p], "bodyguard", true)
giveWeapon(ped[p], 0, 99999, true)
setPedStat (ped[p], 72, 999)
--addEventHandler("onClientPedDamage", ped, on_damage_check)
pedSayTimer[ped[p]] = setTimer(doPedSaySomething, 5000, 1, ped[p])
addEventHandler("onPedWasted", ped[p], function()
local ped = source
setTimer(destroyElement, 1000, 1, ped)
ablauf[p] = false
end)
end)
Gameplay trailer for my server
in Media
Posted
thx guys, i know things goes fast in the video, but i made it like that so people would re watch it to see the details better its only a trick hehe