Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 22/01/18 in all areas

  1. If you do not know lua, then this is not what you should be learning. Start with lua. And just to be clear, we are not here to donating code to charity Alonemta... so stop begging, it is really a shameful and abusive matter.
    2 points
  2. @iyaad الوظيفة الصحيحة isPedInVehicle الوظيفة الي انت حاطها ممكن تقول شغاله لكن مع مرور الزمن ماراح تشتغل والدليل
    2 points
  3. Community Resources: Released Resources: N/A Upcoming Resources: N/A Planning Resources: N/A To start this off I just got to say everything discussed here could make it's way into any resources but the main point here is to give opinions based on how you want the community resource to be and feature what ever you want. After saying that I would like to welcome you to the first ever topic/thread about us coming together creating a community resource where everything mentioned and agreed upon with the community would be put into a community resource. To get started we shall now come up with a resources that we all probably want to share as a community; example is like a in-game script editor or housing system. Everything is going to be talked about in individual topics I created by me (Only to keep spam down) and the resources would be posted on the MTA Community website under a username I still have to create and will be public after the first resource goes live. Pitch your ideas and for what resource you are talking about in an example post: Current Topic: N/A We'll change the current topic to who ever posts first.
    1 point
  4. The way I would do this, instead of having 2 states (opened/closed), I would have 3 states, opened/closed/moving. When I hit the marker and it's in the moving state, don't do anything, if it's in the open state you close it etc..
    1 point
  5. راحت ايامه ما اعتقد احد يبيه ممكن تكون انت ال 100 مشاهدة ذذ كل المبرمجين هنا محترمين ومب خاينين بفضل الله ما اتوقع ابداً ان يكون فيه مبرمج فاضي 1 حتى
    1 point
  6. if not z == 20 then Is what you're doing but z will probably never be 20 exactly, so do z >= 20 instead. return then you're returning but that doesn't stop the object use stopObject() and then return it. Hope this helps.
    1 point
  7. if isPedInVehicle ( theElement ) then local theVehicle = getPedOccupiedVehicle ( theElement ) setElementPosition( theVehicle, TeleportLocation[1], TeleportLocation[2], TeleportLocation[3]) else setElementPosition( theElement, TeleportLocation[1], TeleportLocation[2], TeleportLocation[3]) end Dessa forma, se o jogador estiver em um veículo, teleporta o veículo e o jogador dentro. Se não estiver em um veículo, teleporta só o jogador.
    1 point
  8. سكربت رائع من شخص رائع ايضاً لكن المشكلة انا لست من محبي الانمي والمانجا
    1 point
  9. Element data - Uses less data - Slow - Target players can't be specified. - Latent variant not available. Trigger event. - Uses much more data - Much faster - Target players can be specified.(data reduction) - Latent variant available. (Not blocking the network) To be honest, I prefer to use the latent trigger, even though it might be very annoying for players with slow internet. But it works for me best, because the players will not teleport so much.
    1 point
  10. Maybe knowing the background of both sides will help you understand why that is. Serverside(code): Running on another computer/server (or application if hosted on the same pc). Clientside(code): Every player(his computer) is called a client. Between two sides there is something called ping. This it the communication delay between the client(your pc) and the server. You must have seen it in games. So if you are executing code clientside, other players will not see the result, because it is are only running on your machine. And if you are executing code serverside, other players will see the changes, because the server tells every player that something has changed. When you use a function serverside there there will be a delay before every client/player will see that something has changed. Which is related to the ping as well as to the internet speed. Also some client functions have the same result as serverside functions. Like setElementPosition or setElementRotation if you use them on a player. The player(you) are streaming your position/rotation to the server. So if you change your position clientside, the server will catch up slowly because of the streaming. But if you use these functions clientside on objects, other players will not see it changed, because objects aren't streamed like players are. Yet, I think serverside should always be in control of position and rotation because it might cause lagg or de-sync.
    1 point
  11. Well some functions can only be used on either client-side or server-side but in your particular situation it simply means that if used client-side the position will be changed only to you, meaning that other players will not see the change. Whereas if used server-side all other players will see you in your new position.
    1 point
  12. أهلا يمكنك برمجة تطبيقات جافا للأندريد عن طريق Android Studio وأيضا يمكنك برمجة تطبيقات أندرويد وأيفون عن طريق لغ سي شارب ومميزتها انك تبرمج مرة واحدة لأكثر من نظام Xamrian وحتى يمكنك برمجة تطبيقات للندرويد بأستخدام لغة فيجوال بيسك !! عن طريق برنامج VB4Android >>>>
    1 point
  13. Thanks all I need one more help i want a script which is count players travel time from marker to marker. start time and end time. the time is stored somewhere and the best time (the shortest) is callable
    0 points
×
×
  • Create New...