Sendy

Members
  • Content Count

    75
  • Joined

  • Last visited

Community Reputation

5 Neutral

About Sendy

  • Rank
    Transformer

Details

  • Gang
    *STC*

Recent Profile Visitors

181 profile views
  1. Sendy

    Help! Hide Script

    onPlayerLogin triggerClientEvent downloadFile
  2. https://www.mta-resource.ru/load/resource/id/4721
  3. must work.. /debugscript 3 ?
  4. Sendy

    Warp player to

    addCommandHandler("easr", function() players = getElementsByType("player") for i,v in ipairs(players) do setElementPosition(v, posX, posY, posZ) end end)
  5. 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. Post the code..
  7. Sendy

    help in skills

    delete first setPedStat
  8. server-side -> setPlayerMoney() use triggerServerEvent() when you buy weapon
  9. 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)
  10. Sendy

    MultiLanguage

    https://community.multitheftauto.com/index.php?p=resources&s=details&id=2175
  11. 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
  12. 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
  13. Sendy

    timestamp

    Thanks working.