Jump to content

[DMC]

Members
  • Posts

    165
  • Joined

  • Last visited

Everything posted by [DMC]

  1. If you ask me its better not to trade, then you will keep originality
  2. i dont know what your talking about, can you maybe explain it in english
  3. [DMC]

    Problem

    ok ty varez, now when i do /boom player its destroying me instead of the targer
  4. [DMC]

    Problem

    i dont really see what im overwriting but its still not working, i read what you say and no errors nothing ;S and its not outputting it to the chatbox function findPlayerByName(playerPart) local pl = getPlayerFromName(playerPart) if isElement(pl) then return pl else for i,v in ipairs (getElementsByType ("player")) do if (string.find(getPlayerName(v),playerPart)) then return v end end end end function boomPlayer(playerSource, command, arg1, theVehicle) local playerElement = findPlayerByName(arg1) if playerElement then local name = getPlayerName(playerElement) local theVehicle = getPedOccupiedVehicle (playerSource) local sourceName = getPlayerName(playerElement) blowVehicle ( theVehicle ) outputChatBox (getPlayerName(playerElement).." Has been destroyed by "..getPlayerName(playerSource).."!", getRootElement(), 255, 255, 0, true) end end addCommandHandler("boom", boomPlayer)
  5. [DMC]

    Problem

    Ty to varez i could make this function findPlayerByName(playerPart) local pl = getPlayerFromName(playerPart) if isElement(pl) then return pl else for i,v in ipairs (getElementsByType ("player")) do if (string.find(getPlayerName(v),playerPart)) then return v end end end end function boomPlayer(playerSource, command, arg1, theVehicle) local playerElement = findPlayerByName(arg1) if playerElement then local name = getPlayerName(playerElement) local theVehicle = getPedOccupiedVehicle (playerSource) local sourceName = getPlayerName(playerSource) blowVehicle ( theVehicle ) outputChatBox (""..getPlayerName(playerElement).."Has been destroyed by "..getPlayerName(playerSource).."!", getRootElement(), 0, 0, 5, true) end end addCommandHandler("boom", boomPlayer) but its not working at all, and no errors
  6. haha! that made my day! thanks! hhahaha
  7. [DMC]

    Hello.

    in our server we got a locate Join: Player joined from Country(..) i know him, he joins our server sometimes and he just stole it... (client side) he doesnt got the serverside because its ours
  8. [DMC]

    Resourcebrowser

    When i go to my resource browser the ACL config stuff is gone it just says map, resource, scoreboard (ip/port in browser) can anyone help me
  9. [DMC]

    Hello.

    OMG this is from DMC, FUCK YOU
  10. hey i got some maps maybe we can trade
  11. no lol just rename the zip folder with race- infront of it
  12. [DMC]

    /cash name

    ty but can someoen tell me how i do /cash part of name and not type whole name
  13. [DMC]

    /cash name

    function checkMoney(thePlayer, command, who) if (who == nil ) or who == false then outputChatBox ("ERROR: You must insert a valid player name.", thePlayer, 255, 0, 0, false) else local money = getPlayerMoney(targetPlayerName) local Name = getPlayerName(targetPlayerName) local targetPlayerName = getPlayerFromName (who) outputChatBox("*"..who.." Has $"..getPlayerMoney(who).."",getRootElement(),255,255,0) end addCommandHandler("cash", checkMoney) And yes varez i first thought about it cuz first i had getPlayerMoney(thePlayer) and i know thats just wrong Please any help its saying local money/name has bad arguments
  14. [DMC]

    Heey Dudes.

    ok varez what your saying is true minigoveya added the script in a resource not map and because i got a race server and i know this stuff, it wont change the sky gradient but it will change time/weather if its overriding is set to false in race config you have all the reason the script what DMC Give me work, but, i've to restart that for all maps... dont stay 4ever ;/ what should i and for you mini, Go to Admin panel and then tab resources and search for race, when you find it double click it and search for sky, time settings and set overriding to true im sure this will work because i just tested it myself
  15. [DMC]

    Heey Dudes.

    you know what i mean (fixed)
  16. [DMC]

    Heey Dudes.

    function Miniclient () setWaterColor( 255, 0 , 0 ) -- Sets water to red (r,g,b) setSkyGradient( 0 , 0 , 0 , 0 , 0 , 0 ) -- Sets sky to black (r,g,b - r,g,b) end addEventHandler( "onClientResourceStart", resourceRoot, Miniclient )
  17. srry maybe u can give me those links here again and i will try to think and learn more about lua
  18. function addStatsData() setElementData(localPlayer,"Race Loses", +1) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), addStatsData) Like u did + i tried that before but it didnt work. but im sure it needs to work cuz i tried +1 before and then it worked but now it doesnt anymore
  19. looks complicated function addStatsData() x = getElementData if not nil and not false setElementData (localPlayer,"Race Loses", x+1) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), addStatsData) i tried this
  20. function player_Spawn ( ) local sound = playSound("1.wav",false) setSoundVolume(sound, 2.0) end addEventHandler ( "onClientPlayerSpawn", getRootElement(), player_Spawn ) try this
  21. function addStatsData() setElementData(localPlayer,"Race Loses",0) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), addStatsData) Well im using this to set in a label the amount of DM's lost But when i die it sets to 0 and when i change 0 to 5 it sets to 5 My question is how can i do +1 every time i die
  22. [DMC]

    RACE User Panel

    ye u mi550 no imperio hes not cookie he meant maybe if you are cookie? just eat your yoghurt
×
×
  • Create New...