Jump to content

TheSmart

Members
  • Posts

    516
  • Joined

  • Last visited

Everything posted by TheSmart

  1. TheSmart

    [REL] IVSE 1.3

    why it saying marker name already exist i try all name but fail can anyone tell me what to do?
  2. hello guys! my server 80% complete now i need just police job script i find on community but i cant find any good police script.Please anyone can make one for me please. Features *Police have ability to arrest people with wanted levels in 4 ways: ---- smacking them with a nightstick ---- pulling them out of a car ---- aiming a weapon at close range (if criminals health is low) ----Cops can taze him *Increase wanted levels when players break the law in these ways: ---- Jacking a car ---- Killing a player (cops get wanted for killing innocents) ---- Stealing a Cop car ---- Assaulting an officer ---- Being seen by a cop doing illegal activity (read further for details) *players can escape arrest if several things happen(with a little help from an accomplice) ---- The cop walks too far away ---- The cop dies ---- The cop car gets too damaged ---- The cop gets jacked from their car *Players have to serve jailtime if arrested (jailtime per wanted star is a server variable) *Cops get rewarded for arresting or killing criminals (rewards are server variables) *Made to be modular to work with almost any existing rpg servers ---- Works by detecting players skins or team name ---- Doesn't alter Team assignments ---- Doesn't rely on a specific spawning system *Police can arrest up to 2 players at once *Works With Police Bribe Pickups *creates directions to jails for arresting officer *creates blips of players with wanted levels viewable to cops
  3. i can't get u please fix it
  4. hey guys! i download it from community i edit some thing but i fail can anyone help me? Client [local marker = createMarker(1643.6999511719, -2237.8000488281, -3.7000000476837"cylinder",2.0,0,255,255,255) local marker2 = createMarker(1673.1999511719, 1448.1999511719, 9.8000001907349"cylinder",2.0,0,255,255,255) local marker3 = createMarker(-1421.5, -287.10000610352, 13.10000038147"cylinder",2.0,0,255,255,255) function draw() base = dxDrawRectangle(422, 221, 353, 360, tocolor(0, 0, 0, 160), false) dxDrawRectangle(422, 187, 353, 34, tocolor(0, 0, 0, 230), false) dxDrawText("Teleportation System", 461, 192, 742, 216, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "left", "top", false, false, false, false, false) dxDrawRectangle(440, 254, 83, 31, tocolor(131, 179, 252, 35), false) dxDrawRectangle(558, 254, 83, 31, tocolor(131, 179, 252, 35), false) dxDrawRectangle(677, 254, 83, 31, tocolor(131, 179, 252, 35), false) dxDrawRectangle(558, 443, 83, 31, tocolor(131, 179, 252, 35), false) dxDrawText("Los Santos", 465, 264, 495, 282, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(" Las Ventura", 576, 264, 625, 280, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("San Fierro", 697, 264, 746, 280, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Close", 582, 453, 631, 469, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) showcursor (true) end button = guiCreateButton(439, 254, 84, 31, "Los Santos", false) button2 = guiCreateButton(558, 254, 84, 31, "Las Venturas", false) button3 = guiCreateButton(677, 254, 84, 31, "San Fierro", false) button10 = guiCreateButton(557, 443, 84, 31, "Close", false) guiSetVisible(button, false) guiSetVisible(button2, false) guiSetVisible(button3, false) guiSetVisible(button10, false) local drawingPanel = false; function startDrawing_CMD() if(drawingPanel == false) then addEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, true) drawingPanel = true; showCursor(true) else removeEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, false) drawingPanel = false; showCursor(false) end end addEventHandler("onClientMarkerHit", marker, function (p) if p == localPlayer then count = 10 addEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, true) guiSetVisible(button2, true) guiSetVisible(button3, true) guiSetVisible(button10, true) guiSetAlpha(button, 0) guiSetAlpha(button2, 0) guiSetAlpha(button3, 0) guiSetAlpha(button10, 0) showCursor(true) end end ) addEventHandler("onClientMarkerHit", marker2, function (p) if p == localPlayer then count = 10 addEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, true) guiSetVisible(button2, true) guiSetVisible(button3, true) guiSetVisible(button10, true) guiSetAlpha(button, 0) guiSetAlpha(button2, 0) guiSetAlpha(button3, 0) guiSetAlpha(button10, 0) showCursor(true) end end ) addEventHandler("onClientMarkerHit", marker3, function (p) if p == localPlayer then count = 10 addEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, true) guiSetVisible(button2, true) guiSetVisible(button3, true) guiSetVisible(button10, true) guiSetAlpha(button, 0) guiSetAlpha(button2, 0) guiSetAlpha(button3, 0) guiSetAlpha(button10, 0) showCursor(true) end end ) addEventHandler("onClientGUIClick",button10,function() if ( source == button10) then removeEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, false) guiSetVisible(button2, false) guiSetVisible(button3, false) guiSetVisible(button10, false) showCursor(false) end end ) addEventHandler("onClientGUIClick",button,function() if ( source == button) then showCursor(false) takePlayerMoney(Player, 5000) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 1643.6999511719, -2237.8000488281, -3.7000000476837 ) exports.AC_message:outputTopBar("You have been teleported to Los Santos",0,255,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button2,function() if ( source == button2) then showCursor(false) takePlayerMoney(Player, 5000) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 1673.1999511719, 1448.1999511719, 9.8000001907349 ) exports.AC_message:outputTopBar("You have been teleported to Las Venturas",0,255,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button3,function() if ( source == button3) then showCursor(false) takePlayerMoney(Player, 5000) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), -1421.5, -287.10000610352, 13.10000038147 ) exports.AC_message:outputTopBar("You have been teleported to San Fierro",0,255,0,LocalPlayer) end end ) local un = createBlip (1643.6999511719, -2237.8000488281, -3.7000000476837, 44) local un = createBlip (1673.1999511719, 1448.1999511719, 9.8000001907349, 44) local un = createBlip (-1421.5, -287.10000610352, 13.10000038147, 44)
  5. i mean there is no marker to take police job
  6. Hi, this script running correctly. but i did not see any blip or any marker to join and police name also not show in scroreboard
  7. hello guys! i download this script from community name legalsystem but its not working please anybody please fix it,I really need it to my server please anyone can fix it. Server kingCOP = createElement( "Pgroup", "cops" ) kingCIV = createElement( "Pgroup", "civs" ) kingNONE = createElement( "Pgroup", "none" ) function legalstartup(startedresource) if startedresource == getThisResource() then WantedWatch = setTimer (wantedlevelmonitor, 1000, 0) local allplayers = getElementsByType ( "player" ) local detectmethod = get("legalsystem.Copmethod") for playerKey,thePlayer in ipairs(allplayers) do if detectmethod == "team" then local copteam = get("legalsystem.Copteam") local thisTeam = getPlayerTeam(thePlayer) if thisTeam ~= false then if thisTeam == getTeamFromName(copteam) then setElementParent ( thePlayer, kingCOP ) else setElementParent ( thePlayer, kingCIV ) end end elseif detectmethod == "skin" then local thisSkin = getPedSkin(thePlayer) setElementData(getRootElement(),"Copskins",get("legalsystem.Copskins")) local copskins = getElementData(getRootElement(),"Copskins") if type(copskins) == "table" and #copskins > 0 then for k,skinID in ipairs(copskins) do copskins[skinID] = true end end local isacop = 0 for ElementKey, ElementValue in ipairs ( copskins ) do if thisSkin == ElementValue then isacop = 1 end end if isacop == 1 then setElementParent ( thePlayer, kingCOP ) else setElementParent ( thePlayer, kingCIV ) end end end end end addEventHandler( "onResourceStart", getRootElement(), legalstartup) function copSpawnCheck() local detectmethod = get("legalsystem.Copmethod") if detectmethod == "team" then local copteam = get("legalsystem.Copteam") local thisTeam = getPlayerTeam(source) if thisTeam ~= false then if thisTeam == getTeamFromName(copteam) then setElementParent ( source, kingCOP ) else setElementParent ( source, kingCIV ) end end elseif detectmethod == "skin" then local thisSkin = getPedSkin(source) setElementData(getRootElement(),"Copskins",get("legalsystem.Copskins")) local copskins = getElementData(getRootElement(),"Copskins") if type(copskins) == "table" and #copskins > 0 then for k,skinID in ipairs(copskins) do copskins[skinID] = true end end local isacop = 0 for ElementKey, ElementValue in ipairs ( copskins ) do if thisSkin == ElementValue then isacop = 1 end end if isacop == 1 then setElementParent ( source, kingCOP ) else setElementParent ( source, kingCIV ) end end end addEventHandler ( "onPlayerSpawn", getRootElement(), copSpawnCheck ) --ARREST PLAYERS BY SMACKING WITH A NIGHTSTICK function rodneykingcheck ( attacker, weapon, bodypart, loss ) if (attacker) and (weapon == 3) then if getElementParent(attacker) == kingCOP then local thecop = attacker local theprisoner = source local wlevel = getPlayerWantedLevel( source ) if (getElementData ( theprisoner, "currentstatus" ) ~= "underarrest") and (wlevel > 0) then if (getElementData ( attacker, "currentarrests" ) ~= "single" ) and (getElementData ( attacker, "currentarrests" ) ~= "double" ) then setElementData ( thecop, "currentarrests", "single" ) triggerClientEvent(thecop,"copdirections",thecop) elseif (getElementData ( attacker, "currentarrests" ) == "single" ) then setElementData ( thecop, "currentarrests", "double" ) end setElementData ( theprisoner, "currentstatus", "underarrest" ) setElementData ( theprisoner, "captor", thecop ) showCursor ( source, true ) toggleAllControls ( source, false, true, false ) walktheprisoner ( thecop, theprisoner ) setElementData ( theprisoner, "arrestTimeout", setTimer ( freetheguy, 180000, 1, theprisoner )) end end end end addEventHandler ( "onPlayerDamage", getRootElement(), rodneykingcheck ) --ARREST PLAYERS BY HOLDING THEM AT GUNPOINT IF THEY HAVE LOW HP function sightscheck ( element ) if isElement(element) then if ( getElementType ( element ) == "player" ) then if ( getControlState ( source, "aim_weapon" ) ) then local currentgun = getPlayerWeapon ( source ) local wlevel = getPlayerWantedLevel( element ) if (currentgun > 19) and (currentgun < 39) and (wlevel > 0) then if getElementParent(source) == kingCOP then local thecop = source local theprisoner = element local cx, cy, cz = getElementPosition ( source ) local px, py, pz = getElementPosition ( element ) if ( getElementHealth ( element ) < 15 ) and ( getDistanceBetweenPoints3D ( cx, cy, cz, px, py, pz ) < 3 ) then if (getElementData ( theprisoner, "currentstatus" ) ~= "underarrest" ) then if (getElementData ( thecop, "currentarrests" ) ~= "single" ) and (getElementData ( thecop, "currentarrests" ) ~= "double" ) then triggerClientEvent(thecop,"copdirections",thecop) setElementData ( thecop, "currentarrests", "single" ) elseif (getElementData ( thecop, "currentarrests" ) == "single" ) then setElementData ( thecop, "currentarrests", "double" ) end setElementData ( theprisoner, "currentstatus", "underarrest" ) setElementData ( theprisoner, "captor", thecop ) showCursor ( theprisoner, true ) toggleAllControls ( theprisoner, false, true, false ) walktheprisoner ( thecop, theprisoner ) setElementData ( theprisoner, "arrestTimeout", setTimer ( freetheguy, 180000, 1, theprisoner )) -- local arresttoolong = setTimer ( freetheguy, 180000, 1, theprisoner ) end end end end end end end end addEventHandler ( "onPlayerTarget", getRootElement(), sightscheck ) --ARREST PLAYERS BY PULLING THEM OUT OF A VEHICLE function yankhimout(player, seat, jacker) if isElement(jacker) then if getElementParent(jacker) == kingCOP then local wlevel = getPlayerWantedLevel( player ) if wlevel > 0 then if (getElementData ( jacker, "currentarrests" ) ~= "single" ) and (getElementData ( jacker, "currentarrests" ) ~= "double" ) then local thecop = jacker local theprisoner = player setElementData ( theprisoner, "currentstatus", "underarrest" ) setElementData ( theprisoner, "captor", thecop ) setElementData ( thecop, "currentarrests", "single" ) triggerClientEvent(thecop,"copdirections",thecop) showCursor ( theprisoner, true ) toggleAllControls ( theprisoner, false, true, false ) walktheprisoner ( thecop, theprisoner ) setElementData ( theprisoner, "arrestTimeout", setTimer ( freetheguy, 180000, 1, theprisoner )) elseif (getElementData ( jacker, "currentarrests" ) == "single" ) then local thecop = jacker local theprisoner = player setElementData ( theprisoner, "currentstatus", "underarrest" ) setElementData ( theprisoner, "captor", thecop ) setElementData ( thecop, "currentarrests", "double" ) showCursor ( theprisoner, true ) toggleAllControls ( theprisoner, false, true, false ) walktheprisoner ( thecop, theprisoner ) setElementData ( theprisoner, "arrestTimeout", setTimer ( freetheguy, 180000, 1, theprisoner )) end end end end end addEventHandler ( "onVehicleExit", getRootElement(), yankhimout ) --FORCES A PRISONER TO FOLLOW THE COP function walktheprisoner(thecop, theprisoner) if (getElementData ( theprisoner, "currentstatus" ) == "underarrest") and (getPedOccupiedVehicle ( theprisoner ) == false ) then local copx, copy, copz = getElementPosition ( thecop ) local prisonerx, prisonery, prisonerz = getElementPosition ( theprisoner ) copangle = ( 360 - math.deg ( math.atan2 ( ( copx - prisonerx ), ( copy - prisonery ) ) ) ) % 360 setPedRotation ( theprisoner, copangle ) setCameraTarget ( theprisoner, theprisoner ) local dist = getDistanceBetweenPoints2D ( copx, copy, prisonerx, prisonery ) if ( dist > 16 ) then freetheguy ( theprisoner ) --FREES PRISONER IF HE GETS FAR AWAY elseif ( dist > 12 ) then setControlState ( theprisoner, "sprint", true ) setControlState ( theprisoner, "walk", false ) setControlState ( theprisoner, "forwards", true ) local zombify = setTimer ( walktheprisoner, 500, 1, thecop, theprisoner ) elseif ( dist > 6 ) then setControlState ( theprisoner, "sprint", false ) setControlState ( theprisoner, "walk", false ) setControlState ( theprisoner, "forwards", true ) local zombify = setTimer ( walktheprisoner, 500, 1, thecop, theprisoner ) elseif ( dist > 1.5 ) then setControlState ( theprisoner, "sprint", false ) setControlState ( theprisoner, "walk", true ) setControlState ( theprisoner, "forwards", true ) local zombify = setTimer ( walktheprisoner, 500, 1, thecop, theprisoner ) elseif ( dist < 1.5 ) then setControlState ( theprisoner, "sprint", false ) setControlState ( theprisoner, "walk", false ) setControlState ( theprisoner, "forwards", false ) local zombify = setTimer ( walktheprisoner, 500, 1, thecop, theprisoner ) end end end --FREES A PLAYER (RESETS THEIR CONTROLS AND STATUS) function freetheguy (theprisoner) local thecaptor = (getElementData ( theprisoner, "captor" )) setElementData ( theprisoner, "currentstatus", "none" ) setElementData ( theprisoner, "captor", "none" ) showCursor ( theprisoner, false ) setControlState ( theprisoner, "sprint", false ) setControlState ( theprisoner, "walk", false ) setControlState ( theprisoner, "forwards", false ) toggleAllControls (theprisoner, true) local prisonercheck = setTimer ( checkforprisoners, 1500, 1, thecaptor ) TimoutTimer = (getElementData ( theprisoner, "arrestTimeout" )) if isTimer(TimoutTimer) then killTimer(TimoutTimer) setElementData ( theprisoner, "arrestTimeout", nil) TimeoutTimer = nil end end function checkforprisoners(thecop) if isElement(thecop) then local prisoners = 0 local players = getElementsByType ( "player" ) for theKey,thePlayer in ipairs(players) do if (getElementData ( thePlayer, "captor" ) == thecop ) then prisoners = prisoners+1 end end if prisoners == 0 then setElementData ( thecop, "currentarrests", "none" ) triggerClientEvent( thecop,"clearcopdirections",thecop) elseif prisoners == 1 then setElementData ( thecop, "currentarrests", "single" ) elseif prisoners == 2 then setElementData ( thecop, "currentarrests", "double" ) end
  8. its also problem to us pakistan not have paypal *_*
  9. hey Guys! Today i decided To start learning Script but i need your help can anybody tell me where i need to start and what is important function and element is?I will very Thankful to you if u help me.
  10. kia koi mujha batta hai ga ka ma top drive gt4 computer ma kasa use karro?
  11. great job man Nice TUT!
  12. man if i understand in readme.txt so why i post here i cant understand so i post it please tell me in details Thanks!
  13. it not leaked script me and my friends make it .First userpanel i have no idea because my friend give to me
×
×
  • Create New...