Jump to content

Lloyd Logan

Members
  • Posts

    642
  • Joined

  • Last visited

Everything posted by Lloyd Logan

  1. Thats fantastic, 3NAD, it works perfect! Thank You!
  2. Thank I'll try that, the alpha was at 0 but i was trying other createMarkers. Thanks Alot!
  3. Atlast!! It works, Thank You!
  4. How would i use these? Like, what data would i get and set?
  5. Still nothing guys! server createTeam ("Bus Driver", 0, 255, 0 ) function teamSet ( ) local team = getTeamFromName ( "Bus Driver" ) if team then setPlayerTeam ( source, team ) end end addEvent ( "sTeam", true) addEventHandler ( "sTeam", root, teamSet ) client function joinTeam() triggerServerEvent("sTeam", source, "teamSet") end
  6. What i mean is, when i leave the marker, it cancels the event, which was working, but... It always say wait, you forgot your repair, even if they have got their repair or they've got no money, it still says "wait your forgot your repair!"
  7. Will this work with your code, or 3NAD's?
  8. It now says, Bad 'player' pointer at @ 'setPlayerTeam' client function joinTeam(thePlayer) triggerServerEvent("sTeam", getRootElement(), "teamSet") end It is triggering it, so i am guessing the problem is Server side?
  9. I did that, the db 3 now says, Bad Arguement @ 'setPlayerTeam'
  10. Hey, so i made a GUI and when you click "join" it sets you to the team, but its not working! team = createTeam ( "Bus Driver", 0, 255, 0 ) function teamSet(thePlayer, team) setPlayerTeam( thePlayer, team) end addEvent("sTeam", true) addEventHandler("sTeam", thePlayer, teamSet)
  11. Maybe? http://cc.byexamples.com/2008/06/07/how-to-embed-Lua-51-in-c/ PS. My post most probably doesn't make sense either!
  12. Hey, so How would I make it so that when the car if fixed and the player leaves the marker it won't say "Wait you forgot your repair". I made it so that it says that when you leave the marker, it displays that. But even if the car is repaired and the player leaves, it still says it? Server
  13. So, once you have started your local server, wait for that to load. Once it has type in start play ( play should be started by default anyway) then type start editor Either go into your server and you should be able to edit the map, or just hit escape and click map editor, this will edit your play map. Or a simple route, click map editor in the main menu, then load the play map! If you are stuck, add me on Skype : lloydlogan11
  14. How would i cancel the event server side? cancel event Client and Server function and you use OnMarkerLeave? at client it,s Serverside event you can use: onClientMarkerLeave That was hard for me to understand, what your saying is to use "onClientMarkerLeave"?
  15. How would i cancel the event server side?
  16. Hey, so i created a paynspray script but when the Element leaves the Marker, it continues to repair the car? Nothing in db 3, it doesn't cancel the script? Thanks Server dutymarker = createMarker(1911.35938, -1777.46899, 11.98387, "cylinder", 4.0, 255, 255, 155) function paynspray(hitElement,matchingDimension) if (hitElement and getElementType(hitElement) == "player" and matchingDimension) then local money = getPlayerMoney(hitElement) if ( money>=500 ) then outputChatBox("Please wait whilst we work on your vehicle!", hitElement) setTimer (fixVehicle, 5000, 1, getPedOccupiedVehicle(hitElement)) setTimer ( outputChatBox, 5000, 1, "Thank you for for coming to us for your repair!" ) else outputChatBox("Please come back when you have atleast $500, thank you", hitElement) end end end addEventHandler("onMarkerHit", dutymarker, paynspray) Client function markerLeave( leaveElement, matchingDimension ) cancelEvent("onMarkerHit", leaveElement, paynspray) outputChatBox("Wait! What about your repair?", hitElement) end addEventHandler( "onMarkerLeave", leaveElement, markerLeave )
  17. Ahh I understand now, Thank you!
  18. Ah, see this always confused me, so if I were to do setElementHealth(<---Random) would it be, setTimer(setElementHealth, 5000, 1, 100) ? Thanks
  19. Jeez, I kept writing, setTimer (5000, 1,outputChatBox("blah"), hitElement) Thank you.
  20. Hey, this has been annoying me, how do i use outputChatBox with setTimer ? its getting hopeless as I can only use setTimer with fIxVeh
  21. This is bumping, but by piles do you mean a multiple choice of which map to go to?
×
×
  • Create New...