Jump to content

at2008

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by at2008

  1. at2008

    Police system

    Yes, a Police team.
  2. at2008

    Police system

    How to create a police system with teaser, carry player, cuffs? I haven't found any information about this.
  3. at2008

    Spike system

    Thenk you so much! It's works fine! Thanks for help!
  4. at2008

    Spike system

    Thanks for help, but it says: SCRIPT ERROR: pluginfolder/pluginname.lua:47: ')' expected near 'than' ERROR: Loading script failed: pluginfolder:pluginname.lua:47: expected near 'then' I cant make it to work..
  5. at2008

    Spike system

    And this gonna be a police script so I need /cuff(freeze a player) and player carrying (like on this video) and put carried player into a vehicle.
  6. at2008

    Spike system

    addCommandHandler("putaspiketotheground", -- function(player, source) if (player) then local px, py, pz = getElementPosition ( player ) local rz = getPedRotation ( player ) local distance = 5 local x = distance*math.cos((rz+90)*math.pi/180) local y = distance*math.sin((rz+90)*math.pi/180) local b2 = 15 / math.cos(math.pi/180) local nx = px + x local ny = py + y local nz = pz - 0.8 local provz = rz + 90 local spike = createObject ( 2892, nx, ny, nz, 0.0, 0.0, provz) local x, y, z = getElementPosition(player) local x2, y2, z2 = getElementPosition(spike) local blow = createColSphere(x2, y2, z2, 3) addEventHandler("onColShapeHit",blow,function (player) if player and getElementType(player) == "player" then local pveh = getPedOccupiedVehicle(player) if isPedInVehicle(player) then if (getTeamName(getPlayerTeam(player)) ~= "robber" then return false end setVehicleWheelStates(pveh,1,1,1,1) setVehicleColor( pveh, 247, 39, 157 ) end end end) end end) I made this script, but i have an error : WARNING: mypluginsfolder/myplugin.lua:line : Bad argument @ 'getPlayerTeam' [Excepted player at argument 1, got nil] WARNING: mypluginsfolder/myplugin.lua:line : Bad argument @ 'getTeamName' [Excepted player at argument 1, got boolean] --I got these errors from console
  7. at2008

    Spike system

    It's not works for me.
  8. at2008

    Spike system

    How to create spikes what only punches player's car who in the "robber" team?
×
×
  • Create New...