1LoL1
Members-
Posts
944 -
Joined
-
Last visited
Everything posted by 1LoL1
-
Post the code.
-
in client.lua is only info not script. Here DONE
-
local amount = math.random(1,100)
-
Set of true to false in all.
-
onClientMinimize
-
function markerHitFunction(source) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then if (state) then moveGate = moveObject(gateName, 3000, 411.89999389648, 2535.8000488281, 19.299999237061) else moveGate = moveObject(gateName, 3000, 412, 2533.8000488281, 19.299999237061) -- Original x, y, z coordinates end if (moveGate) then state = not state; end end end addEventHandler("onMarkerHit", markerName, markerHitFunction)
-
Download the resource and you will see that its not so easy as you think, Its more complicated. If i change i crosshairs position that will not change the shooting direction.. now my only question is: I want to set the projectiles direction to the turrets direction. Whats the problem in my script? function shootProjectile() local veh =getPedOccupiedVehicle(localPlayer) if(veh) and getVehicleModel(veh) == 601then local tx, ty = getVehicleTurretPosition (veh) createProjectile(veh, 19, tx,ty,2) endend function shootProjectile() local veh = getPedOccupiedVehicle(localPlayer) if(veh) and getVehicleModel(veh) == 601 then local tx, ty = getVehicleTurretPosition (veh) createProjectile(veh, 19, tx,ty,2) end end
-
Try this: guiSetEnabled(tab, false)
-
he said "(theTeamYouWant)" he can simply rename that team as "Staff" or "Admins" and it will be only for the admins. Again i say this is for team.... not admin in acl.xml. 100% he don't want for team.. but for "Admin" in acl.xml.
-
This is for team not admin Try this: if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then
-
need help dayz russia translate to english error !!!
1LoL1 replied to eriancyberz's topic in Scripting
Post the error. -
giveWeapon is Server-only function.
-
What do you want? When player dead he will add +1 deaths or When anyone dead in database will +1 deaths?
-
wtf? this function doesn't exists. Use: getElementVelocity
-
addCommandHandler("chat", function (thePlayer, ... ) if isPlayerMuted (thePlayer) then outputChatBox("You are muted!!!", thePlayer, 255, 0, 0) return end local message = table.concat ({ ... },"") for i, player in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Admin")) then outputChatBox("AdminChat: "..string.gsub(getPlayerName(thePlayer), "#%x%x%x%x%x%x", "")..": ".. message, player, 255, 255, 255, true ) end end else outputChatBox("You don't have Admin Rights !!!", thePlayer, 255, 0, 0, true ) end end)
-
Post the code and wrong section.
-
You are idiot? i already posted link.. here put in server-side this: function onResourceStart ( ) local players = getElementsByType ( "player" ) -- Store all the players in the server into a table for key, player in ipairs ( players ) do -- for all the players in the table setPlayerNametagShowing ( player, false ) -- turn off their nametag end end addEventHandler ( "onResourceStart", resourceRoot, onResourceStart ) function onPlayerJoin ( ) -- Whoever joins the server should also have their nametags deactivated setPlayerNametagShowing ( source, false ) end addEventHandler ( "onPlayerJoin", root, onPlayerJoin )
