Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Pues como lo harias con un skin, arma, vehiculo, utilizando las funciones de engine. Ejemplo: addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) local txd = engineLoadTXD ( "rueda.txd", 1073 ) if ( txd ) then engineImportTXD ( txd, 1073 ) end local dff = engineLoadDFF ( "rueda.dff", 1073 ) if ( dff ) then engineReplaceModel ( dff, 1073 ) end end ) Podes obtener modelos de las ruedas de aca: https://wiki.multitheftauto.com/wiki/Vehicle_Upgrades
  2. This resource wasn't working anymore, so you may want to use mine which works fine. https://community.multitheftauto.com/in ... ls&id=5195
  3. There's your problem, seems like you or someone has changed how it worked and set it just for 'Admin' group. addCommandHandler('redo', function( player, command, value ) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Admin")) then local currentMap = exports.mapmanager:getRunningGamemodeMap() --if currentMap then if currentMap then --if not g_ForcedNextMap then outputChatBox('Map restarted by ' .. getPlayerName(player), g_Root, 0, 240, 0,true) if not exports.mapmanager:changeGamemodeMap (currentMap, nil, true) then problemChangingMap() --end end else outputRace("You can't restart the map because no map is running", player) end else outputRace("You are not an Admin", player) end end ) Change the line: if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Admin")) then to: if isPlayerInACLGroup(player, g_GameOptions.admingroup) then
  4. Castillo

    [HELP] Objects...

    You can set an object scale with: setObjectScale I think the map editor let's you change scale aswell.
  5. Castillo

    game-monitor

    Could be a temporal problem, try again later.
  6. Post the content of "race/racevoting_server.lua".
  7. Castillo

    Help Please

    This seems like you've copied parts from race resource and merged it with something else.
  8. It'll create the folder inside the resource you specified on fileCreate, if not specified, then it'll create it on the same one you executed the function. But you can't create a folder outside any resource.
  9. Check if "SuperModerator" is in the setting of race "admingroup".
  10. Castillo

    help script

    You're welcome.
  11. Castillo

    help script

    The problem is that you are kicking the player before output the message, so the element no longer exists, you must switch it, like this: outputChatBox( 'The player '..getPlayerName( target )..' ('..id..') was kicked by admin '..getPlayerName( player )..' ('..getPlayerID( player ) or '???'..')receive 3 warnings (reason: '..reason..')', root, 0, 255, 255 ) kickPlayer( target, player, reason );
  12. Destrui el proyectil con destroyElement, usa el evento: onClientProjectileCreation y despues creas otro con: setTimer -- Para los 2 segundos createProjectile
  13. "GetPlayerDatabaseAccountData" does a MySQL query, right? that's what causes the lag.
  14. There's a missing part, the OOP part.
  15. Podrias cancelar el proyectil y crear otro en 2 segundos.
  16. We don't take requests here, you must learn to do it by yourself or pay someone to do it for you. You can use the slothbot resource which let's you create bots, then make the rest.
  17. Castillo

    Question

    viewtopic.php?f=91&t=52867&p=516237
  18. Castillo

    Question

    Someone else already asked for this, and I helped him, search the forums for the topic.
  19. Take an screenshot of how does it look.
  20. I don't understand what do you mean.
×
×
  • Create New...