Jump to content

Dealman

Members
  • Posts

    1,421
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Dealman

  1. In other words, you want people to give you their resources in hopes that you'll fix them - only so you can in return use them for your own project or whatever. Next time you might want and try to put some effort into not being so transparent. If you truly want to help people, there's a whole forum dedicated to scripting help. You can find this forum here. Happy bug hunting
  2. Just gave this a very brief try, very impressive indeed. You've managed to make even a slow truck become fun to drive. How about a... muscle car?
  3. This was my experience with the CEF browser as well, which ultimately led to me not using it. Instead, I go with a less efficient method in terms of download size - but I can control what speed to draw it at. You can render the video frames as .jpg files to minimize the size of the download. You can use my code if you'd like to try it out; local currentFrame = 1; local currentImageFile = "Images/TTOFlag (1).jpg"; local animationStartTick = getTickCount(); -- Animated Flag Background function dxDrawAnimatedBackground() local animationCurrentTick = getTickCount(); local tickDifference = (((animationCurrentTick-animationStartTick) > 3600) and (animationCurrentTick-animationStartTick-(math.floor((animationCurrentTick-animationStartTick)/3600)*3600))) or animationCurrentTick-animationStartTick; currentFrame = math.ceil(tickDifference/40)((tickDifference/40)+0.5) and math.ceil(tickDifference/40) or math.floor(tickDifference/40); if(currentFrame == 0) then currentFrame = 1; end currentImageFile = "Images/TTOFlag ("..tostring(currentFrame)..").jpg"; dxDrawImage(0, 0, screenWidth, screenHeight, currentImageFile, 0, 0, 0, tocolor(255, 255, 255, 255)); end 3600 should be the approximate length of the video. You then divide this number by the amount of frames in the video, in my case it's 90 frames. So 3600/90 = 40 and I think you can spot where this number goes. Outcome should be something like this;
  4. Does it output any message at all? If it doesn't output any message, it's possible the message is too long.
  5. Do you get any debug messages when using only getPlayerName? As far as I'm aware, getPlayerName should return the full name, including any hex colour. For example; getPlayerName(thePlayer) -- #454545Dealman And since you've set colour-coded to true, it should work without having to use getPlayerNametagColor. Edit: Stop PM'ing me when you already have a thread made. Other people might benefit from the assistance given here, not from my PM inbox
  6. Yours is not the only server to have such tags. You copied someone else's just as much as he's "copied yours".
  7. It's not outputting the first byte, it's outputting your random number. It will be either 1, 2 or 3. If you want to get the table entry at that index, you need to structure it like this; outputChatBox ("#D60606INFO: "..messages[message], getRootElement(), 255, 255, 255, true) You're also only generating the the random number once, you don't really need a function for this, simply do it like this; local messages = { "1) Message 1", "2) Message 2", "3) Message 3" } -- Store the timer as a variable so you can manipulate the timer if you need to local messageTimer = setTimer(function() local randInt = math.random(1, #messages) -- Generate a new int every cycle outputChatBox ("#D60606INFO: "..tostring(messages[randInt]), getRootElement(), 255, 255, 255, true) -- Output the message at the randomly generated index end, 10000, 0)
  8. If you had read the comment I made, you'd know why. You need to make the GUI visible using guiSetVisible assuming you use CEGUI.
  9. You have all of this; addEventHandler("onResourceStart",resourceRoot, function(resource) local players = getElementsByType("player") for i,player in ipairs(players) do bindKey(player,"F4","down",showGui) end end) addEventHandler("onPlayerJoin",root, function() bindKey(source,"F4","down",showGui) end) addEvent ("viewGUI", true) function showGui (hitPlayer, matchingDimension) triggerClientEvent ("viewGUI", hitPlayer) outputChatBox ("• Please use freeroam panel to buy items", source, 255, 0, 0, true) end addCommandHandler("shop",showGui) Which is absolutely unnecessary. Instead, you can simply do this on the client; function ShowGUI() -- Make GUI visible here outputChatBox ("• Please use freeroam panel to buy items", 255, 0, 0, true) end bindKey("F4", "down", ShowGUI) addCommandHandler("shop", ShowGUI) You're the only one in the entire world that's from Romania? So everything in Romanian is clearly stolen from you...? If you think he's stolen resources from you, I suggest you read this thread. If you want to throw words at eachother, do it via PM instead of on here please
  10. So you're trying to imply that you're not using resources uploaded to the community, Blue? If that is the case, you're being quite the hypocrite. He's using the forum because we're here to help, if you don't like that other people receive help, don't linger around here then. We choose whom to help - not you. Oussez, I would recommend you bind the key client-side instead of server-side. Simply use the event onClientResourceStart and it will bind the key once the resource has finished downloading. Seeing as how you're not using any ACL permission checks, I see absolutely no reason to have the key bound via the server and also output the message via the server when you could simply do it client-side.
  11. ...Aren't they the same? IP.Board is forum software developed by IPS.
  12. This is why we can't have nice things.
  13. Negative, only the HTML files as far as I'm aware. You reference to the CSS and JS files through your HTML file.
  14. Didn't you already post this...? I'm not a fan of the interface design, not to mention, why are you using fake progress bars? It's blatantly obvious there's nothing loading, you just put them there to make it look more advanced Especially considering it loads at the exact same speed every time Other than that, good job Edit: That resource has been suspended, you might wanna check your links.
  15. Using my code, what error are you getting? That code doesn't make all too much sense, why are you looping through all the players? for _, v in ipairs(getElementsByType("player")) do if getElementType(player)=="player" then This if statement serves no purpose as it will always pass. getElementsByType will return all the player elements, so there is no need to check if the element type is player. addEventHandler("onPickupHit", getRootElement, Saw) Should be addEventHandler("onPickupHit", getRootElement(), Saw)
  16. ...This would give the weapon to all players on the server instead of only the guy picking it up. @Matevzsz I'd suggest you write your functions like this instead; function OnPickupHit_Handler(thePlayer) if(source == chainsaw) then giveWeapon(thePlayer, 9, 1) setPedWeaponSlot(thePlayer, 1) end end addEventHandler("onPickupHit", root, OnPickupHit_Handler)
  17. Why on earth would need to check if they're in the group 8 times a second to begin wtih
  18. Dealman

    *removed*

    First issue I spotted with this script was this; local player = getPlayerFromNamePart(playername or "") if player then This if statement doesn't really do anything, it will always be true. Even if a player is not found via that name, you set it to "" instead of false - or nil. So player will always be either a player element or simply an empty string. It would never return false or nil, thus preventing possible errors when trying to use the player element later on. You could fix it like this; local player = getPlayerFromNamePart(playername) -- Or if(getElementType(player) == "player") then Second issue is this; setPlayerMuted(player, true, true, true, thePlayer, reason, duration) As far as I can tell, setPlayerMuted only has 2 arguments, not 7 - unless you made your own command. Try and see whether setPlayerMuted returns true or false.
  19. And where is b defined...? setTimer ( function ( b ) local Team = getTeamFromName ( "₧ÑΣαε" ) exports [ "slothbot" ]:setBotTeam ( b, Team ) end ,50, 1, bot1 ) end
  20. Dealman

    *removed*

    I'm sorry, but as far as I am aware, neither of us lingering these forums possess the magic to automatically know what is wrong with your script. Especially when you don't provide us with your code to help you.
  21. Just out of curiosity what version of 3ds Max did you use? And did you get the latest version of the scripts? I haven't experienced a single crash and I've imported both objects and vehicles
  22. Post the entire function again, sounds like some if statement's been messed up
  23. Dealman

    0 errors

    Uh not quite sure what you're trying to do, but can't you... just... use this? isPedOnGround
  24. Sigh... I could've guessed that's what you did wrong. All you did was copy and paste it in there, I told you to replace it... You don't need to check if they belong to the group Everyone. You're already checking whether or not they are in a specific group - if all of them fail, you can just assume that they're in the group Everyone - this is what else does. if vehID == 520 or vehID == 432 or vehID == 425 then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Warden")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Girl")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Vip")) then vehicle = createVehicle(vehID, vx, vy, vz, 0, 0, vrot) else if(getPlayerMoney(source) >= 25000) then takePlayerMoney(source, 25000) vehicle = createVehicle(vehID, vx, vy, vz, 0, 0, vrot) else outputChatBox("You dont have enought money ($25,000)", source, 255, 0, 0, true) end end end From what I can tell that should work, use debugscript to see if it reports any errors. It's possible some other if statements may have broken or whatnot.
  25. It wasn't a little bug, it made no sense. It's evident you just copy and pasted from the wiki hoping it would somehow magically work. It's possible I missed something, or you broke it - if you can post the function that would be helpful. Also, I asked you to stop double-posting all the time, you have the ability to edit your reply. Use that instead.
×
×
  • Create New...