-
Posts
827 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Cadu12
-
Please, do not multi-posts. Any errors in debugscript 3?
-
I guess it can be script.
-
I guess it can bugged, player will be unmuted who is spam, insult, etc, when map is started.
-
hasObjectPermissionTo or isObjectInACLGroup
-
Topic fechado. Não postar o Valhalla, por que é um roubado, ninguém vai te ajudar.
-
Go learn by youself. We aren't giving resources for free. About SAES resources is only for his clan, I guess.
-
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.
-
É bom faze um novo gamemode, bom trabalho. Estou fazendo um novo gamemode em 2D, chamado Everybody Edits ( everybodyedits.com ).
-
You dont have to make new custom model, just draw image. I am making my own gamemode with 2D.
-
Please read topic about scripter: viewtopic.php?f=91&t=26541
-
https://dl.dropbox.com/u/69022807/functions.xml Feel free to use.
-
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.
-
What do you mean by that? If you want make a player offline with name or serial?
-
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.
-
I guess you can't use onPlayerModInfo with command. onPlayerModInfo will be triggered when connect server.
-
Use 'onClientCharacter' event. You can take a look source, resource called 'resedit' in community.
-
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.
-
Show your meta, please.
-
http://www.w3schools.com/sql/sql_orderby.asp
