Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Well, I don't understand your problem, so I'm asking if that's what your problem is.
  2. What do you mean by "what I put"?
  3. Castillo

    small help

    "country" is returning "SA"?
  4. The problem is that it's not letting you chat even if you don't say one of these commands?
  5. Castillo

    lOGING

    We don't give support with leaked scripts. Topic locked.
  6. Tenes que usar SQLite o MySQL, como yo use ahi.
  7. Maybe DayZ got a modified version with what you want, disabled.
  8. Example of what? just write: "/start killmessages".
  9. Castillo

    Hello !!!

    What is that? it doesn't make any sense.
  10. Just start the resource "killmessages".
  11. Why do you say that? the loop will check if you're on one of these groups.
  12. Well, to do that, you'll have to make your own vehicle names script.
  13. What do you mean by set name? you mean the name displayed on the bottom of the screen when you enter on the vehicle?
  14. That won't work. You must combine it with this function: https://wiki.multitheftauto.com/wiki/ProcessLineOfSight
  15. You can use account data to check if is his/her first login.
  16. Any errors? is the "mirarid.on" element data set?
  17. You're logging out or quitting the server?
  18. function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local playermoney = getPlayerMoney ( source ) local skin = getElementModel ( source ) setAccountData ( playeraccount, "acc", playermoney ) setAccountData ( playeraccount, "skin", skin ) end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) function onPlayerLogin ( _, playeraccount ) if ( playeraccount ) then local playermoney = getAccountData ( playeraccount, "acc" ) local skin = getAccountData ( playeraccount, "skin" ) if ( playermoney ) then setPlayerMoney ( source, playermoney ) end if ( skin ) then setElementModel ( source, skin ) else outputChatBox ( "NO SKIN SAVED!", source ) end end end addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin ) Try that and see what it outputs when you login.
  19. function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local playermoney = getPlayerMoney ( source ) local skin = getElementModel ( source ) setAccountData ( playeraccount, "acc", playermoney ) setAccountData ( playeraccount, "skin", skin ) end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) function onPlayerLogin ( _, playeraccount ) if ( playeraccount ) then local playermoney = getAccountData ( playeraccount, "acc" ) local skin = getAccountData ( playeraccount, "skin" ) if ( playermoney ) then setPlayerMoney ( source, playermoney ) end if ( skin ) then setElementModel ( source, skin ) end end end addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin )
  20. Use the client side event: onClientPlayerWeaponFire it contains a 'hitElement' argument.
×
×
  • Create New...