Jump to content

montenegro11

Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by montenegro11

  1. Can someone help me? My mta doesn't show any crash logs or anything, it's running in processes but it isn't doing anything and yet another thing my SAMP can't connect anywhere either, but I prefer MTA,downloaded new mta and san andreas, didn't fix it.
  2. If somebody can give me the resource to make STRICT LOGIN PANNEL/automatic ip log in. If you could, I would be very grateful, I tried to make a log in panel and I failed badly.
  3. gate = createObject ( 980, 2404.8999023438, -1659, 15, 0, 0, 90 ) function gateOpen ( ) moveObject ( gate, 2000, 2404.8999023438, -1659, 7 ) end addCommandHandler ( "gso", gateOpen ) function gateClose ( ) moveObject ( gate, 2000, 2404.8999023438, -1659, 15 ) end addCommandHandler ( "gsc", gateClose ) gs1 = createObject ( 975, 2522.8999023438, -1722.1999511719, 13.39999961853, 0, 0, 179.74182128906 ) function gateOpen1 ( ) moveObject ( gs1, 5000, 2515.3999023438, -1722.1999511719, 13.39999961853 ) end addCommandHandler ( "gss", gateOpen1 ) function gateClose1 ( ) moveObject ( gs1, 5000, 2522.8999023438, -1722.1999511719, 13.39999961853 ) end addCommandHandler ( "gsd", gateClose1 ) gs2 = createObject ( 976, 2540.69995917719, -1707.8000488281, 11.5, 0, 0, 270 ) function gateOpen2 ( ) moveObject ( gs2, 3000, 2540.69995917719, -1707.8000488281, 9.1999998092651 ) end addCommandHandler ( "cjo", gateOpen2 ) function gateClose2 ( ) moveObject ( gs2, 3000, 2540.69995917719, -1707.8000488281, 11.5 ) end addCommandHandler ( "cjc", gateClose2 ) Learning, kind of
  4. I can't run automatically resources, so I have to type it /start resourcename or run it on admin panel, I have resources with 3 gates, and I want to combine them all. Here's the script. gate = createObject ( 980, 2404.8999023438, -1659, 15, 0, 0, 90 ) function gateOpen ( ) moveObject ( gate, 2000, 2404.8999023438, -1659, 7 ) end addCommandHandler ( "gso", gateOpen ) function gateClose ( ) moveObject ( gate, 2000, 2404.8999023438, -1659, 15 ) end addCommandHandler ( "gsc", gateClose ) Second: gs1 = createObject ( 975, 2522.8999023438, -1722.1999511719, 13.39999961853, 0, 0, 179.74182128906 ) function gateOpen ( ) moveObject ( gs1, 5000, 2515.3999023438, -1722.1999511719, 13.39999961853 ) end addCommandHandler ( "gss", gateOpen ) function gateClose ( ) moveObject ( gs1, 5000, 2522.8999023438, -1722.1999511719, 13.39999961853 ) end addCommandHandler ( "gsd", gateClose ) Third: gs2 = createObject ( 976, 2540.69995917719, -1707.8000488281, 11.5, 0, 0, 270 ) function gateOpen ( ) moveObject ( gs2, 3000, 2540.69995917719, -1707.8000488281, 9.1999998092651 ) end addCommandHandler ( "cjo", gateOpen ) function gateClose ( ) moveObject ( gs2, 3000, 2540.69995917719, -1707.8000488281, 11.5 ) end addCommandHandler ( "cjc", gateClose ) If somebody can help me, please do so.
  5. I think that it's not good,use "addEventHandler" or "BindKey".Just command it's old junk. my opinion And yeah, command can be an old junk, because I don't know how to make an invisible marker in where I can do that command, so if I'm in LV I can still open the gate in Los Santos, well, STILL ITS NOT PUBLIC so I don't even pay attention on that, I open the gates when I need to.
  6. Look man, my server will never be an PUBLIC SERVER and even if I make one, it will probably be with onMarkerHit and onMarkerLeave and this is the server where I'll soon implement zombie mod that a friend of mine made, and he will teach me how to make zones repellant of zombies, that's what gates are for. I don't want to make a roleplay server, this is a server where four of mine friends come and have fun in editor mode. And yeah, does anybody know why editor glitches resources? I start up gate gategs1 and gategs2 and editor as the last, and all of those resources need to be restarted. And also "automatic" startup "glitches" them aswell mta.config file "doesn't" run them. it runs them but THEY'RE NOT THERE. Like it loads a gate. and it's not there.
  7. Three gates with this script gs2 = createObject ( 976, 2540.69995917719, -1707.8000488281, 11.5, 0, 0, 270 ) function gateOpen ( ) moveObject ( gs2, 3000, 2540.69995917719, -1707.8000488281, 9.1999998092651 ) end addCommandHandler ( "cjo", gateOpen ) function gateClose ( ) moveObject ( gs2, 3000, 2540.69995917719, -1707.8000488281, 11.5 ) end addCommandHandler ( "cjc", gateClose ) I think that I've learnt this. If you could explain how to put all three gates in one script? I know "theoretically" but I'm not so sure that it will work. Let me explain a little: I make those functions and other part, and then I just add down commands and objects. Is it good as that or?
  8. Works perfectly, thanks to you, my test server has now 2 gates. In grove street. I hope I won't mess up next time.
  9. Well, checked it out, I don't know exactly where the gates are, umm. Can you check where are the gates? I probably messed up with the Coordinates again. I'll tell you them, and if you can, adjust my script please. x:25522.8999023438 y:-1722.199951719 z:13.39999961859 Rotation: x: 0 y: 0 z: 179.74182128906 And here's the picture where its SUPPOSED to be: http://i.imgur.com/x5TuRHN.jpg
  10. gs1 = createObject ( 975, 25522.8999023438, -1722.1999511719, 13.39999961853, 0, 0, 179.74182128906 ) function gateOpen ( ) moveObject ( gs1, 5000, 2515.3999023438, -1722.1999511719, 13.39999961853 ) end addCommandHandler ( "gss", gateOpen ) function gateClose ( ) moveObject ( gs1, 5000, 25522.8999023438, -1722.1999511719, 13.39999961853 ) end addCommandHandler ( "gsd", gateClose ) Made it five seconds. Good now? Don't have time to test it, so.. can you just see it if I've done it good?
  11. I'm very new with scripting, and yesterday SolidSnake helped me with scripting gates, now I want to add some more gates, but I don't know how, I mean I know, I added everything, no errors, nothing. But the gates don't appear there. Here's the script, if somebody sees the problem, please say so: gs1 = createObject ( 975, 25522.8999023438, -1722.1999511719, 13.39999961853, 0, 0, 179.74182128906 ) function gateOpen ( ) moveObject ( gs1, 2515.3999023438, -1722.1999511719, 13.39999961853 ) end addCommandHandler ( "gss", gateOpen ) function gateClose ( ) moveObject ( gs1, 25522.8999023438, -1722.1999511719, 13.39999961853 ) end addCommandHandler ( "gsd", gateClose )
  12. gate = createObject ( 980, 2404.8999023438, -1659, 15, 0, 0, 90 ) function gateOpen ( ) moveObject ( gate, 2000, 2404.8999023438, -1659, 7 ) end addCommandHandler ( "gso", gateOpen ) function gateClose ( ) moveObject ( gate, 2000, 2404.8999023438, -1659, 15 ) end addCommandHandler ( "gsc", gateClose ) Final version of gate. Works perfectly, I'm so happy, and I've surprised my friend, he's happy aswell, oh my god I'm so glad.
  13. Yes, and thank you a fudgin lot dude i can't say enough words to thank you, I know the basics of scripting and as you can see, without you I COULDN'T DO BLOODY THING and thank you is there any thing with which I can thank you? Edit: gate = createObject ( 980, 2404.8999023438, -1658, 15, 0, 0, 90 ) function gateOpen ( ) moveObject ( gate, 2000, 2403, -1658, 7 ) end addCommandHandler ( "gso", gateOpen ) function gateClose ( ) moveObject ( gate, 2000, 2403, -1658, 15 ) end addCommandHandler ( "gsc", gateClose ) Fully working gates, thanks to you!
  14. Almost, just one thingy, gotta redo the script, the gates are a little bit too much on right side, so gotta redo it, just to add the numbers on y
  15. And yeah if you could explain what do the numbers 0, 0, 90 do?
  16. COMMAND WORKS SCRIPT WORKS, IF THERE IS A WAY TO MOVE IT ON THE LEFT JUST A LITTLE BIT LIKE NOT A FULL NUMBER BUT LIKE A HALF OF THE NUMBER SO IT LOOKS REALISTIC EVEN THOU IT GOES THROUGH GROUND
  17. Well, I might not know the coordinates but can you edit the script so it goes like this, this is where the gate is supposed to be: x:2403 y:-1658 z:15 I might have messed it up, can you edit the script so it goes like this?
  18. FORGOT TO ADD THE MINUS IM SUCH A NOOBBBBBBB NOW LET ME TRY
  19. Nothing happens, even the gate doesn't appear, and I start the script first of all scripts. Edit: Err, lemme teleport to it, give me a bit though
  20. I really don't know. I really don't know what's going on, let me change the command to gso and gsc gate = createObject ( 980, 2403, 1658, 15 ) function gateOpen ( ) moveObject ( gate, 2000, 2403, 1658, 7 ) end addCommandHandler ( "gso", gateOpen ) function gateClose ( ) moveObject ( gate, 2000, 2403, 1658, 15 ) end addCommandHandler ( "gsc", gateClose ) give me 2 minutes to test it
  21. Yes, let me try to do that again, but I'm not sure that it will fix the problem EDIT: Well, no errors appear, but the gate doesn't open, can you check the script? And yeah, can it be due to too long command?
×
×
  • Create New...