Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You can set the projectile velocity arguments:
  2. And you've got proof of making this "gamemode"?
  3. Castillo

    Police /tie

    function fesseln ( player ) outputChatBox ( "Gefangener im Auto gefesselt",player, 255, 255, 0 ) local playerTeam = getPlayerTeam ( player ) if ( playerTeam == Polizei or playerTeam == FBI or PlayerTeam == Army ) then if isPedInVehicle ( player ) then local vehicle = getPedOccupiedVehicle ( player ) if ( policeVehicles [ getElementModel ( vehicle ) ] ) then local gefangener = getVehicleOccupant ( vehicle, 2 ) toggleControl ( gefangener, "enter_exit", false ) end end end end addCommandHandler ( "tie", fesseln ) This will stop the player from leaving the vehicle. P.S: You've got defined the team variables, right?
  4. addEventHandler ( "onClientRender", root, function ( ) outputChatBox ( "RENDERING IMAGES" ) dxDrawImage(1049, 696, 13, 34, "mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(406, 674, 656, 32, "mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(406, 726, 656, 32, "mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(406, 696, 20, 35, "mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end ) Use that and see what it outputs to the chat box.
  5. Castillo

    godmode

    I don't understand what do you mean, mind explaining yourself?
  6. Castillo

    FIXED

    No errors or anything on debugscript?
  7. Castillo

    FIXED

    Well, when I meant changing version, I was talking about the server version.
  8. You'll have to modify that script to use element data or tables, or if he hasn't got any custom language set, to use his default language.
  9. Isn't that obvious? you've just added all the outputs one after another, no timer or anything.
  10. I think that there isn't any way to do it with the map file, you'll have to do it by script.
  11. Castillo

    PM

    What do you want to add?
  12. You must set their visible distance to something like 50.
  13. local blip = { } addEvent ( "onPlayerTeamChanged", true ) addEventHandler ( "onPlayerTeamChanged", root, function ( theTeam ) if ( not theTeam ) then return end if ( not isElement ( blip [ source ] ) ) then blip [ source ] = createBlipAttachedTo ( source ) end local r, g, b = getTeamColor ( theTeam ) setPlayerNametagColor ( source, r, g, b ) setBlipColor ( blip [ source ], r, g, b, 255 ) end ) addEventHandler ( "onPlayerQuit", root, function ( ) if isElement ( blip [ source ] ) then destroyElement ( blip [ source ] ) end end )
  14. You should combine the blip script with your team loader system.
  15. First: creator Second: target
  16. function shout ( player, cmd, ... ) local accountname = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then local message = table.concat ( { ... }," " ) textDisplay = textCreateDisplay ( ) outputChatBox ( "SHOUTALL: ".. message, root, 205, 0, 0 ) textItem = textCreateTextItem ( message, 0.5, 0.5, 2, 205, 0, 0, 255, 3, "center", "center" ) textDisplayAddText ( textDisplay, textItem ) for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do textDisplayAddObserver ( textDisplay, thePlayer ) end setTimer ( function ( ) textDestroyTextItem ( textItem ) textDestroyDisplay ( textDisplay ) end ,5000, 1 ) else outputChatBox ( "You cannot use this command!", player, 255, 12, 15 ) end end addCommandHandler ( "SHOUTALL", shout )
  17. local blip = { } addEventHandler ( "onPlayerLogin", root, function ( ) if ( not isElement ( blip [ source ] ) ) then blip [ source ] = createBlipAttachedTo ( source ) end local theTeam = getPlayerTeam ( source ) if ( not theTeam ) then outputChatBox ( "YOU HAVE NO TEAM", source ) return end local r, g, b = getTeamColor ( theTeam ) setPlayerNametagColor ( source, r, g, b ) setBlipColor ( blip [ source ], r, g, b, 255 ) end ) addEventHandler ( "onPlayerQuit", root, function ( ) if isElement ( blip [ source ] ) then destroyElement ( blip [ source ] ) end end ) Try that and see what it says when you login.
  18. If you don't add an exit marker, then you won't be able to exit, obviously.
  19. Isn't that what you wanted?
  20. You must lower the Z position, here: Marker = createMarker ( 1060.0223388672, 1237.9868164063, 12.827476501465, 'arrow', 2, 0, 0, 255, 255 ) This is the Z position: 12.827476501465 You can try setting it to 11.82. Marker = createMarker ( 1060.0223388672, 1237.9868164063, 11.82, 'arrow', 2, 0, 0, 255, 255 )
×
×
  • Create New...