Jump to content

Charlie_Jefferson

Members
  • Posts

    242
  • Joined

  • Last visited

Everything posted by Charlie_Jefferson

  1. Hello! Can I have a cheeseburger with extra cheese? Delivered to my house, yes. Please make it fast. I don't know how to make one at home. D: Post the script. Edit: I figured the problem for this guy! He never posted a script!
  2. function Open ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then moveObject (lift, 2500, -1851, -3112.1000976563, 38.900001525879) end end end addEventHandler ( "onColShapeHit", col, Open) function Close ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then moveObject (lift, 2500, -1851, -3112.1000976563, 51.700000762939) bindKey ( player, "F3", "down", Open ) Obviously when copying a script from the wiki, remove the random text and comments...
  3. Server-side only... If it would be client-side, then people already have your xml files... Edit: It might be client-side too. Don't use it unless you want people to get your .xml files.
  4. Because it's a server-side only function. The client doesn't have access to it. If it would, it could copy the file, as client-side scripts are downloaded when you join a server.
  5. It's onPlayerDamage, not onPlayerDomage.
  6. I know it's hard to achieve. I knew that, but I thought it can be done with my script. Seems not.
  7. Oh. Hm. Well how do I attach it then?
  8. That is possible, but not sure how to integrate it, since we have to use isObjectInACLGroup(server only) and dxDrawText is client-only. I'll leave it to Castillo. Edit: function adminTag(thePlayer) pname = getPlayerName(thePlayer) if getElementType(thePlayer) == "remote admin" then tagText = dxDrawText(pname, x, y) end attatchElement(tagText, thePlayer) end function render() addEventHandler("onClientRender",rootElement, adminTag) end addEventHandler("onClientResourceStart",resourceRoot, render) x = the absolute X coordinate of the top left corner of the text y = the absolute Y coordinate of the top left corner of the text If remote admin doesn't work, simply try replacing it with admin. Not sure if it works. Try testing it.
  9. That means you need a database for it to work, doesn't it?
  10. hi i want some cheese, bacon and some sauce, but not money got pay so make u admin gold yes. No.
  11. o1 = createObject (2976, 2, 2, 2) function objectHit(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (hitElement == o1) then destroyElement(hitElement) end end addEventHandler("onClientPlayerWeaponFire", root, objectHit)
  12. I've read it up on the wiki, you were right, indeed. Sorry for the trouble and waste of time caused. I'm still learning, that isn't an excuse though. Sorry again.
  13. Uh. I told him to replace that with this: triggerServerEvent("ip", getLocalPlayer())
  14. Well, in my noob opinion, he has to write exactly what he wrote above your post. He made a label, he made the server-side script, which gets the IP of the player, and he triggers the IP get function inside the label, so it displays the IP. That seems pretty logic for me. Not sure if it's correct, but it's pretty logic for me. @Blaawee Try the script you just posted and tell us if it works.
  15. I get what you mean, but I'm pretty sure your wrong. Well, I'll just wait for Blaawee's response, to see if it worked. P.S. I know your the advanced scripter and I'm the noob one, but still, I'll sustain my opinion.
  16. So you want him to use triggerClientEvent so he can display the IP in the server-side lua? Why would he do that? I'm pretty sure that he wants to display the IP in a label.
  17. Why Client i'm confused now :@ I know right? I don't get it either. Just try the script you've got now, with my corrections and see if it works.
  18. It's used to trigger a client event? Edit: OH! Your talking about server-side lua. I thought you we're talking about the client-side lua. Yea. Misunderstanding, I understand now, I think. Edit 2: I don't get it. Can you just write a script of it, to demonstrate? I'm just dumb sometimes.
  19. He triggers the event in the client-side lua, with triggerServerEvent... Am I missing something?
  20. He doesn't need the triggerClientEvent. Why would he need it? Also, on line 4, on the client-side script, replace the triggerServerEvent with mine: triggerServerEvent("ip", getLocalPlayer())
  21. I would go with him, for experience. I'm a level 2-3 lua scripter. So kinda over newbie. I'm scripting for another server. A RP one, which is 10x harder than a CnR one. Suggestion: look around the forums, there's some CnR scripts. Someone made a criminal and police job script, right in this section. Look carefully, you might find good scripts.
  22. function ip1( thePlayer ) pIP = getPlayerIP(thePlayer) end addEvent("ip") addEventHandler("ip", root, ip1) This.
  23. Tell him that if he doesn't learn how to script lua like a pro, then you'll tell him to your/his teacher/mother for somethin. Make it up. Usually works with me. My friends did it once. I was scared to death.
  24. Damn it. Well ask your friend, since he can script! Tell him to have fun.
×
×
  • Create New...