Jump to content

Matubo

Members
  • Posts

    28
  • Joined

  • Last visited

Matubo's Achievements

Advanced Member

Advanced Member (8/54)

0

Reputation

  1. Matubo

    Train Bug

    The righthanded track DOES NOT exist in northern part of SA. It circles that crappy way between LS-> point 1 -> SF (see first secreen) and doesnt exist in LV and the north. So all tests done. If devs need some more info on the point. Just ask. Something should be done on that issue
  2. Matubo

    Train Bug

    Here is the second experiment, I promised. Now the train was spawn also in LS, but on the lefthand track of the rail. Also heading north (counter-clockwise move around the country). As you can see on map this track is much better to use, than the righthand one. It has only two gaps, but covers almost complete country railway. PS btw, I cant spawn a train to move "clockwise".. They all spawn only one-way: CCW. Any one can?
  3. Matubo

    Train Bug

    I made some experiments recently and got some results on it. This is a train course on picture, when spawning a train in Los Santos on righthand track heading North. The arrow on map shows the direction of train move. And the track is righthanded regarding this direction. 1: this is the point where the train goes out of rail tracks and runs in wilderness The train goes through the country on the same Z-coord. So it runs underground under the mesh, it flies in the sky. Behaves weird so to say 2: this is the point in SF where the train again stands on rail tracks and goes to LS 3: this is the point of "no activity", geographically its the point where trains stop in singleplayer, when CJ is blocked in LS. In this point the train can be spawned, but it doest go ahaed, it can only move backwards away from LS. On the tracks between these 1,2,3 points the train goes smoothly. And what happens to the righthand track after the point 1? Well in near neigbourhood there is NO virtual track on it. Trains spawn only om lefthand track. As concerns LV and neighbourhood, I didnt experiment there yet. I just draw the way of LS train on the righthand track.
  4. Me too. That is why, I post here And, being a hardcode programmer myself, I have an inside feeling that something wrong happens on a player object itself. Some triggers, or smth. I dont know the algorithms, implemented in MTA, but there obviously should be such handlers on objects. And one of them crashes after these manipulations. One of those, who handle car interactions. Thats are just my thougts. No more.
  5. This is not the point of the issue. These errors were posted by me, to maybe help developers pinpoint the root of the problem. This is just an additional info.
  6. This seems to work. Thank you. But there goes next problem. Let me describe you this malfunction: Firstly, here is the event declaration and event-function: function onVEnter( player, seat, jacked ) local is_admin_car = getElementData(source, "admin_car") outputChatBox ( "Function is called..." ) if is_admin_car == "1" and not PlayerHasPower(player) then outputChatBox ( "Filter worked..." ) cancelEvent() end end addEventHandler( "onVehicleStartEnter", root, onVEnter) Here how it goes. I join the server as a simple player, I spawn in the game and approach the car. I press "enter the vehicle" button and I receive: "Function is called... Filter worked...". How nice.... Yet everything worked. Now I open the console and see: "Failed to enter/exit vehicle - id: 1" Then I try to seat down second time, I cant. But now I receive: "Failed to enter/exit vehicle - id: 2". Third, fourth, fifth attempts give me the same: "Failed to enter/exit vehicle - id: 2". Well, thats odd but not yet somehow informational. The script worked somehow till that moment, cause the simple player cound not enter the car. The interesting part goes next: I login as Admin. I try to seat in a car, I receive only "Function is called..."... but I cant. I open console and see: "Failed to enter/exit vehicle - id: 0" I try to seat the second time, and now I DONT receive ANYTHING. Function didnt call at all. I open console and see: "Failed to enter/exit vehicle - id: 7" Every time now I recevie only: "Failed to enter/exit vehicle - id: 7" on every attempt. But thats not all. I logout Admin acc, but still function doesnt call and "Failed to enter/exit vehicle - id: 7" occures. And after that the player CANT enter ANY CAR in the world, till he reenter the server. So here are the points in brief: - when player is a simple player everything works somehow fine, except those errors in console - after login as Admin, first try calls the function but admin doesnt seat in a car - other attempts doesnt even lauch an event function or event itself, cause player cant enter any car till he rejoins, even after logout to simple player Something wrong goes with this cancelEvent()... Or something. Need help. I cant handle this myself.
  7. Well, I dont need to jump around "hasObjectPermissionTo" after you said that this is not the point. I just want to make this filtering mechanism. I dont know how, thats why I'm here. Any advise, help, explanations are welcome. Once more, the idea in brief: I create a car. I want only Admins to have permission to enter it. In my idea in event of "onVehicleStartEnter" there should be two conditions in the verifications: - is this car should be checked at all. In other words is this car has "admin car" flag "on" or "off" - is the player is a simple player or an Admin If flag is true and player is not an Admin then "cancelEven()" The first condition is already done by me. The second - is the topic of this thread.
  8. Can you show me how to access this custom data member? And I didnt clearly catch, how this member can be used to filter plyers. As I understand this flag will indicate "can anyone enter any vehicle". But as I wrote before, I wanted to filter just one precise vehicle. I need more specific filter than a global flag. If you were so kind to explain how I can arrange the handling of data members like "resource.YourResourceNameHere.canEnterVehicles", this would be great.
  9. I see your point. Thanks. But nevertheless your type of check doesnt work. I made several experiments and they show that everyone have the permission to "funtion.banIP". Like: local can = hasObjectPermissionTo( player, "function.banIP") if can then outputDebugString("He can...", 3) else outputDebugString("He cant...", 3) I tried: local can = hasObjectPermissionTo( player, "function.banIP") local can = hasObjectPermissionTo( player, "function.banIP", false) local can = hasObjectPermissionTo( player, "function.banIP", true) The result was always: [iNFO] He can... Regardless of players state. Was it a guest or a logged in player with Admin rights. The function.banIP is declared in "Moderators" ACL, where coomon players dont have access. So I guess the point is in incorrect function behaviour, or I dont understand something...
  10. I think this should sound like: function onVEnter( player, seat, jacked ) local is_admin_car = getElementData(source, "admin_car") if is_admin_car == "1" and hasObjectPermissionTo ( player, "function.banIP", false) then cancelEvent() end end addEventHandler( "onVehicleStartEnter", root, onVEnter) Well, this should be a trick. But is there any standard tools to make these checkings more standardized? And where can I find the list of those built-In data members of an element by types? Like this one: "function.banIP". As far as I understand this is a member function of an elementtype "player". And for "vehicles", "blips", "markers" etc?
  11. The task is: to allow only Admins to enter a specific Car. I've created a car in MAP file. Created a Flag that this one car is for Admins only. A redirect its value to the IF statement in EVENT function, but I cant check if the entering Player is admin. Generally speaking: function onVEnter( player, seat, jacked ) local is_admin_car = getElementData(source, "admin_car") if(is_admin_car == "1" and [RESULT OF ADMIN CHECK HERE]) then cancelEvent() end end addEventHandler( "onVehicleStartEnter", root, onVEnter)
  12. Matubo

    Admin Commands

    Yes, it would be nice to know how to use console admin commands, cause BAN from admin panel - crashes server. What are the commnds? Where to type them in? What is their syntax? And what is their prefix to become a command?
  13. This information is not complete. There are only basic infos of starting server, but not the use and maintenance by Admin. As concerns gamemodes, there are only some lists of commands, but not their usage. So to say: "read it and know it". But how server admin should use them? Its completely on his own to find out. But this IS the matter of how-tos, when devs share their knowlege with end users about their projects behaviour. This is what I meant, when wrote about working with documentation. More specific infos about usage wpould be great help for newbie users.
  14. I'm not trying, I stopped that server, by setting its tag to 0 (as you write in WIKI) I figured out some answers by myself: Q3: unzipping every file to its own subdir in web folder do the job, all works fine Q4: when unzipped to subdirs, all files are downloaded as necessary. You, guys done a great work, but you should do the same work with your public How-Tos and other documentation. I figured out that before starting any "themed" maps for stealth, assault, Capture the Vehicle etc., I must change the gamemode for this "theme". But I didnt read this anywhere. And With that issue I have a question: how can I start a server with a "themed" map? What should I load in resource block of server config? For Example: I want to the map "sth-carrier" to load on srvser startup as default? The simple makes only the black screen. After that I should login as Admin, change mode to "stealth" manually, then manually load that map with changemap. behave even more strangely, it shows the beginning of a map, where carrier is docked and thats all, none of the scripts are working.
×
×
  • Create New...