Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. I really doubt someone is going to give you the script, I gave you the hunter reward, later on, you uploaded it to the MTA community with you as the author. Start learning to script it yourself.
  2. When you show the GUI, set the input to go to GUI. guiSetInputEnabled ( true )
  3. Not sure if the script has a bind or a command to do it, check settings.
  4. Add the resource to the acl group "Admin".
  5. No, if ( hitElement == localPlayer ) then
  6. It isn't, must be put it from habit.
  7. You're not using a string. Should be. local Unemployed = createTeam ( "Unemployed" )
  8. No, that one works, seems like color arguments aren't required, whoever made that wiki page for createTeam, should have set the color argments as optional.
  9. At createTeam you put Unemployed, which is not a string, you should've put "Unemployed", also, you had forgot to define the color arguments.
  10. Again skin. No team.. Works perfect here.
  11. local Unemployed = createTeam ( "Unemployed", 255, 255, 255 ) function SetSkinAndTeam ( player ) setElementModel ( player, 239 ) setPlayerTeam ( player, Unemployed ) end addCommandHandler ( "resign", SetSkinAndTeam )
  12. function enterVehicle2 ( thePlayer, seat, jacked ) local theVehicleID = getElementModel ( source ) if ( theVehicleID == 420 ) and ( seat ~= 0 ) then local driver = getVehicleOccupant ( source, 0 ) local money = getPlayerMoney ( thePlayer ) if ( money >= 1000 ) then if ( isTimer ( takeMoneyTimer ) ) then killTimer ( takeMoneyTimer ) end takeMoneyTimer = setTimer ( function ( ) local money = getPlayerMoney ( thePlayer ) if ( money >= 1000 ) then givePlayerMoney ( driver, 1000 ) takePlayerMoney ( thePlayer, 1000 ) outputChatBox ( "Se le ha cobrado $1000", thePlayer, 0, 255, 0, true ) else removePedFromVehicle ( thePlayer ) if ( isTimer ( takeMoneyTimer ) ) then killTimer ( takeMoneyTimer ) end end end , 30000, 0 ) destroyElement ( taxiOphaalBlip ) else removePedFromVehicle ( thePlayer ) destroyElement ( taxiOphaalBlip ) outputChatBox ( "No tienes dinero suficiente (minimo $1100)", thePlayer, 255, 0, 0, true ) end end end addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle2 )
  13. You can't load them, you can maybe decompress the files and load them, but you can't load a .zip file.
  14. You obviously did it wrong, because I just tested it and works. Here you can download the resource, since it seems that you can't even follow some simple steps: http://www.mediafire.com/?mv3ghpu1u7mjtdg
  15. function guishow(hitPlayer) triggerClientEvent (hitPlayer,"guishowc",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit",marker,guishow) Ahi tenes el error, pusiste "marker" y no "marker1".
  16. You can use this function: function dxDrawBorderedText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI ) dxDrawText ( text, x - 1, y - 1, w - 1, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) -- black dxDrawText ( text, x + 1, y - 1, w + 1, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x - 1, y + 1, w - 1, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x + 1, y + 1, w + 1, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x - 1, y, w - 1, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x + 1, y, w + 1, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y - 1, w, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y + 1, w, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI ) end
  17. function accept() if ( guiCheckBoxGetSelected ( checkboox ) ) then triggerServerEvent("sTeame", localPlayer, "teamSet") outputChatBox("Bienvenido al trabajo de Taxista!") guiSetVisible (ventana, not guiGetVisible ( ventana ) ) showCursor ( false ) else outputChatBox("Tu debes aceptar las reglas para entrar o no podras conseguir el trabajo") end end addEventHandler ( "onClientGUIClick", Aceptar, accept, false ) --Evento del boton aceptar
  18. Castillo

    Error

    MySQL te daria mucho mas lag.
  19. Castillo

    Error

    No necesariamente MySQL.
×
×
  • Create New...