Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Try this (not tested): cover = false function zzz( player ) local team = getPlayerTeam(player) if team then local playerBlip = createBlipAttachedTo ( player, 22, 1, 255, 255, 0, 255 ) stophelp = setTimer ( fff, 10000, 1, playerBlip ) setElementVisibleTo ( playerBlip, getRootElement(), false) for i,v in pairs(getPlayersInTeam(team)) do setElementVisibleTo ( playerBlip, v, true) outputChatBox (getPlayerName (player) .. ":HELP ME Help Me !!!",v,255,255,0,true) end end end ----------- function fff(theblip) destroyElement (theblip) end function bindKey ( player, commandName ) if (cover == false)then cover = true bindKey ( player, "z", "down", zzz ) outputChatBox ( "**oN PRESS [z] to use**", player, 255, 255, 0 ) else cover = false unbindKey ( player, "z", "down", zzz ) outputChatBox ( "** OFF **", player, 255, 255, 0 ) end end addCommandHandler ( "hl", bindKey )
  2. The code i gave you works without attachElements.
  3. Castillo

    First person

    Well, if you can't find what you looking for, then start learning and make it by yourself.
  4. What do you mean? i added a timer as you can see, also the missing ped table, wait 1 second after restarting the resource, then it will start playing the animation and give him an Ak-47.
  5. Carlos, yo diria que con un programa? Yo siempre encripto mis scripts, si no vienen y se roban los client-side y me da furia , hay algunos desencriptadores, pero ni idea de donde los conseguis (no te ayudaria a conseguir uno igual jeje).
  6. Castillo

    Friendly Fire

    Post the script part where it creates the teams.
  7. Castillo

    Friendly Fire

    That's a map file, i'm asking for the SCRIPT, do you get me? what gamemode are you using btw?
  8. Castillo

    Friendly Fire

    Post your team's code .
  9. Castillo

    Friendly Fire

    DON'T TRIPLE-POST!! Post your code here.
  10. PedsPos = { {120,2779.4453125,-2407.8173828125,13.635701179504,180.54383850098}, {135,2762.865234375,-2535.6484375,13.637379646301,127.07803344727}, {78,2762.845703125,-2537.8515625,13.636841773987,35.659423828125}, {79,2761.3046875,-2537.7509765625,13.634307861328,323.5166015625}, {200,2757.439453125,-2535.2880859375,13.637376785278,262.62942504883}, {118,2788.2470703125,-2507.21484375,13.640826225281,179.83520507813,30,300,"ped","IDLE_chat"} } addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function( ) ped = {} for i,w in ipairs( PedsPos ) do outputChatBox(""..i ) ped[i] = createPed(w[1],w[2],w[3],w[4]) -- so it's good setPedRotation(ped[i],w[5]) -- good if ( i == 6 ) then outputChatBox( " It's the 6th ped ") setTimer(giveWeapon, 1000, 1, ped[6], tonumber(PedsPos[6][6]), tonumber(PedsPos[6][7]), true) -- not give weapon setTimer(setPedAnimation, 1000, 1, ped[6], PedsPos[6][8],PedsPos[6][9] ) -- not setPedAnimation outputChatBox("Weapon and animation" ) end setPedFrozen(ped[i], true ) setElementData(ped[i],"ndmg",true) end end )
  11. Maybe game monitor is down or has problems.
  12. What is this? bindKey requires a FUNCTION not a variable or an ELEMENT.
  13. The script will auto detect if the account already exists, i guess you are using the normal /register command, well then you can do /register If the username is "Sam" and there's already one account named "Sam", it will output an error saying it already exist.
  14. Castillo

    RPG???

    Huh, that's just only one screen with some texts that could be easily created with paint
  15. Add the resource to acl.xml Group: "Admin". https://wiki.multitheftauto.com/wiki/ACL
  16. Hahahaha, worst topic ever! do you think you can come here and request something? even worst if you ask it like that.
  17. Well, the script was designed by him (most of code by me but well), i don't think you should take it.
  18. junior, por favor no poste doble, use el boton "EDIT", gracias.
  19. You can't move an object that is attached (if i'm right).
  20. https://community.multitheftauto.com/index.php?p= ... ls&id=2145 That resource doesn't include anything new, i know he added me in the credits, but it has nothing changed on it, please remove it.
  21. They aren't spamming with any other server name
  22. I don't know what your script should do, but i guess it should update the scoreboard money with your current, right? localPlayer = getLocalPlayer() function addColumns() exports.scoreboard:scoreboardAddColumn("Money") setElementData(localPlayer,"Money",0) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), addColumns) outputChatBox("Score Money System Reloaded",255,105,0) outputChatBox("Author: AlienBoss",255,105,0) function updateScoreboardMoney() local money = getPlayerMoney(localPlayer) setElementData(localPlayer,"Money",tonumber(money)) end setTimer(updateScoreboardMoney,1000,0) It should work.
  23. https://wiki.multitheftauto.com/wiki/RU/ ... Scoreboard all scoreboard exported functions are server-side. That's not true, i've created columns in client-side using the exported functions from the Scoreboard.
  24. Yes, it must contain "false" as last argument, else it will be possible to click any other gui.
×
×
  • Create New...