Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Freeroam Table

    You're welcome .
  2. That make's no sense, "team" is a team-element, not a skin model.
  3. Castillo

    Spawn help

    Does that script spawn the player and show's the map?
  4. Castillo

    Spawn help

    That's part of the freeroam resource.
  5. Castillo

    help me!!

    As I said: We don't help people who steals scripts. You can check the MTA community for resources, there some userpanels for race.
  6. Castillo

    help me!!

    That mean's that script is stolen, we don't help people who steals scripts.
  7. Castillo

    help me!!

    Well, I guess your "friend" stole it from downloaded client files. You don't have the server side, right?
  8. Castillo

    Freeroam Table

    addEventHandler('onClientResourceStart', g_ResRoot, function() fadeCamera(true) setTimer(getPlayers, 1000, 1) bindKey('f1', 'down', toggleFRWindow) createWindow(wndMain) guiSetAlpha(wndMain.element, 1) guiLabelSetColor(getControl(wndMain, "xpos"), 0, 255, 0) guiLabelSetColor(getControl(wndMain, "ypos"), 0, 255, 0) guiLabelSetColor(getControl(wndMain, "zpos"), 0, 255, 0) hideAllWindows() guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(g_Me)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(g_Me)) setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', g_ResRoot, g_Me) end )
  9. Castillo

    Freeroam Table

    You're welcome .
  10. Castillo

    Spawn help

    addEventHandler("onResourceStart", resourceRoot, function() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end local accountName = getAccountName(getPlayerAccount(player)) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "DanWesson" ) ) ) then repeat until spawnPlayer ( player, -49.161193847656, -225.46385192871, 5.4296875, 90, 287, 0, 0) elseif ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "SWAT" ) ) ) then repeat until spawnPlayer ( player, -550.86010742188, 2594.9943847656, 53.93478012085, 90, 285, 0, 0) elseif ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "GBO" ) ) ) then repeat until spawnPlayer ( player, 1058.5606689453, 1279.9813232422, 10.8203125, 90, 120, 0, 0) end fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end )
  11. Castillo

    help me!!

    Where did you get that "userpanel"? mind posting it here?
  12. Castillo

    help me!!

    That mean's you got missing server side part.
  13. /me killed ZverCR (rammed over with a Rhino)
  14. Castillo

    Freeroam Table

    addEventHandler('onClientResourceStart', g_ResRoot, function() fadeCamera(true) setTimer(getPlayers, 1000, 1) bindKey('f1', 'down', toggleFRWindow) createWindow(wndMain) guiSetAlpha(wndMain.element, 1) hideAllWindows() guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(g_Me)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(g_Me)) setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', g_ResRoot, g_Me) end )
  15. Castillo

    spawnPlayer

    When you change your skin via Admin panel, you lose your weapons.
  16. I said copy the script again.
  17. The bot is created and it runs forward.
  18. local scan_radius = 10 local ped function getPointFromDistanceRotation(x, y, dist, angle) local a = math.rad(90 - angle); local dx = math.cos(a) * dist; local dy = math.sin(a) * dist; return x+dx, y+dy; end addCommandHandler( "botON", function() ped = createPed( 312, 1989, -2190, 14, 180, 0, 180 ) setPedAnimation( ped, "ped", "run_player" ) addEventHandler( 'onClientRender',root, function( ) local rot local bx,by,bz = getPedBonePosition( ped,8 ) rot = ( rot or 0 ) + 1 if rot > 360 then rot = 0 end local nx,ny = getPointFromDistanceRotation( bx,by,scan_radius,rot ) local hit = processLineOfSight( bx,by,bz,nx,ny,bz, true, -- checkBuildings false, -- checkVehicles false, -- checkPlayers false, -- checkObjects false, -- checkDummies false, -- seeThroughStuff false, -- ignoreSomeObjectsForCamera false, -- shootThroughStuff nil, -- ignoredElement false -- includeWorldModelInformation ) end ) end)
  19. You're welcome.
  20. That's because you added to check for team.. function setMyTeam( player, cmd, ... ) local name = table.concat({...}, " ") if (name and name ~= "") then local team = getPlayerTeam( player ) if setPlayerTeam ( player, getTeamFromName( name ) ) then outputChatBox( "Your team now is "..getTeamName( getPlayerTeam( player ) )..".", player, 0, 255, 0 ) else outputChatBox( "Can't set to team.", player, 255, 0, 0 ) end else outputChatBox( "SYNTAX: /newteam [team name].", player, 255, 0, 0 ) end end addCommandHandler ( "changeteam", setMyTeam )
  21. "Admin"> "Moderator"> "SuperModerator"> "Admin"> "RPC"> "resource.admin"> "resource.c-panel"> "resource.webadmin"> "user.naser"> Remember to edit the ACL when the server is offline.
  22. You have two posts, one is on the Spanish section, and it worked for me, why don't you use it?
  23. Change the gui-memo to a gui-edit.
  24. You're welcome.
×
×
  • Create New...