Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. I don't think so, if I'm right, all you can do now is buy a new video card.
  2. Castillo

    Buy map bug.

    Do you even have permission to use this script?
  3. You should make the whole thing server side, because I'm not sure if it'll actually destroy it.
  4. "reason" is not being defined globally.
  5. Why would you sell something like this for just $45?
  6. Do you get any error in the debugscript?
  7. Well, the render target is not being created, it could mean that there's not enough video memory to do it.
  8. Add this now and post the result: outputChatBox ( tostring ( mapRadar ) ) )
  9. local myText = "Hello World!" addEventHandler ( "onClientRender", root, function ( ) dxDrawText ( myText, 0, 0, guiGetScreenSize ( ) ) end ) addCommandHandler ( "change", function ( _, new ) myText = new end )
  10. No, getPlayerTeam returns a team element, to get the name you must use getTeamName ( getPlayerTeam ( thePlayer ) ) Like this: addEventHandler ( "onClientVehicleEnter", getRootElement(), function ( thePlayer ) local teamName = getTeamName ( getPlayerTeam ( thePlayer ) ) if ( teamName == "WhiteTeam" or teamName == "BlackTeam") then destroyElement ( source ) end end )
  11. Add this after dxGetMaterialSize: outputChatBox ( tostring ( dxGetStatus ( ).VideoMemoryFreeForMTA ) ) ) And post the result.
  12. Define una variable con el texto y luego lo dibujas.
  13. Castillo

    Team

    function criminal ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) local team = getTeamFromName("Anbu") if ( team ) then if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "Anbu" ) ) then setPlayerTeam ( thePlayer, team ) setPlayerNametagColor ( thePlayer, 225, 0, 0 ) else outputChatBox ( "Usted no es Anbu!", thePlayer ) end end end addCommandHandler ( "itac", criminal )
  14. Te referis a la visibilidad? si es asi, entonces es el cuarto argumento en tocolor.
  15. getTeamName requires a team element, use getPlayerTeam to obtain the team element.
  16. Castillo

    Team

    "accName" is not defined. You must use: getPlayerAccount + getAccountName
  17. The duration could be part of the reason.
  18. local name = "" local reason = "" function drawJoin ( ) dxDrawRectangle(1411, 228, 269, 84, tocolor(0, 0, 0, 125), true) dxDrawRectangle(1411, 228, 269, 21, tocolor(245, 140, 20, 235), true) dxDrawText("Csatlakozás / Kilépés", 1425, 234, 1680, 244, tocolor(254, 254, 254, 235), 1.00, "default-bold", "center", "center", false, false, true, false, false) dxDrawText(name, 1470, 249, 1657, 280, tocolor(255, 255, 255, 255), 1.15, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("csatlakozott a szerverre.", 1455, 285, 1675, 302, tocolor(255, 255, 255, 255), 1.10, "default", "center", "center", false, false, true, false, false) end function drawQuit( ) dxDrawRectangle(1411, 228, 269, 84, tocolor(0, 0, 0, 125), true) dxDrawRectangle(1411, 228, 269, 21, tocolor(245, 140, 20, 235), true) dxDrawText("Csatlakozás / Kilépés", 1425, 234, 1680, 244, tocolor(254, 254, 254, 235), 1.00, "default-bold", "center", "center", false, false, true, false, false) dxDrawText(name, 1470, 249, 1657, 280, tocolor(255, 255, 255, 255), 1.15, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("lecsatlakozott a szerverrol. ("..reason..")", 1455, 285, 1675, 302, tocolor(255, 255, 255, 255), 1.10, "default", "center", "center", false, false, true, false, false) end addEventHandler("onClientPlayerJoin", root, function() name = getPlayerName(source) addEventHandler("onClientRender", root, drawJoin) local sound = playSound("bip.wav") setTimer ( function() removeEventHandler("onClientRender", root, drawJoin) end, 5000, 1 ) end ) addEventHandler("onClientPlayerQuit", root, function ( reason_ ) name = getPlayerName(source) reason = reason_ addEventHandler("onClientRender", root, drawQuit) local sound = playSound("bip.wav") setTimer ( function() removeEventHandler("onClientRender", root, drawQuit) end, 5000, 1 ) end )
  19. But where is the function "drawJoin"?
  20. You must get the player name inside onClientPlayerJoin and store it in a variable.
  21. https://www.mediafire.com/?9he895y5f5ivdbt
×
×
  • Create New...