Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. getPlayerMoney client side only returns the money of the local player.
  2. Castillo

    Edit boxes

    No, the text will also be invisible.
  3. You must use a table.
  4. Castillo

    RPG

    Search on the community.
  5. Castillo

    Imposter.

    There's some proof. You can clearly see how he's asking for his password.
  6. local atmidquery = dbQuery ( connection, "SELECT COUNT(*) FROM atms" ) local atmidpoll = dbPoll ( atmidquery, 500 ) if ( atmidpoll ) then atmid = tonumber ( atmidpoll [ 1 ] [ "COUNT(*)" ] ) + 1 else atmid = 0 end Try it.
  7. I don't know if you want to take my word for it, but I've sold couple of scripts to him, I had no problems at all.
  8. Proba fijandote que devuelve "projType".
  9. You can set the game speed.
  10. Castillo

    help

    See what "numrows" is returning.
  11. Te falta un 'end' para cerrar la funcion.
  12. if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer) ) == "Reporteros de CNN" ) Ahi te falta "then" a lo ultimo de la linea.
  13. Closed_Gates_1 = createObject ( 986, 123.599998474120, 1931.800048828100, 15.500000000000, 0, 0, 270 ) addCommandHandler ( "OG1", function ( Open_Gates_1 ) if isAccountInGroup ( { "Owner", "Admin", "Vip" }, getAccountName ( getPlayerAccount ( Open_Gates_1 ) ) ) then setTimer ( function ( ) moveObject ( Closed_Gates_1, 5000, 123.59999847412, 1931.800048828100, 10.500000000000 ) end , 1000, 1 ) else Err_Msg ( "[iNFO]: You have no acces to that command.", Open_Gates_1 ) end end ) addCommandHandler ( "CG1", function ( Close_Gates_1 ) if isAccountInGroup ( { "Owner", "Admin", "Vip" }, getAccountName ( getPlayerAccount ( Open_Gates_1 ) ) ) then setTimer ( function ( ) moveObject ( Closed_Gates_1, 5000, 123.59999847412, 1931.800048828100, 15.500000000000 ) end ,1000, 1 ) else Err_Msg ( "[iNFO]: You have no acces to that command.", Close_Gates_1 ) end end ) function isAccountInGroup ( groups, account ) local theGroup = false for _, group in ipairs ( groups ) do if isObjectInACLGroup ( "user.".. account, aclGetGroup ( group ) ) then theGroup = group break end end return theGroup end
  14. Ahi esta el problema, editaste algo que no tiene nada que ver.
  15. Castillo

    pick up

    Eso es porque 'source' es el pickup que usaste.
  16. It'll be in a future release if I'm right.
  17. You can use the following function: fetchRemote
  18. Castillo

    pick up

    Pusiste alrevez los argumentos en addEventHandler, "policepickup" tiene que ir donde pusiste "pickuphit" y "pickuphit" tiene que ir donde pusiste "policepickup".
  19. Change this line: setTimer(processSpawnStart, 2000, 1, source) to: setTimer ( processPlayerSpawn , 2000, 1, source )
  20. Castillo

    pick up

    Quita esto: "giveplayerweapon".
  21. You can't do it that way, you can use this function I just cooked up for you though: function isAccountInGroup ( groups, account ) local theGroup = false for _, group in ipairs ( groups ) do if isObjectInACLGroup ( "user.".. account, aclGetGroup ( group ) ) then theGroup = group break end end return theGroup end
  22. I don't really understand what are you trying to do.
×
×
  • Create New...