Jump to content

Paradoxon666

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Paradoxon666

  1. Hello, I'm writing a script that gives you a random reward when you log in, once a day. I use getRealTime() to get the current date and I store it in account data, as player's last login. If the player's last login wasn't on this day, he gets his reward. It's working fine, but if I change the date on my computer (I change it from 8/13 to 8/14) then I can get my reward again. The script was made on serverside. Is this supposed to work like this? How should I solve this problem?
  2. Thank you! I'll check it out asap
  3. Hello, I'm planning to write a paintjob system. I already have a theory, and some of the work is already done, but I'm not sure that I'm doing it right. I involved the following stuff: - shader, engineApplyShaderToWorldTexture (on vehicle) - element data (for vehicle) - png files (the paintjobs) - render target + dxDrawImage When you select a paintjob (on client side, gui menu) it triggers a server side event (client sends the vehicle and the paintjob's id to server) Then server side sets an element data for the vehicle, the data is the paintjob's id. After that it triggers a client side event for all players, where the script applies the shader on the vehicle, creates a render target and uses dxdrawimage with on client render to draw the image/paintjob. It gets the paintjob's id by the vehicle's element data. Is this a correct method, or it's a mess? This is my first project that involves shaders, etc, i'm new in this. Will there be performance loss? how much?
×
×
  • Create New...