Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. En concreto, no hay nada que podamos hacer, depende absolutamente de la administración del servidor. Cierro el tema.
  2. That "code" is the scoreboard resource, which isn't the cause of the problem, the problem is on the script which is setting the class data.
  3. Castillo

    Playtime

    I would make a single timer to update the time of every player.
  4. GUIeditor resource has DX drawing functions since quite a long time.
  5. Castillo

    help plz

    function login ( _, account ) local country = ( exports [ "admin" ]:getPlayerCountry ( source ) or "Unknown" ) if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( "Everyone" ) ) then outputChatBox( "* ".. getPlayerName ( source ) .." #a5d9f2^(".. getAccountName ( account ) ..") #ffffff Se a conectado . [".. tostring ( country ) .."]" , getRootElement(), 255,255,255, true ) end end addEventHandler ( "onPlayerLogin", getRootElement(), login )
  6. Castillo

    Playtime

    Try debugging the script, add outputs to see what is not working. Also, using a timer for each player is a really bad idea, timers are inefficient.
  7. Castillo

    Shutdown

    I guess that he wants this for some sort of protection for his client-side scripts, that's my opinion.
  8. setWeaponProperty client-side only sets the property of weapon ELEMENTS, if you want to set player weapon properties, then use it server side.
  9. No offense, but what is the point of this? the guieditor resource has this on a much better and more interactive way.
  10. Castillo

    Playtime

    The first argument of "onPlayerLogin" is the previous account, try changing this: function loadPlayTime(account) to: function loadPlayTime ( _, account )
  11. Any error in debugscript?
  12. You downloaded the latest version? what is your server version?
  13. function MarkerC ( ) local veh = getPedOccupiedVehicle ( source ) -- Get the player vehicle. if ( veh ) then -- If he is in a vehicle... local trailer = getVehicleTowingVehicle ( veh ) -- Get the trailer of the vehicle. if ( trailer and getElementModel ( trailer ) == 435 ) then -- If it has a trailer and the trailer model is 435.. local theTeamX = getTeamFromName ( "Without Job" ) if ( theTeamX ) then setPlayerTeam ( source, theTeamX ) setPlayerNametagColor ( source, 255, 255, 255 ) givePlayerMoney ( source, 35000 ) end end end end addEvent ( "MarkerC", true ) addEventHandler ( "MarkerC", root, MarkerC )
  14. Open up the debugscript ( /debugscript 3 ) and see if it outputs something when you start the resource.
  15. You are still creating the GUI elements all the time. Also, why don't you create one single window for all levels and then just change the text with guiSetText?
  16. Use fetchRemote function, it's easier and more efficient.
  17. getPedOccupiedVehicle getVehicleTowingVehicle
  18. Castillo

    Playtime

    If you don't explain the problem, how are we supposed to know?
  19. Why don't you simply use fetchRemote? it's way more efficient if I'm correct.
  20. No, the one xXMADEXx posted, it has both server and client code in the same post.
  21. That error means this: "Failed to connect() to host or proxy." Maybe the IP/port is wrong, remember that you must use the HTTP port, not the actual server port.
  22. Well, it works fine for me, so if you copied the same code, it has to work fine for you too.
×
×
  • Create New...