Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. 50p

    Help!!

    For getElementPosition use source since you triggerServerEvent with player element as source.
  2. 50p

    Help!!

    LOL, You want us to help you without showing code and you want people to PM you if they want to help you?
  3. XX3, you may find this useful: https://community.multitheftauto.com/index.php?p= ... ils&id=234 I made it as an example to show people how to make peds that follow you but I also added health bars which can be shown/hidden.
  4. Yes. You need to triggerServerEvent which will then triggerClientEvent to everyone.
  5. You can use TXD Workshop or G-TXD.
  6. It's only heard by player who typed in the command. They can hear it when they type that command.
  7. 50p

    Custom vehicles

    https://wiki.multitheftauto.com/wiki/EngineReplaceModel
  8. 50p

    timer :S

    Remove 1 timer and try again... There is no point of having 2 timers which execute the same function every half second at the same time.
  9. Use MTA:SE to help you with syntax errors.
  10. 50p

    timer :S

    What's the point of 2 timers? Just use one and for the last parameter use a number of how many times you want the timer to call the randomVehColors function... If your timer has interval of 250 then set 3rd param to 112 (1000 / 250 = 4 * 28 = 112) If it's 500 then use 56 (1000 / 500 = 2 * 28 = 56)
  11. 50p

    sql save

    So, you have a chance to make it work. I'm worried that cheaters' weapons aren't synced but getPedWeapon client-side will get these weapons and if you save them then they'll have "cheated" weapons saved. Maybe that's what he meant..
  12. varez, I don't get it why, you take away smaller value from larger value and convert it to positive value... What's the point? Why not simply swap the order and get the same value w/o multiplying negative value by -1? a = (30 - 50) * -1 -- is equivalent to: a = 50 - 30;
  13. 50p

    sql save

    i installed it and now dosnt even save his current You can get all player weapons in client-side script and send them to the server with triggerServerEvent or you can use setElementData which can sync the data but is unsafe.
  14. 50p

    sql save

    Your while loop is infinite. I suggest you use for loop instead.
  15. I'd like to answer your question but I don't get your idea.
  16. 50p

    Script for group

    Yes, you can. You just check what team the player is in when he enters the vehicle and change the colour to whatever team colour is.
  17. Load what into them? If you want to store coords in tables, then just put them in. You can use map files to store coords in them but this is different. But if you mean, take those coords out of the table then you do it like in PAWN: x1, y1, z1 = tab[ 1 ][ 1 ], tab[ 1 ][ 2 ], tab[ 1 ][ 3 ]; x2 = tab[ 2 ][ 1 ]; y2 = tab[ 2 ][ 2 ]; z2 = tab[ 2 ][ 3 ];
  18. Tables are just like arrays in PAWN but more dynamic. tab = { { 1000, 1000, 1000 }, { 1000, 1000, 1000 }, { 1000, 1000, 1000 }, { 1000, 1000, 1000 }, -- etc. }
  19. You can try to disable them with ACL but I'm not 100% sure if it'll work.
  20. 50p

    message script

    Or, https://community.multitheftauto.com/index.php?p= ... ils&id=186
  21. 50p

    cash

    Check "/debugscript 3" command and see if you get an error. I'm pretty sure you get an error saying something like "call to function scoreboardAddColumn failed". If you do get it, I can't help you since I've never managed to call exported functions, even gamemodes like "race" fail to call votemapanger functions so once race is complete, nothing happens.
  22. You can get coords in different ways. One of them is https://community.multitheftauto.com/index.php?p= ... ils&id=124
  23. http://bugs.mtasa.com/main_page.php
  24. This timer will call AutoFix function only once and if this code is not attached to any event, it will be called once after resource starts. I'd suggest to add a command: function AutoFix () -- your code in AutoFix is fine end addCommandHandler( "fixall", AutoFix ) If you want the timer to call your AutoFix function unlimited amount of times every second then use 0 for the 3dr parameter (which is 1 in your code).
  25. 50p

    SQL Question

    It would work varez but unfortunately ALTER TABLE doesn't work in MTA. http://www.sqlite.org/lang_altertable.html It's a bug or "feature" or it's blocked for "security reason". In theory, you could copy the table where you want to add a column, create a new table with a new column and copy all the data from old table (the backup table) to the new one. http://www.sqlite.org/faq.html#q11 But it didn't work either when I tried it long time ago.
×
×
  • Create New...