Jump to content

#Paper

Members
  • Posts

    568
  • Joined

  • Last visited

Everything posted by #Paper

  1. #Paper

    Money Drop

    How can i make that when a players die it releases some money on the floor and if a player take this take $?
  2. #Paper

    mta server list

    No, maybe it is a special file compiled whit a special compilator readable just from the MTA server list...
  3. #Paper

    mta server list

    where u downloaded it?
  4. #Paper

    Betting D:

    ty bro, i'll try
  5. #Paper

    Betting D:

    <_< thanks all for help...
  6. #Paper

    tables

    and how can i use a SS variable in CS? D:
  7. Hi All! Today i want to introduce my new WIP team deathmatch mode: JustFight Gamemode 1. Introduction 2. Pictures 3. Video 4. Stuffs 5. Archievments List 6. Server 1. Introduction: This is a team deathmatch mode, based on the original one, but whit a lot of bugs fixxeds and better graphic, whit other interesting stuffs. 2. Pictures: There aren't a lot of things to show but: If u don't see it click ----> http://imageshack.us/g/824/gtasa2011071718114642.jpg/ 3. Video: Soon 4. Stuffs: Done things: 1. Better Graphic 2. New spawning effect 3. Save stats (Kills, Deaths) 4. Add Money ($) 5. Archievments 6. Mine system (/dropmine - 1000$) 7. Weapons Shop (/shop) 8. Level system 9. Hide radar 10. Hide nametags 11. Gore mode 12. HD Sounds for weapons 13. Kill Counter (HeadShots, Leg, Arm, Ass) (Thanks to Buffalo!) 14. Fix Kills Per Team (Thanks to BinSlayer1!) 15. Spectate your killer when wasted To do things: 1. Money Drop System Any suggestion? Post it! 5. Archievments List: 1. First Kill 2. 10 Kills 3. 20 Kills 4. 40 kills 5. 80 Kills 6. 160 Kills 7. First Death 8. 10 Death 9. 20 Death 10. 40 Death 11. 80 Death 12. 160 Death 13. Reconnect and Login 14. Find secret command 15. Get 1000$ 16. Get 2000$ 17. Get 4000$ 18. Get 8000$ 19. Get 16000$ 6. Server: As soon the server for try this mode will be opened! ------------------------------------------------------------------------------------------------ Do you want help me? skiper964 (Add me on skype) I've already bought a server, when i/we finish the mode the server will be opened!
  8. #Paper

    tables

    If i have a table defined as "gameTeams = {}" in SS and then i insert some parameters (always in SS), can i use this one in CS? (whit all defined parameters)
  9. #Paper

    texlib :D

    and how can i put as object's name the triggered teamName?
  10. #Paper

    texlib :D

    i have this func: function showKills(text, y, modify, teamName) teamName = dxText:create( text, 15, y, false, 'bankgothic', 0.55, 'left') end addEvent ( "showKillsForTeam", true ) addEventHandler ( "showKillsForTeam", getRootElement(), showKills ) the dxText name is setted "teamName" or is setted by the name that i triggered?
  11. #Paper

    Betting D:

    I didn't post whole code: it is
  12. #Paper

    Betting D:

    onPlayerEx doesn't work: bets = {} function onPlaceBet (playerSource, cmd, guy, amount) if isGuestAccount(getPlayerAccount(playerSource)) == false then if tonumber(amount) >= tonumber(getAccountData(getPlayerAccount(playerSource), "cash")) then _outputChatBox("#0fc0fcNot enough Cash!", playerSource) else if tonumber(amount) < 1000 and tonumber(amount) > 100 then if not guy or not amount then _outputChatBox("#0fc0fcSyntax: /#0fc0fcbet [playerID] [betAmount]", playerSource) else if getPlayerFromParticalName(guy) then bets[playerSource] = {getPlayerFromParticalName(guy), tonumber(amount)} else _outputChatBox("#0fc0fcInvalid Player!", playerSource) end addStat(getPlayerAccount(playerSource), "cash", -tonumber(amount)) _outputChatBox("#ffffff"..getPlayerName(playerSource).." #0fc0fcbetted "..amount.."$ on #ffffff"..getPlayerName(getPlayerFromParticalName(guy)).."!", getRootElement()) end else _outputChatBox("#0fc0fcMin. amount is 100$ and max amount is 1000$!", playerSource) end end end end addEvent("onRaceStateChanging") function removeCmd (state) if state == "Running" then _outputChatBox("#0fc0fcBets Closeds!", getRootElement()) removeCommandHandler("bet", onPlaceBet) end end addEventHandler("onRaceStateChanging",getRootElement(),removeCmd) addEvent("onGamemodeMapStart") function addCmd () _outputChatBox("#0fc0fcPlace now your bets: /#0fc0fcbet [thePlayer] [betAmount] ", getRootElement()) addCommandHandler("bet", onPlaceBet) end addEventHandler("onGamemodeMapStart", getRootElement(), addCmd) function onPlayerEx (theWinner) for player, bet in ipairs(bets) do if not bets == nil and isElement(player) then if bet[1] == theWinner then outputDebugString("Winning bet from:".. getPlayerName(player)) if isGuestAccount(getPlayerAccount(player)) == false then addStat(getPlayerAccount(player), "cash", bet[2]*2) _outputChatBox("#0fc0fcYour bet won: "..(bet[2]*2).."$ earned!", player) end end end end bets = {} end P.S: theWinner in onPlayerEx is called by the win function P.P.S: _outputChatBox is a custom function, don't worry
  13. Here is addEventHandler ( "onClientRender", g_Root, function() -- Hideous quick fix -- for i,player in ipairs(g_Players) do if player ~= g_Me then setPlayerNametagShowing ( player, false ) if not nametags[player] then nametag.create ( player ) end end end if bHideNametags then return end local x,y,z = getCameraMatrix() for player in pairs(nametags) do while true do if not isPedInVehicle(player) or isPlayerDead(player) then break end local vehicle = getPedOccupiedVehicle(player) local px,py,pz = getElementPosition ( vehicle ) local pdistance = getDistanceBetweenPoints3D ( x,y,z,px,py,pz ) if pdistance <= NAMETAG_DISTANCE then --Get screenposition local sx,sy = getScreenFromWorldPosition ( px, py, pz+0.95, 0.06 ) if not sx or not sy then break end --Calculate our components local scale = 1/(NAMETAG_SCALE * (pdistance / NAMETAG_DISTANCE)) local alpha = ((pdistance - NAMETAG_ALPHA_DISTANCE) / NAMETAG_ALPHA_DIFF) alpha = (alpha < 0) and NAMETAG_ALPHA or NAMETAG_ALPHA-(alpha*NAMETAG_ALPHA) scale = math.evalCurve(maxScaleCurve,scale) local textscale = math.evalCurve(textScaleCurve,scale) local textalpha = math.evalCurve(textAlphaCurve,alpha) local outlineThickness = NAMETAG_OUTLINE_THICKNESS*(scale) --Draw our text local r,g,b = 255,255,255 local team = getPlayerTeam(player) if team then r,g,b = getTeamColor(team) end local offset = (scale) * NAMETAG_TEXT_BAR_SPACE/2 --dxDrawText ( getPlayerName(player), sx, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), textscale*NAMETAG_TEXTSIZE, "default", "center", "bottom", false, false, false ) dxDrawText ( getPlayerName(player), sx + 1, sy - offset + 1, sx + 1, sy - offset + 1, tocolor(0,0,0,255), textscale*NAMETAG_TEXTSIZE, "bankgothic", "center", "bottom", false, false, false ) dxDrawColorText( getPlayerNametagText(player), sx, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), textscale*NAMETAG_TEXTSIZE, 'bankgothic', 'center', 'bottom' ) --We draw three parts to make the healthbar. First the outline/background local drawX = sx - NAMETAG_WIDTH*scale/2 drawY = sy + offset local width,height = NAMETAG_WIDTH*scale, NAMETAG_HEIGHT*scale dxDrawRectangle ( drawX, drawY, width, height, tocolor(0,0,0,alpha) ) --Next the inner background local health = getElementHealth(vehicle) health = math.max(health - 250, 0)/750 local p = -510*(health^2) --local r,g = math.max(math.min(p + 255*health + 255, 255), 0), math.max(math.min(p + 765*health, 255), 0) dxDrawRectangle ( drawX + outlineThickness, drawY + outlineThickness, width - outlineThickness*2, height - outlineThickness*2, tocolor(178,178,178,0.4*alpha) ) --Finally, the actual health dxDrawRectangle ( drawX + outlineThickness, drawY + outlineThickness, health*(width - outlineThickness*2), height - outlineThickness*2, tocolor(r,g,b,alpha) ) end break end end end ) function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, alignX, alignY) if alignX then if alignX == "center" then local w = dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) ax = ax + (bx-ax)/2 - w/2 elseif alignX == "right" then local w = dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) ax = bx - w end end if alignY then if alignY == "center" then local h = dxGetFontHeight(scale, font) ay = ay + (by-ay)/2 - h/2 elseif alignY == "bottom" then local h = dxGetFontHeight(scale, font) ay = by - h end end local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), 255) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), 255) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) end end
  14. I saw you, what ws you doing?
  15. and what's ur mta 1.1 server name?
  16. #Paper

    Hunter Alert

    in mine script there is the img part... .-.
  17. #Paper

    Hunter Alert

    addEvent("onPlayerPickUpRacePickup", true) function onHunter(pickupID, pickupType, vehicleModel) if pickupType == "vehiclechange" and vehicleModel == 425 then outputChatBox('[HUNTER] '..getPlayerName(source)..' has reached a Hunter!',getRootElement(),255,0,0) image = guiCreateStaticImage( 0.2, 0.1, 0.5, 0.1, "hunter.png", true ) end end addEventHandler("onPlayerPickUpRacePickup", getRootElement(), onHunter) function HNEnd() setTimer(guiSetVisible, 2000, 1, image, false) end addEventHandler("playHunter", getRootElement(), HNEnd) Put this script in Server side, idk if it works, test
  18. #Paper

    Hunter Alert

    what's the problem?
  19. /debugscript 3 and show us the errors
  20. What's the problem? Where the func doesn't work? Type /debugscript 3 and see the errors...
  21. #Paper

    Admin panel

    i use this revision...
  22. is there a function like this for get all accounts stored in the server?
  23. #Paper

    Admin panel

    Ye, i know it, any idea to solve it?
×
×
  • Create New...