Jump to content

FatalTerror

Members
  • Posts

    304
  • Joined

  • Last visited

About FatalTerror

  • Birthday 25/01/1998

Details

  • Gang
    AMG
  • Location
    France
  • Occupation
    Developer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

FatalTerror's Achievements

Prankster

Prankster (22/54)

3

Reputation

  1. Kinda cool. Good work.
  2. Just tried that and works very good. Thanks for your help guys.
  3. Hi there, I've a problem when I attach two vehicles using attachElements. The camera is strangely placed and I dunno how fix it, dunno even if it's possible. As you can see in the screen, I've two vehicles who are attached. When I drive the parent vehicle, the camera is zoomed and it's unplayable. I've searched for camera collision or smth like that but nope, nothing. Someone have an idea?
  4. Hello, I think that design is a bit too much dark for a website. The dark is kind of sad For me, something who would have colors & white would be better, more friendly like that sketch I've just made for you: (the full image: http://puu.sh/cEph0/63a48d5023.png) Don't you agree? Regards, FatalTerror.
  5. Hello, Sorry for the double post, just to post a video of the actual state of developement who is more "clean" than the previous one. I also have a question and I hope you can answer me, as you can see on the video, the player (aka CJ) is very dark compared to the other elements like the road. Anyone know why or have a solution ? FatalTerror.
  6. Hi, There is an extra ")" line 3, the function is wrong. It's getElementsByType, and make sure that "if T == 1 then" is true. And why don't you use getDistanceBetweenPoints3D ? That would be more logic don't you think ?
  7. Hold on First post updated, check it for informations. FatalTerror
  8. That doesn't help me enough. To explain a bit more, I've a client render who check the cursor position every frame. The problem is: even if I'm in another window and lost the focus, it still check for the cursor position in the MTA window. Do you understand ?
  9. Greetings, I wanna know if there is any way to detect if the player lost the focus with the MTA window (game). The function isMTAWindowActive returns true if we have the ESC menu active but not the game itself. Thanks.
  10. Why you waste your time to create the ''same'' thing as in community? god.. To learn? This looks useless for you, but for him it's a lot of work. Learn by doing is the best way to learn. Keep going Bilal
  11. You can also edit your previous topic instead of creating a new one
  12. Thats why you should use getRealTime instead.
  13. Hi, First, the function that you're trying to call seems to be undefined. You want to get the number of active players, I see also that you have a function getActivePlayers who returns an array of the active players. If you want to get the number of active players you can do like this: if(#getActivePlayers() <= 1)then Second, If I understood right you want to end the map when the last player reach the Hunter. If you read the Wiki, you will see that the race gamemode gives you some usefull events like this one: onPlayerPickUpRacePickup int/string pickupID, string pickupType, int vehicleModel (source: https://wiki.multitheftauto.com/index.ph ... ource:Race) That events actives himself when a player pick up a racepickup like nitro, vehiclechange or repair. So, for your script, what you need to do is: when we have 1 active player, we add the event using addEventHandler per example. If the event is activated, we check if the pickup is the hunter pickup like this: if pickupType == "vehiclechange" and vehicleModel == "HUNTERID" then If this is right, then you can call the function RaceMode.endMap() to end the map. Hope that helps you. Regards.
×
×
  • Create New...