Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Is not hard to go to "Admin/server/admin_server.lua" and search for "next". executeCommandHandler("nextmap", source, mapName) That's how it works.
  2. "race/rankingboard_client.lua".
  3. You're welcome. Edit: Copy the script again, "onClientPlayerWasted" doesn't has a "ammo" argument.
  4. function wasted ( killer, killerweapon, bodypart ) if ( killer ) and ( killer ~= source ) then local sound = playSound("sounds/1.ogg") setSoundVolume(sound, 1.5) if (bodypart == 9) then local sound = playSound("sounds/2.ogg") setSoundVolume(sound, 1.5) end else local sound = playSound("sounds/3.ogg") setSoundVolume(sound, 1.5) end end addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted)
  5. If race cannot start because "killmessages" resource is missing, then it mean's you have a problem with "killmessages", maybe duplicated?
  6. local weapons = {[27] = true, [24] = true, [30] = true} -- Aqui agrega el ID de las Armas que quieres que sean de fuego en este caso Spaz, DE, Ak4. function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapons[weapon]) then createFire(hitX, hitY, hitZ, 10) end end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc)
  7. Luego de cambiar el tipo de script, dale /refresh en el chat y reinicia el recurso.
  8. Y de ahi aprenden otros, la verdad es que me parece egoista tu comentario. Ya que la mayoria del script que posteo lo cree yo .
  9. DX Drawing functions requires [url=https://wiki.multitheftauto.com/wiki/OnClientRender]https://wiki.multitheftauto.com/wiki/OnClientRender[/url] to work.
  10. @sora: In that video I see that the nitro color is still blue (default), so I guess he's talking about nitro "pickups".
  11. Es facil, solo tenes que cambiar type="script" por type="gamemode". "iSoRen" description="Random and replace skin" type="gamemode" />
  12. Ghost mode = Modo fantasma God mode = Modo dios. Para congelar un element usa: setElementFrozen Para modo dios tenes que cancelar el evento: [url=https://wiki.multitheftauto.com/wiki/OnClientPlayerDamage]https://wiki.multitheftauto.com/wiki/OnC ... ayerDamage[/url]
  13. Tema cerrado a peticion del autor.
  14. You're welcome. Topic locked.
  15. Default race death list uses GUI-labels, to use that function you need to convert it to DX drawing.
  16. Castillo

    BankMoney

    The only way is scripting it by yourself, you'll not find everything you need on the web.
  17. Eso no tiene sentido. No se que intentas hacer, pero ahora no puedo ayudarte. P.D: Me parece que ya te ayude bastante. P.D2: Ya mire la serie entera del 2005 unas 4 veces (las 6 temporadas).
  18. Decis borrar los datos de la grid list? si es asi, usa: guiGridListClear
  19. Usa: onClientGUIClick
  20. Estudia el script para agregar los datos del mapa.
  21. So, I guess you mean a table with team names and skins? Like this: local skins = { ["Team 1"] = 299, ["Team 2"] = 288, } function setMyTeam( player, cmd, ... ) local name = table.concat({...}, " ") if (name and name ~= "") then local team = getPlayerTeam( player ) if setPlayerTeam ( player, getTeamFromName( name ) ) then setElementModel (player, tonumber(skins[getTeamName(getPlayerTeam(player))]) or 0) outputChatBox( "Your team now is "..getTeamName( getPlayerTeam( player ) )..".", player, 0, 255, 0 ) else outputChatBox( "Access Denied.", player, 255, 0, 0 ) end else outputChatBox( "SYNTAX: /changeteam [team name].", player, 255, 0, 0 ) end end addCommandHandler ( "changeteam", setMyTeam )
  22. Castillo

    Spawn help

    Ok, I found the error, copy my script again, it should spawn you.
  23. What part don't you get? "team" is not a SKIN MODEL.
×
×
  • Create New...