-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
You can set the projectile velocity arguments:
-
And you've got proof of making this "gamemode"?
-
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?
-
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.
-
Yes, you can.
-
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.
-
Isn't that obvious? you've just added all the outputs one after another, no timer or anything.
-
I think that there isn't any way to do it with the map file, you'll have to do it by script.
-
You must set their visible distance to something like 50.
-
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 )
-
You should combine the blip script with your team loader system.
-
First: creator Second: target
-
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 )
-
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.
-
If you don't add an exit marker, then you won't be able to exit, obviously.
-
Isn't that what you wanted?
-
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 )
-
I don't understand.
