Jump to content

SWAT job


Gtakiki

Recommended Posts

yes but i need
SWAT job but I need to so that only those who are able to get into SWAT inside the Marriott group.

and u script not working

i need SWAT team.and no job sorry

It's not my script lol. All you need is a team? Then consider:

createTeam 

Link to comment
Hi all.

I need Help.

SWAT job but I need to so that only those who are able to get into SWAT inside the Marriott group.

Help me PLS

THX.

It's a simple script, I don't see where's the big deal of sharing it with him?

Client side

   local marker = createMarker(  416.81219482422, -1821.8325195313, 5.4904899597168, "Cylinder", 1.5, 0, 69, 139, 0)   
    
    GUIEditor_Button = {} 
        GUIEditor_Memo = {} 
        GUIEditor_Label = {}  
         
        function guiMyCwindow(w,h,t) 
          local x,y = guiGetScreenSize() 
          return guiCreateWindow((x-w)/2,(y-h)/2,w,h,t,false) 
        end 
  
        windowjob = guiMyCwindow(301,250,"SWAT") 
        guiSetVisible(windowjob, false) 
        GUIEditor_Button[1] = guiCreateButton(22,200,108,35,"Take job",false,windowjob) 
        GUIEditor_Label[1] = guiCreateLabel(193,-103,5,5,"",false,windowjob) 
        GUIEditor_Button[2] = guiCreateButton(179,200,110,36,"Cancel",false,windowjob) 
        GUIEditor_Memo[1] = guiCreateMemo(19,33,273,100,"To be a SWAT member, press Take job.\n\nIf you don't want to, press Cancel.",false,windowjob) 
         guiEditSetReadOnly(GUIEditor_Memo[1],true) 
          
        function SWAT(hitElement) 
             if getElementType(hitElement) == "player" and (hitElement == localPlayer) then 
                  if not guiGetVisible(windowjob) then 
                       guiSetVisible(windowjob, true) 
                       showCursor(true) 
                  end 
             end 
        end 
        addEventHandler("onClientMarkerHit", marker, SWAT) 
          
        function SWATjobleave(leaveElement) 
             if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then 
                  if guiGetVisible(windowjob) then 
                       guiSetVisible(windowjob, false) 
                       showCursor(false) 
                  end 
             end 
        end 
        addEventHandler("onClientMarkerLeave", marker, SWATjobleave) 
  
        function joinTeam() 
             triggerServerEvent("setSWAT",localPlayer) 
             guiSetVisible(windowjob, false) 
             showCursor(false) 
        end 
        addEventHandler("onClientGUIClick", GUIEditor_Button[1] , joinTeam, false) 
          
        function removeSWATWindow() 
             guiSetVisible(windowjob, false) 
             showCursor(false) 
        end 
        addEventHandler("onClientGUIClick", GUIEditor_Button[2] , removeSWATWindow, false)       

u can change (x,y,z)

Server Side

createBlip ( 416.81219482422, -1821.8325195313, 5.4904899597168, 56 ) 
  
function createSWATTeam () 
    ArmedForcesteam = createTeam ("SWAT",15,1,250) 
end 
addEventHandler ("onResourceStart", resourceRoot, createSWATTeam) 
  
function joinSWAT() 
     setPlayerTeam(source,SWAT,team) 
     setElementModel(source, 285) 
      giveWeapon ( source, 3, 24, 31) 
     setElementData( source, "Occupation", "SWATteam", true ) 
     outputChatBox("You are now a SWAT member.",source,15,1,250) 
end 
addEvent("setSWAT", true) 
addEventHandler("setSWAT",root,joinSWAT) 
  
function policeJob ( attacker, attackerweapon, bodypart, loss ) 
    theTeam = getPlayerTeam ( attacker )  
    if (attackerweapon == 3) and (loss > 2 ) then 
        setElementPosition (source, 219, 110, 999, true) 
        setTimer ( setElementPosition, 100000, 1, source, 236.32, 110.4, 1003.2) 
        takePlayerMoney (source, 50) 
        givePlayerMoney (attacker, 100) 
  end 
end 
addEventHandler ("onPlayerDamage", getRootElement(), armedforces) 

also u can change blip marker ...

if u need any help post or pm me ..

Edited by Guest
Link to comment

@chronos :

Tell me how he'll ever learn if we gave him ready scripts ??

It's not that the script is hard t make or not, Here we want people to learn how to script .

Not giving them ready codes doesn't mean that we don't want to help !

( Don't give me a fish, But teach me fishing )

Link to comment
@chronos :

Tell me how he'll ever learn if we gave him ready scripts ??

It's not that the script is hard t make or not, Here we want people to learn how to script .

Not giving them ready codes doesn't mean that we don't want to help !

( Don't give me a fish, But teach me fishing )

ik ... it okey..

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...