Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You must use the rotation arguments.
  2. Is not a text, is a image drawn with DX functions.
  3. Instead of laughing of him, you should help him.
  4. We don't give support with leaked scripts. Topic locked.
  5. function radio ( x ) local team = getPlayerTeam ( source ) if ( not team ) then return outputChatBox ( "You are not in a team!", source, 255, 0, 0 ) end local r, g, b = getTeamColor ( team ) local players = getPlayersInTeam ( team ) for _, v in ipairs ( players ) do if ( x == 5) then outputChatBox (""..getPlayerName(source)..": Taking Fire! Need Assistance!", v, r, g, b) elseif ( x == 1 ) then outputChatBox (""..getPlayerName(source)..": Attack the Enemys Team !", v, r, g, b) elseif ( x == 2 ) then outputChatBox (""..getPlayerName(source)..": Defend our Team!", v, r, g, b) elseif ( x == 3 ) then outputChatBox (""..getPlayerName(source)..": Its ours", v, r, g, b) elseif ( x == 4 ) then outputChatBox (""..getPlayerName(source)..": I Cant Help !", v, r, g, b) elseif ( x == 6 ) then outputChatBox (""..getPlayerName(source)..": Requesting backup!!!", v, r, g, b) elseif ( x == 11 ) then outputChatBox (""..getPlayerName(source)..": Enemy spotted!!", v, r, g, b) elseif ( x == 12 ) then outputChatBox (""..getPlayerName(source)..": Enemy Vehicle spotted!!", v, r, g, b) elseif ( x == 13 ) then outputChatBox (""..getPlayerName(source)..": Enemy Airplane spotted!!", v, r, g, b) elseif ( x == 16 ) then outputChatBox (""..getPlayerName(source)..": Roger that!", v, r, g, b) elseif ( x == 17 ) then outputChatBox (""..getPlayerName(source)..": Negative!", v, r, g, b) elseif ( x == 18 ) then outputChatBox (""..getPlayerName(source)..": I got one!", v, r, g, b) end end end addEvent ("radio", true) addEventHandler ("radio", getRootElement(), radio)
  6. No, you must create the radar areas with the positions given.
  7. There are some resources that let you edit resources in-game: https://community.multitheftauto.com/ind ... ls&id=1821 https://community.multitheftauto.com/ind ... ls&id=1354
  8. Remove "player" from function name and use "source" instead.
  9. Yes, you can cancel them from entering on the vehicle if their skin/team doesn't match. Event: onVehicleStartEnter Functions: getElementModel -- For skin check. getPlayerTeam getTeamName -- For team check. cancelEvent
  10. Then that code is not required.
  11. I didn't understand what is this for: if getTeamName(getPlayerTeam(source)) == "Team1" then setElementVisibleTo (Team1, v, false) setTimer (setElementVisibleTo, 500, 1, Team1, v, true) setTimer (setElementVisibleTo, 1000, 1, Team1, v, false) setTimer (setElementVisibleTo, 1500, 1, Team1, v, true) setTimer (setElementVisibleTo, 2000, 1, Team1, v, false) setTimer (setElementVisibleTo, 2500, 1, Team1, v, true) elseif getTeamName(getPlayerTeam(source)) == "Team2" then setElementVisibleTo (Team2[source], v, false) setTimer (setElementVisibleTo, 500, 1, Team2[source], v, true) setTimer (setElementVisibleTo, 1000, 1, Team2[source], v, false) setTimer (setElementVisibleTo, 1500, 1, Team2[source], v, true) setTimer (setElementVisibleTo, 2000, 1, Team2[source], v, false) setTimer (setElementVisibleTo, 2500, 1, Team2[source], v, true) end
  12. function radio ( x ) local team = getPlayerTeam ( source ) if ( not team ) then return outputChatBox ( "You are not in a team.", source, 255, 0, 0 ) end local r, g, b = getTeamColor ( team ) local players = getPlayersInTeam ( team ) for k,v in ipairs(players) do if getTeamName(getPlayerTeam(source)) == "Team1" then setElementVisibleTo (Team1, v, false) setTimer (setElementVisibleTo, 500, 1, Team1, v, true) setTimer (setElementVisibleTo, 1000, 1, Team1, v, false) setTimer (setElementVisibleTo, 1500, 1, Team1, v, true) setTimer (setElementVisibleTo, 2000, 1, Team1, v, false) setTimer (setElementVisibleTo, 2500, 1, Team1, v, true) elseif getTeamName(getPlayerTeam(source)) == "Team2" then setElementVisibleTo (Team2[source], v, false) setTimer (setElementVisibleTo, 500, 1, Team2[source], v, true) setTimer (setElementVisibleTo, 1000, 1, Team2[source], v, false) setTimer (setElementVisibleTo, 1500, 1, Team2[source], v, true) setTimer (setElementVisibleTo, 2000, 1, Team2[source], v, false) setTimer (setElementVisibleTo, 2500, 1, Team2[source], v, true) end if ( x == 5) then outputChatBox (""..getPlayerName(source)..": Taking Fire! Need Assistance!", v, r, g, b) elseif ( x == 1 ) then outputChatBox (""..getPlayerName(source)..": Attack the Enemys Team !", v, r, g, b) elseif ( x == 2 ) then outputChatBox (""..getPlayerName(source)..": Defend our Team!", v, r, g, b) elseif ( x == 3 ) then outputChatBox (""..getPlayerName(source)..": Its ours", v, r, g, b) elseif ( x == 4 ) then outputChatBox (""..getPlayerName(source)..": I Cant Help !", v, r, g, b) elseif ( x == 6 ) then outputChatBox (""..getPlayerName(source)..": Requesting backup!!!", v, r, g, b) elseif ( x == 11 ) then outputChatBox (""..getPlayerName(source)..": Enemy spotted!!", v, r, g, b) elseif ( x == 12 ) then outputChatBox (""..getPlayerName(source)..": Enemy Vehicle spotted!!", v, r, g, b) elseif ( x == 13 ) then outputChatBox (""..getPlayerName(source)..": Enemy Airplane spotted!!", v, r, g, b) elseif ( x == 16 ) then outputChatBox (""..getPlayerName(source)..": Roger that!", v, r, g, b) elseif ( x == 17 ) then outputChatBox (""..getPlayerName(source)..": Negative!", v, r, g, b) elseif ( x == 18 ) then outputChatBox (""..getPlayerName(source)..": I got one!", v, r, g, b) end end end addEvent ("radio", true) addEventHandler ("radio", getRootElement(), radio)
  13. Show us how do you trigger "radio" event.
  14. To hide the login window when they login.
  15. logIn ( source, user, pass ) That line should be: logIn ( source, account, pass )
  16. Castillo

    syntax errors

    I use this one: viewtopic.php?f=108&t=33905
  17. Obtene los elementos y usa: setElementDimension
  18. Busca por el foro, ya hubo muchos temas sobre esto.
  19. I don't see why would the client crash for removing the vehicle upgrade.
  20. Use the engine scripting functions: https://wiki.multitheftauto.com/wiki/Cli ... _functions
  21. Castillo

    syntax errors

    Make sure that the encoding is not "UTF-8".
×
×
  • Create New...