Gtakiki Posted June 13, 2013 Share Posted June 13, 2013 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. Link to comment
Mossy Posted June 13, 2013 Share Posted June 13, 2013 https://community.multitheftauto.com/ind ... ls&id=6458 Link to comment
Mossy Posted June 13, 2013 Share Posted June 13, 2013 You know how to put in resources and start them? Link to comment
Gtakiki Posted June 13, 2013 Author Share Posted June 13, 2013 SWAT job but I need to so that only those who are able to get into SWAT inside the Marriott group. Link to comment
Mossy Posted June 13, 2013 Share Posted June 13, 2013 SWAT job but I need to so that only those who are able to get into SWAT inside the Marriott group. I just found a random swat job resource. You can change the code to your liking. Link to comment
Gtakiki Posted June 13, 2013 Author Share Posted June 13, 2013 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 Link to comment
Mossy Posted June 13, 2013 Share Posted June 13, 2013 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
Gtakiki Posted June 13, 2013 Author Share Posted June 13, 2013 nope i need Skin and Team and source and SWAT team. Link to comment
Baseplate Posted June 13, 2013 Share Posted June 13, 2013 You can use castillo's gang system to make SWAT group, then use the resource that Mossy gave to you. Link to comment
Gtakiki Posted June 13, 2013 Author Share Posted June 13, 2013 You can use castillo's gang system to make SWAT group, then use the resource that Mossy gave to you. But i no need group system, i need SWAT team(Marker,Ped,source etc) Link to comment
Mossy Posted June 13, 2013 Share Posted June 13, 2013 You can use castillo's gang system to make SWAT group, then use the resource that Mossy gave to you. But i no need group system, i need SWAT team(Marker,Ped,source etc) Then make one. We're not gonna make one for you. Link to comment
Baseplate Posted June 14, 2013 Share Posted June 14, 2013 Then how will you restrict it? either use ACL or Castillo's gang system. Link to comment
Moderators IIYAMA Posted June 14, 2013 Moderators Share Posted June 14, 2013 @Gtakiki, This section isn't for scripting request. Join this section when you have a little bit more scripting experience. Link to comment
Chronos Posted June 14, 2013 Share Posted June 14, 2013 (edited) 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 June 14, 2013 by Guest Link to comment
Chronos Posted June 14, 2013 Share Posted June 14, 2013 + i think that u are biggener so this is meta file meta.xml "Chronos" name="SWAT" version="1.0" type="script"/> Link to comment
PaiN^ Posted June 14, 2013 Share Posted June 14, 2013 @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 Posted June 14, 2013 Share Posted June 14, 2013 @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
Moderators IIYAMA Posted June 14, 2013 Moderators Share Posted June 14, 2013 @Pαίй +1 If he have the swat script, he/she will probably start requesting more. I consider those requests as spam. The more we help those people, the more spam we get. If you want to give it to him, write a pm. Resources should be done at the resources section. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now