Jump to content

Sendy

Members
  • Posts

    78
  • Joined

  • Last visited

Details

  • Gang
    *STC*

Recent Profile Visitors

633 profile views

Sendy's Achievements

Transformer

Transformer (11/54)

5

Reputation

  1. function writedata(query) local connection = exports.db:getConnection()--I have another script that exports the connection local result = dbPoll(query, 0) if (#result > 0 ) then local up = dbQuery(connection, "UPDATE players SET money = ? WHERE account = ? ", getPlayerMoney(source), account)--Update player money if found result dbFree(up) elseif (#result == 0 ) then local insert = dbQuery(connection, "INSERT INTO players (account, money) VALUES(?, ?) ", account, getPlayerMoney(source))--insert player money if found result end end
  2. But how i Can detect if my ped is hit by water Can?
  3. function outputPlayerHitByWater(thePed) --if (getElementType(thePed) ~= "player") then if (getElementType(thePed) == "ped") then --setElementHealth(thePed, getElementHealth(thePed) - 1) killPed ( thePed, attacker, 56, 9, false) end end addEventHandler("onClientPedHitByWaterCannon", getRootElement(), outputPlayerHitByWater) Can anyone tell me why this not working? i have always warning Bad ussage killPed this client side function will only work with client created peds
  4. onPlayerLogin triggerClientEvent downloadFile
  5. https://www.mta-resource.ru/load/resource/id/4721
  6. must work.. /debugscript 3 ?
  7. Sendy

    Warp player to

    addCommandHandler("easr", function() players = getElementsByType("player") for i,v in ipairs(players) do setElementPosition(v, posX, posY, posZ) end end)
  8. 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 )
  9. delete first setPedStat
  10. server-side -> setPlayerMoney() use triggerServerEvent() when you buy weapon
  11. 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)
  12. Sendy

    MultiLanguage

    https://community.multitheftauto.com/index.php?p=resources&s=details&id=2175
×
×
  • Create New...