Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Try going directly to the webstats/webmap: http://yourserver:port/webstats/ http://yourserver:port/webmap/
  2. Anda al archivo "banlist.xml" en el directorio de tu servidor y borrate de ahi.
  3. The login and password is an admin account from your server.
  4. The HTTP port, not the server port.
  5. Castillo

    help

    There's nothing different in that script.
  6. Webstats: https://wiki.multitheftauto.com/wiki/Resource:Webstats Webmap: It shows the ingame players and blips ( as far as I know ).
  7. Well, there were many errors, one caused the script to don't even start, so, next time you really should pay more attention. local jobmarker = createMarker(1552.4996337891, -1677.3264160156, 15.1953125, "cylinder", 1.5, 0, 0, 255, 150) GUIEditor = { memo = {}, button = {}, window = {}, } function guiMyCwindow() windowjob = guiCreateWindow(272, 191, 276, 291, "LS Police") guiSetVisible(windowjob, false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.78) GUIEditor.memo[1] = guiCreateMemo(9, 24, 258, 98, "Welcome to the Los Santos Police Department Job! Accept or Decline the job!\nAccept : Help the city survive from criminals!\nDecline: Bye! See You Soon!!", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.button[1] = guiCreateButton(10, 240, 82, 35, "Accept", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(182, 240, 75, 35, "Decline", false, GUIEditor.window[1]) GUIEditor.button[11] = guiCreateButton(95, 225, 82, 23, "Quit Job", false, GUIEditor.window[20]) addEventHandler("onClientGUIClick", GUIEditor.button[1] , joinTeam, false) addEventHandler("onClientGUIClick", GUIEditor.button[11] , removePDWindow, false) addEventHandler("onClientGUIClick", GUIEditor.button[11] , removeTeam, false) end function PDjob(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", jobmarker, PDjob) function PDjobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", jobmarker, PDjobleave) function joinTeam() triggerServerEvent("setPD",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end function removeTeam() triggerServerEvent("removePD",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end function removePDWindow() guiSetVisible(windowjob, false) showCursor(false) end
  8. Which marker? this one? local jobmarker = createMarker(1552.4996337891, -1677.3264160156, 15.1953125, "Cylinder", 1.5, 0, 0, 255, 150)
  9. Castillo

    help

    You put it as client side? do you get any error?
  10. nacitavanie = 0 createPed ( 40, 173.35345, -1320.99438, 79.13128 ) function load ( ) nacitavanie = nacitavanie + 1 if getPedOccupiedVehicle(localPlayer) then local x, y, z = getElementPosition(getPedOccupiedVehicle(localPlayer)) setElementPosition(getPedOccupiedVehicle(localPlayer), x, y, z) end fadeCamera ( true ) if nacitavanie > 3350 then setCameraMatrix(-437.14282226563 + nacitavanie, -1320 + nacitavanie - 3350, 80, 2580, -1628.5712890625, -300, 0, 70) else setCameraMatrix(-437.14282226563 + nacitavanie, -1320, 80, 2580, -1628.5712890625, -300, 0, 70) end end addEvent ( "onTravelScreenStart", true ) addEventHandler ( "onTravelScreenStart", getRootElement(), load )
  11. Castillo

    help

    If that's what he wants, then this should do: function skinstaff ( ) local team = getPlayerTeam ( localPlayer ) if ( team and getTeamName ( team ) == "STAFF" ) then local skin1 = dxCreateTexture ( "images/wfyclot.jpg", "dxt5" ) local skin2 = dxCreateTexture ( "images/wmyclot.jpg", "dxt5" ) local shader1 = dxCreateShader ( "texture.fx" ) local shader2 = dxCreateShader ( "texture.fx" ) dxSetShaderValue ( shader1, "gTexture", skin1 ) dxSetShaderValue ( shader2, "gTexture", skin2 ) engineApplyShaderToWorldTexture ( shader1, "wfyclot" ) engineApplyShaderToWorldTexture ( shader2, "wmyclot" ) end end addEventHandler ( "onClientResourceStart", resourceRoot, skinstaff )
  12. Castillo

    Problem MySql

    As far as I know, "libmysql" comes with MTA server, is not a module.
  13. Castillo

    help

    Mind giving more information? what is the problem?
  14. You can try with this resource too: https://community.multitheftauto.com/in ... ils&id=612
  15. You can use: setSkyGradient
  16. Castillo

    Gang spawn

    To lock teams to gangs you'll have to edit the spawn system itself.
  17. A que te referis con speaker? hablar por el microfono?
  18. That would be useless, because the player can't join the game if he's banned. The script from xXMADEXx is a custom ban system.
  19. Castillo

    Funciones

    getWeaponProperty Para que no camine podes desactivar sus controles: toggleControl setElementFrozen
  20. Castillo

    String lenght

    You're welcome.
  21. Castillo

    String lenght

    string.len Or you can also do: string = "Hello World" outputChatBox ( #string )
×
×
  • Create New...