Jump to content

Cadu12

Retired Staff
  • Posts

    827
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Cadu12

  1. Please, do not multi-posts. Any errors in debugscript 3?
  2. Cadu12

    Anti vote spam

    I guess it can bugged, player will be unmuted who is spam, insult, etc, when map is started.
  3. hasObjectPermissionTo or isObjectInACLGroup
  4. Topic fechado. Não postar o Valhalla, por que é um roubado, ninguém vai te ajudar.
  5. Go learn by youself. We aren't giving resources for free. About SAES resources is only for his clan, I guess.
  6. Cadu12

    A way?

    function getPlayerFromNamePart(name) if name then for i, player in ipairs(getElementsByType("player")) do if string.find(getPlayerName(player):lower(), tostring(name):lower(), 1, true) then return player end end end return false end function onPlayerCommands ( source, cmd, target ) local targetplayer = getPlayerFromNamePart ( target ) if ( targetplayer ) then local vehicle = getPedOccupiedVehicle ( targetplayer ) if ( vehicle ) then if ( cmd == "blow" ) then blowVehicle ( vehicle ) elseif ( cmd == "fix" ) then fixVehicle ( vehicle ) end end end end addCommandHandler ( "blow", onPlayerCommands ) addCommandHandler ( "fix", onPlayerCommands ) Try that, untested.
  7. É bom faze um novo gamemode, bom trabalho. Estou fazendo um novo gamemode em 2D, chamado Everybody Edits ( everybodyedits.com ).
  8. You dont have to make new custom model, just draw image. I am making my own gamemode with 2D.
  9. Please read topic about scripter: viewtopic.php?f=91&t=26541
  10. Cadu12

    Colors

    http://www.netgfx.com/RGBaZR/
  11. Cadu12

    Hex

    With multi-codes color? If so, this is not possible, you have to make new custom gui.
  12. Cadu12

    Hex

    guiGridListSetItemColor ( Tabla, row, column, unpack ( getPlayerNametagColor ( player ) ) )
  13. https://dl.dropbox.com/u/69022807/functions.xml Feel free to use.
  14. Add line @ 706 in scoreboard: elseif column.name == "ping" then local ping = tonumber ( content ) local r, g if ping < 150 then r = 255 g = ( ping / 150 ) * 255 else r = ( ( 300 - ping ) / 150 ) * 255 g = 255 end dxDrawText( content, topX+theX+s(1), y+s(1), topX+x+s(1+column.width), y+s(11)+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( 0, 0, 0, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI ) dxDrawText( content, topX+theX, y, topX+x+s(column.width), y+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( g, r, 0, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI ) So I made it by myself toady.
  15. Cadu12

    Modinfo

    What do you mean by that? If you want make a player offline with name or serial?
  16. Cadu12

    Modinfo

    Server-side only: local DataPlayer = { } function onPlayerCommand ( player, command, target ) local tp = getPlayerFromName ( target ) if ( target ) then if ( DataPlayer[tp] ) then outputChatBox( getPlayerName(tp) .. " " .. DataPlayer[tp]["filename"] ) for idx, mod in ipairs ( DataPlayer[tp]["list"] ) do local line = tostring ( idx ) .. ")" for k, v in pairs ( mod ) do line = line .. " " .. tostring ( k ) .. "=" .. tostring ( v ) end outputChatBox( line ) end end end end addCommandHandler ( "modinfo", onPlayerCommand ) function onPlayerModInfo ( filename, modlist ) if ( not DataPlayer[source] ) then DataPlayer[source] = { ["filename"] = filename, ["list"] = modlist } end end addEventHandler ( "onPlayerModInfo", getRootElement ( ), onPlayerModInfo ) Not tested yet.
  17. Cadu12

    Modinfo

    I guess you can't use onPlayerModInfo with command. onPlayerModInfo will be triggered when connect server.
  18. Use 'onClientCharacter' event. You can take a look source, resource called 'resedit' in community.
  19. Cadu12

    Why is bad!?

    Please read wiki: In order for the text to stay visible continuously, you need to call this function with the same parameters on each frame update (see onClientRender). Your code is wrong at all.
  20. http://www.w3schools.com/sql/sql_orderby.asp
×
×
  • Create New...