Sendy

Members
  • Content Count

    74
  • Joined

  • Last visited

Community Reputation

5 Neutral

About Sendy

  • Rank
    Transformer

Details

  • Gang
    *STC*

Recent Profile Visitors

161 profile views
  1. Sendy

    [Sell]Quest Diamonds

    https://www.mta-resource.ru/load/resource/id/4721
  2. Sendy

    [HELP] Unlimited Money

    must work.. /debugscript 3 ?
  3. Sendy

    Warp player to

    addCommandHandler("easr", function() players = getElementsByType("player") for i,v in ipairs(players) do setElementPosition(v, posX, posY, posZ) end end)
  4. Sendy

    Looking for an in-depth tutorial on ACL

    7 years
  5. Sendy

    My code doesn't work :(

    function check ( player, seat, jacked ) if getElementData(source, "policeman") == true then if getElementData(source, "owner") == getAccountName(getPlayerAccount(player)) then else cancelEvent() outputChatBox("You need to be a Policeman", player) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), check ) function setcop(player, cmd) setElementData(getPedOccupiedVehicle(player), "policeman", true) setElementData(getPedOccupiedVehicle(player), "owner", getAccountName(getPlayerAccount(player))) outputChatBox("The Policeman:"..getPlayerName(player), player) end addEventHandler ( "onVehicleEnter", getRootElement(), setcop )
  6. Sendy

    My code doesn't work :(

    Post the code..
  7. Sendy

    My code doesn't work :(

    Code?
  8. Sendy

    help in skills

    delete first setPedStat
  9. Sendy

    [HELP]Shop system won't save money

    server-side -> setPlayerMoney() use triggerServerEvent() when you buy weapon
  10. Sendy

    help for my boss

    function boss3 ( ) NemesisLosSantos = exports [ "slothBot" ]:spawnBot ( 1182.7412109375, -2036.556640625, 69.0078125, 90, 110, 0, 0, nil, 34,"waiting", true ) exports.extra_health:setElementExtraHealth ( NemesisLosSantos, 7000 ) outputChatBox ("#1DF30BEvento: El #FC0303BOSS Sniper Zombie #1DF30Bha vuelto a la vida. Ciudad Los Santos", getRootElement(), 255, 255, 255, true ) outputChatBox ("#1DF30BEvento: Premio #FC0303$20.000 #1DF30BPara El Player Que Mate Al Boss!",getRootElement(), 255, 255, 255, true ) Blip = (createBlipAttachedTo ( NemesisLosSantos, 23 )) setElementData ( NemesisLosSantos, "bossls", true ) end boss3() addEvent("onBotWasted",true) addEventHandler("onBotWasted",getRootElement(), function (killer) if (source == NemesisLosSantos) then givePlayerMoney(killer,20000) --- dinero al matarlo -- killerName = getPlayerName(killer) triggerClientEvent(killer,"onShowMoney2",killer) weapon = getPedWeapon(killer) wr, wg, wb = getPlayerNametagColor(killer) exports.killmessages:outputMessage ( {killerName,{"padding",width=3},{"icon",id=weapon or 0},{"padding",width=3},{"color",r=125,g=0,b=0}," *[Sniper Zombie]"},getRootElement(),wr,wg,wb ) -- killmesagge -- outputChatBox ( getPlayerName( killer ) .. " #1DF30BHa matado el #FC0303Boss Sniper #1DF30BRecompensa de #FC0303$20.000",getRootElement(), 255, 255, 255, true ) destroyElement(Blip) setTimer(boss3, 25000, 1) end end)
  11. Sendy

    MultiLanguage

    https://community.multitheftauto.com/index.php?p=resources&s=details&id=2175
  12. Sendy

    MultiLanguage

    I need from .xml but thanks i find this from another resource but i don't know how this can work with my system function loadText (language, stringName, resource) if resource == nil then stringsFile = stringsRootFile else local resourceFile = getResourceFromName (resource) if resourceFile == false then return false end end language = getElementData(source, "Language") if stringName then stringsFile = xmlLoadFile (":" .. tostring(resource) .. "/en.xml") if stringsFile then local firstStringNode = xmlFindChild ( stringsFile, tostring(stringName), 0 ) if firstStringNode then local secondStringNode = xmlFindChild ( firstStringNode, tostring(language), 0 ) if secondStringNode then local text = xmlNodeGetValue (secondStringNode) if text then return tostring(text) else return false end else return false end else return false end else return false end else return false end end
  13. Sendy

    MultiLanguage

    Hello can anyone help me with this? i want create multi language but i don't know how. --en.xml <language name="EN"> <message string="EN" /> <message string="EN1" /> </language> i'am using if getElementData(source, "Language") == "EN" then outputChatBox("EN") else outputChatBox("EN1") end --for set language setElementData(source, "Language", "EN") How i can get text in outputChatBox from first code? please help
  14. Sendy

    timestamp

    Thanks working.
  15. Sendy

    timestamp

    Thanks when i want add years, months, days? local years = math.floor((remaining_time % number) / number) local months = math.floor((remaining_time % number) / number) local days = math.floor((remaining_time % number) / number) local hours = math.floor((remaining_time % 86400) / 3600) local mins = math.floor((remaining_time % 3600) / 60) local secs = math.floor(remaining_time % 60)