-
Posts
207 -
Joined
-
Last visited
Everything posted by DarkByte
-
Nope it's not what i want when it's 0 it's green and when it's 75 it's white. @Tails - Thanks it's working now.
-
Nope it's not what i want when it's 0 it's green and when it's 75 it's white.
-
For every acl group there's a limit. Player - 75 Moderator - 150 Super moderator - 300 Admin - 500
-
You forgot one comma, here try this. gLPlayer = getLocalPlayer() addEvent("onClientPlayerFireRocket", false) function fireRocketByRotation(startX, startY, startZ, rotX, rotZ, velocity) local nrotX = -rotX local nrotZ = -(rotZ + 180) local velZ = velocity * math.sin(math.rad(rotX)) local a = velocity * math.cos(math.rad(rotX)) local velX = a * math.sin(math.rad(-rotZ)) local velY = a * math.cos(math.rad(-rotZ)) createProjectile(gLPlayer, 19, startX, startY, startZ, 1.0, nil, nrotX, 0, nrotZ, velX / 50, velY / 50, velZ / 50) triggerEvent("onClientPlayerFireRocket", gLPlayer) end function fireRocketByTargetPosition(startX, startY, startZ, targetX, targetY, targetZ, velocity) local rotZ = getRotationZ(startX, startY, targetX, targetY) local rotX = getRotationX(startX, startY, startZ, targetX, targetY, targetZ) fireRocketByRotation(startX, startY, startZ, rotX, rotZ, velocity) end function getRotationZ(startX, startY, endX, endY) -- Dommed-Space-Marine local height = endX - startX local line = endY - startY local t = -math.deg(math.atan2(height, line)) if t < 0 then t = t + 360 end return t end function getRotationX(startX, startY, startZ, endX, endY, endZ) -- Dommed-Space-Marine local line = ((endX - startX) ^ 2 + (endY - startY) ^ 2) ^ 0.5 local height = endZ - startZ local t = math.deg(math.atan2(height, line)) --[[ if t < 0 then t = t + 360 end --]] return t end function rocket() local x,y,z = getElementPosition(gLPlayer) local rx,ry, rz = getPedCameraRotation(gLPlayer) fireRocketByRotation(x,y,z,rx,ry,rz, 50) end end bindKey("mouse1", "down", rocket)
-
I want to make over 5 different values negative and positive colors, i have to write a lot of these...I know there is a simple way but i can't figure it out.
-
Hey can someone explain me how to use getTimerDetails i made this but cant understand whats wrong. timer = {} --------------------------- -- Repair vehicle --------------------------- function repairVehicle() local vehicle = getPedOccupiedVehicle(g_Me) if vehicle then if not isTimer(timer[g_Me]) then timer[g_Me] = setTimer(function() timer[g_Me] = nil end,30000,1) server.fixVehicle(vehicle) outputChatBox("#006400• Vehicle successfully repaired", 0, 100, 0,true) else errMsg("• Please wait at least "..getTimerDetails(timer).." seconds before repairing again.") end end end addCommandHandler('repair', repairVehicle) addCommandHandler('rp', repairVehicle
-
So when this guy its asking for help its not rude ha?
-
I didnt said that. I'm not rude im just asking for help
-
Please insert it in my script
-
Can some one tell me what to use Or What To Edit i can do any thing please help ? it should Draw Hunter Image and Hydra image if i killed by hunter or hydra but it draw punch or victim killed himself , and i have the hunter and hydra images Hunter.png , 520.png (HYDRA)
-
And when i will kill with punch it will show hunter thats logic.
-
Insert it in my codes please.
