
Halfmillz
Members-
Posts
31 -
Joined
-
Last visited
Everything posted by Halfmillz
-
but it see the player model, how to draw it with firstview when aim M4?
-
I want to create custom objects but don't want to replace in game objects. how to know the unused objects ids? or anyone have the list of unused object id?
-
is this support color code? it's will great if can use color code like outputchatbox
-
is possible to made aim camera to first person like sniper or rocket luncher when aiming m4a1 ak47 waepon? but only player use the command not for all player in server
-
Smart idea, but he said he want to move the player to the ped. oh, i was mean player not ped how did i said ped, typo mistake. wow, it's work! thanks you very much TAPL very good idea i never know that player can attach -0-
-
distance between ped and player is 5-10 and i have the both position ex. pedX,pedY,pedZ = getElementPosition(ped) X,Y,Z = getElementPosition(player) i try setTimer, but i don't know how to move player to ped's position
-
what is x y z come from , Now i have problem how to move player to the ped direction? It's move to wrong direction.
-
No, I mean move player position by step until to finish position like moveObject function but it can't use with player.
-
i want to set Player position to ped smoothly i try setElementPosition it warp player to ped, not moving smoothly, have any solution? sloved
-
How to mark Label to wordwarp? I want text will wrap to a new line whenever it reaches the right side of the bounding box.
-
Yeah it's work! thank you very much
-
I want to use marker for special effect when player level up and i want other player can see the marker following the player who level up.
-
can you show me some example? thank you
-
I want to create Marker that can update Position of player when ElementDataChange I can do it in clientside but I wanted to Everyone see the Marker, How to set Position of marker Following Player in serverside?
-
i think he mean set the radar area alpha 0 not set the zombie alpha
-
dose zombie spawn or not in zombieproof? mean create big radar outside the city?
-
I spawn zombie and set zombie interiors and dimension to my interiors and dimension It's work fine when dimension 0 but when dimension > 0 my zombies not chasing me and run to wrong direction please help
-
is possible to force the player screen brightness in setting menu? i wanted all player have a same screen brightness setting.
-
function zombiedamaged ( attacker, weapon, bodypart ) if getElementType ( source ) == "ped" then if (getElementData (source, "zombie") == true) then local zhealth = getElementHealth ( source ) local x, y, z = getElementPosition( source ) local gz = getGroundPosition ( x, y, z ) if ( gz > 1 ) or ( isElementInWater( source ) == false ) then if ( zhealth <=0 ) then setPedAnimation ( source, "ped", "KO_shot_front", 2000, false, true, true) -- make zombie die on ground when killed in the air setElementPosition ( source, x, y, gz+1 ) end end if ( bodypart == 9 ) then helmeted = "no" local zskin = getElementModel ( source ) for k, skin in pairs( helmetzombies ) do if skin == zskin then helmeted = "yes" end end if helmeted == "no" then triggerServerEvent ("headboom", source, source, attacker, weapon, bodypart ) end else triggerServerEvent ("killZomb", source, source, attacker, weapon, bodypart ) end end end end addEventHandler ( "onClientPedDamage", getRootElement(), zombiedamaged ) function zombiedkilled(killer, weapon, bodypart) local x, y, z = getElementPosition( source ) if getElementType ( source ) == "ped" then if (getElementData (source, "zombie") == true) then outputChatBox("weapon = "..weapon) setElementCollisionsEnabled(source, false) if (getElementModel ( source ) == 162) and ( weapon ~= 42 )then createExplosion(x,y,z ,12,true,-1.0,true) end end end end addEventHandler ( "onClientPedWasted", getRootElement(), zombiedkilled )
-
but i kill ped with M4 MP5 or any weapons its alway return 63
-
when i kill zombie ped with any weapon (not headshot) it alway return weapon value to 63 on event onClientPedWasted, how to slove it?
-
I use Zombie spawnpoint but all zombie spawn at the spawnpoint. how to spawn one zombie per spawnpoint until zombie dead and the new zombie spawn? this is spawnpoint script from zday zombie script function SpawnpointZombie () local pacecount = 0 while pacecount < 2 do --1 ZOMBIES AT A TIME TO PREVENT FPS DROP if (table.getn( everyZombie )+pacecount < newZombieLimit ) and (ZombieStreaming == 2) then local liveplayers = getAlivePlayers () if (table.getn( liveplayers ) > 0 ) then local lowestcount = 99999 local lowestguy = nil for PKey,thePlayer in ipairs(liveplayers) do --THIS PART GETS THE PLAYER WITH THE LEAST ZOMBIES ATTACKING if (getElementData (thePlayer, "dangercount")) and (getElementData(thePlayer, "zombieProof") ~= true) then if (getElementData (thePlayer, "dangercount") < lowestcount) then lowestguy = thePlayer lowestcount = getElementData (thePlayer, "dangercount") end end end if isElement(lowestguy) then local zombiespawns = { } local possiblezombies = getElementsByType ( "Zombie_spawn" ) local Px, Py, Pz = getElementPosition( lowestguy ) for ZombKey,theZomb in ipairs(possiblezombies) do local Zx, Zy, Zz = getElementPosition( theZomb ) local distance = (getDistanceBetweenPoints3D( Px, Py, Pz, Zx, Zy, Zz )) if (distance < 10) or (isPedDead(theZomb) == false) then table.remove( possiblezombies, ZombKey) --IF SPAWN IS TOO CLOSE TO ANY PLAYER end end local Px, Py, Pz = getElementPosition( lowestguy ) for ZombKey2,theZomb2 in ipairs(possiblezombies) do local Zx, Zy, Zz = getElementPosition( theZomb2 ) local distance = (getDistanceBetweenPoints3D( Px, Py, Pz, Zx, Zy, Zz )) if (distance < 65) then --AS LONG AS THE SPAWN IS CLOSE ENOUGH TO A PLAYER table.insert( zombiespawns, theZomb2 ) end end if (table.getn( zombiespawns ) >0 ) then--IF THE LOWEST PLAYER HAS ANY CLOSE SPAWNS,USE ONE local random = math.random ( 1, table.getn ( zombiespawns ) ) local posX = getElementData(zombiespawns[random], "posX") local posY = getElementData(zombiespawns[random], "posY") local posZ = getElementData(zombiespawns[random], "posZ") local rot = getElementData(zombiespawns[random], "rotZ") pacecount = pacecount+1 triggerEvent ( "onZombieSpawn",zombiespawns[random], posX, posY, posZ, rot ) else--IF THE LOWEST PLAYERS DOESNT HAVE ANY SPAWNS, THEN SEE IF ANYONE HAS ANY local zombiespawns = { } local possiblezombies = getElementsByType ( "Zombie_spawn" ) local allplayers = getAlivePlayers () for theKey,thePlayer in ipairs(allplayers) do local Px, Py, Pz = getElementPosition( thePlayer ) for ZombKey,theZomb in ipairs(possiblezombies) do local Zx, Zy, Zz = getElementPosition( theZomb ) local distance = (getDistanceBetweenPoints3D( Px, Py, Pz, Zx, Zy, Zz )) if (distance < 10) or (isPedDead(theZomb) == false) then table.remove( possiblezombies, ZombKey) --IF SPAWN IS TOO CLOSE TO ANY PLAYER end end end for theKey,thePlayer in ipairs(allplayers) do local Px, Py, Pz = getElementPosition( thePlayer ) for ZombKey2,theZomb2 in ipairs(possiblezombies) do local Zx, Zy, Zz = getElementPosition( theZomb2 ) local distance = (getDistanceBetweenPoints3D( Px, Py, Pz, Zx, Zy, Zz )) if (distance < 65) then --AS LONG AS THE SPAWN IS CLOSE ENOUGH TO A PLAYER table.insert( zombiespawns, theZomb2 ) end end end if (table.getn( zombiespawns ) >1 ) then local random = math.random ( 1, table.getn ( zombiespawns ) ) local posX = getElementData(zombiespawns[random], "posX") local posY = getElementData(zombiespawns[random], "posY") local posZ = getElementData(zombiespawns[random], "posZ") local rot = getElementData(zombiespawns[random], "rotZ") pacecount = pacecount+1 triggerEvent ( "onZombieSpawn",zombiespawns[random], posX, posY, posZ, rot ) else pacecount = pacecount+1 end end else pacecount = pacecount+1 end else pacecount = pacecount+1 end else pacecount = pacecount+1 end end end
-
I have a same problem in this forum viewtopic.php?f=91&t=59243 but now don't work T_T
-
i do that but newZombieLimit update only one time when resource starts . how to make newZombieLimit update auto after resource starts? just use onClientResourceStart event with a timer show me an example please. thx
-
i do that but newZombieLimit update only one time when resource starts . how to make newZombieLimit update auto after resource starts?