Jump to content

Lloyd Logan

Members
  • Posts

    642
  • Joined

  • Last visited

Everything posted by Lloyd Logan

  1. Well, how can we help If we don't know your server side?
  2. What did you do? Post your script here . The script was the one in the OP, but nevermind, Freeroam was messing it up!
  3. I tried that, the camera is now jamming in the players body?
  4. Why does setElementPosition keep setting the player like this? The player is consistantly stuck! http://img844.imageshack.us/img844/2/forksb.png Thanks function consoleSetPlayerPosition ( commandName, posX, posY, posZ ) setElementPosition ( getLocalPlayer(), posX, posY, posZ ) end addCommandHandler ( "setpos", consoleSetPlayerPosition )
  5. It's been a while, what do you need help with? My Skype is lloydlogan11 I you need any further help.
  6. addEventHandler("onClientGUIClick", button, showIt) function showIt( thePlayer ) showCusor( false ) end You could do that and for when you type function openChat( thePlayer ) showCursor( true ) end addCommandHandler("showit", openChat) EDIT : I am on my phone just now so some of that may be incorrect!
  7. I know, People fail to give enough information these days I really do not know why!!And how he wants us to help?Damn! . Maybe that's all he is looking for, if he needs more help, I'm sure he can just ask!
  8. I know, People fail to give enough information these days
  9. Are you telling me to not speak? Anyway What i said in my first post is the answer to your first question. Sorry but I was angry at someone I'm sorry ^ ^Any way i answered the second question a correct answer! Sorry again No problem, we all get like that. Oh well, hopefully both questions are answered for him now.
  10. Are you telling me to not speak? Anyway What i said in my first post is the answer to your first question.
  11. You don't need getTeamFromName, you get getElementModel on wasted, and setElementModel on spawn.
  12. Stop saying fail, the blips could not be showing because of one wrong letter in the script.
  13. Try this I have not tried it yet. local playerBlipRoot = createElement("playerBlipRoot", "playerBlipRoot") --This function creates blips for all players when the resource starts. local function resourceStart(thePlayer) local r, g, b = getTeamColor(thePlayer) local blip = createBlipAttachedTo(thePlayer, 0, 2, r, g, b, 255, 1) setElementParent(blip, playerBlipRoot) end addEventHandler("onClientResourceStart", getRootElement(), resourceStart) --This function creates a blip for new players when they join. local function playerJoin(thePlayer) local r, g, b = getTeamColor(thePlayer) local blip = createBlipAttachedTo(thePlayer, 0, 2, r, g, b, 255, 1) setElementParent(blip, playerBlipRoot) setTimer(updateBlipColor, 1500, 1, blip) --Upadate in 2 seconds, in case the server sets the color. function updateBlipColor(thePlayer) local attach = getElementAttachedTo(thePlayer) if ( attach ) then local r, g, b = getTeamColor(thePlayer) setBlipColor(blip, r, g, b, 255) end setTimer(updateBlipColor, 500, 1) end end addEventHandler("onClientPlayerJoin", getRootElement(), playerJoin) local function playerQuit() for _, blip in ipairs(getElementChildren(playerBlipRoot)) do if getElementAttachedTo(blip) == source then destroyElement(blip) end end end addEventHandler("onClientPlayerQuit", root, playerQuit)
  14. Try this meta "Socialz" name="Basic Roleplay | Shops" type="script" /> -- Scripts -->
  15. Considering you haven't given us the code... spawnButton = guiCreateButton(etc) addEventHandler("onClientGUIClick", spawnButton, spawnHosp) function spawnHosp( thePlayer ) setElementPostition( thePlayer, co-ordinate x, co-orinate y, co-ordinate z ) end
  16. Do you remember my other script? When each marker was created in a different function? How would i get the distance between 2 markers if one is destroyed after it is hit? I pm'ed you my script.
  17. Is there anyway to change the health value to 100 instead of 1000, so it would be /setcarhp 100? With math you can do it: 10*100 will do the job. So, calculate in my script, that if a player enters /setcarhp 100, just multiply the 100 by 10?, and if so, how would I do this?
  18. I have random markers, how would i calculate this?
  19. Is there anyway to change the health value to 100 instead of 1000, so it would be /setcarhp 100?
  20. How would I make a script so that it pays the amount of distance driven(e.g 500 (what ever the distance is caluclated in) you get paid 500 dollars.) The distance will be between 2 markers.
  21. My pleasure, done it through skype!
  22. Thanks, is health out of 1000?
  23. getElementHealth: This function returns the current health for the specified element. This can be a player, a ped, or a vehicle. I done this but it always says Your car is fine? even if my car is on fire. function healthin( thePlayer ) local vehiclee = getPedOccupiedVehicle( thePlayer ) if vehiclee then local health = getElementHealth( vehiclee ) if (health<=50) then outputChatBox("Time For a repair!", thePlayer) else outputChatBox("Your car is fine!", thePlayer) end else outputChatBox("You're not in a vehicle!", thePlayer) end end addCommandHandler("carh", healthin)
×
×
  • Create New...