[UCG]Mike Posted August 11, 2014 Posted August 11, 2014 hey guys today i want to know to to edit this sctipt to be by groups and sry for my bad english local marker = createMarker ( 125.49031829834, 1931.8468017578, 18.240268707275, "cylinder", 2, 24, 60, 3 ) GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_gridlist = {} windowjob = guiCreateWindow(392, 176, 408, 437, "CNG ~ Military Forces", false) guiWindowSetSizable(windowjob, false) guiSetVisible(windowjob, false) GUIEditor_Memo[1] = guiCreateMemo(18, 30, 362, 221, "", false, windowjob) guiMemoSetReadOnly(GUIEditor_Memo[1], true) GUIEditor_gridlist[1] = guiCreateGridList(21, 264, 359, 115, false, windowjob) guiGridListAddColumn(GUIEditor_gridlist[1], "ID", 0.5) guiGridListAddColumn(GUIEditor_gridlist[1], "Skin Name", 0.5) for i = 1, 5 do guiGridListAddRow(GUIEditor_gridlist[1]) end guiGridListSetItemText(GUIEditor_gridlist[1], 0, 1, "287", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 0, 2, "Army", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 1, 1, "191", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 1, 2, "Helena Wankstein", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 2, 1, "73", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 2, 2, "Hippy", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 3, 1, "179", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 3, 2, "Ammunation Salesman", false, false) GUIEditor_Button[1] = guiCreateButton(21, 379, 175, 48, "Take job !", false, windowjob) GUIEditor_Button[2] = guiCreateButton(206, 379, 174, 48, "Cancel", false, windowjob) function SAPDjob(hitElement) if getElementData (source, "NameGroup") == "Military Forces" then setElementData ( localPlayer, "ownskin", getElementModel (localPlayer) ) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end end addEventHandler("onClientMarkerHit", join, SAPDjob) addEventHandler("onClientMarkerHit", join1, SAPDjob) addEventHandler("onClientMarkerHit", join2, SAPDjob) addEventHandler("onClientMarkerHit", join3, SAPDjob) addEventHandler("onClientMarkerHit", join4, SAPDjob) function FBIjobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", marker, SAPDjobleave) function setskintest() local skin = guiGridListGetItemText ( GUIEditor_gridlist[1], guiGridListGetSelectedItem ( GUIEditor_gridlist[1] ), 1 ) setElementModel ( localPlayer, skin ) end addEventHandler ( "onClientGUIClick", GUIEditor_gridlist[1], setskintest, false ) function joinTeam() triggerServerEvent("MF",localPlayer) local skin = guiGridListGetItemText ( GUIEditor_gridlist[1], guiGridListGetSelectedItem ( GUIEditor_gridlist[1] ), 1 ) if skin ~= 0 or getElementData(localPlayer, "ownskin") then guiSetVisible(windowjob, false) showCursor(false) setElementModel ( localPlayer, skin ) else exports["TopBarChat"]:sendClientMessage ("You didn't select a Skin", 255, 0, 0 ) end end addEventHandler("onClientGUIClick", GUIEditor_Button[1] , joinTeam, false) function removeSAPDWindow() guiSetVisible(windowjob, false) showCursor(false) setElementModel(localPlayer, getElementData(localPlayer, "ownskin")) end addEventHandler("onClientGUIClick", GUIEditor_Button[2] , removeSAPDWindow, false) function createSAPDTeam () SAPDteam = createTeam ("Military Forces", 0, 128, 0) end function joincriminal() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then local wlevel = getPlayerWantedLevel( source ) end end addEventHandler ("onResourceStart", resourceRoot, createSAPDTeam) function joinSAPD() setPlayerNametagColor ( source, 0, 128, 0 ) setPlayerTeam(source,SAPDteam) setElementFrozen ( ped, true ) setElementHealth ( ped, 180 ) giveWeapon ( source, 3 ) setElementData( source, "Occupation", "Military Forces", true ) setElementData ( source, "Rank", "Federal Agent" ) end addEvent("MF", true) addEventHandler("MF",root,joinSAPD) You are now in Mark Zone !!!
Max+ Posted August 11, 2014 Posted August 11, 2014 what kind of group script are you using + /debugscript 3 for erros and do you want to show the window for specific team ? - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
[UCG]Mike Posted August 11, 2014 Author Posted August 11, 2014 what kind of group script are you using + /debugscript 3 for errosand do you want to show the window for specific team ? im use it https://community.multitheftauto.com/ind ... ls&id=9813 You are now in Mark Zone !!!
Et-win Posted August 11, 2014 Posted August 11, 2014 I was just thinking, are you Hectorman? ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
[UCG]Mike Posted August 11, 2014 Author Posted August 11, 2014 I was just thinking, are you Hectorman? what you mean with Hectorman ? You are now in Mark Zone !!!
Et-win Posted August 11, 2014 Posted August 11, 2014 Also a person who just takes scripts and throw them onto this forum, asking why they aren't working or asking us to edit it to his wish. I was just thinking that because he hasn't been online since Jun. 30 and you joined on Jun. 29. Also he doesn't want to learn to script, just like you. ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
[UCG]Mike Posted August 11, 2014 Author Posted August 11, 2014 Also a person who just takes scripts and throw them onto this forum, asking why they aren't working or asking us to edit it to his wish. I was just thinking that because he hasn't been online since Jun. 30 and you joined on Jun. 29. Also he doesn't want to learn to script, just like you. no im asking just when i cant edit any problem or any script and if you dont want to help me dont post here to get Posts You are now in Mark Zone !!!
Saml1er Posted August 11, 2014 Posted August 11, 2014 no im asking just when i cant edit any problem or any script and if you dont want to help me dont post here to get Posts Go home, you won't get any help like that.
Et-win Posted August 11, 2014 Posted August 11, 2014 Lol, I don't care about the posts, but about people who ask us to constantly fix stuff while they don't want to learn. ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
Max+ Posted August 11, 2014 Posted August 11, 2014 Also a person who just takes scripts and throw them onto this forum, asking why they aren't working or asking us to edit it to his wish. I was just thinking that because he hasn't been online since Jun. 30 and you joined on Jun. 29. Also he doesn't want to learn to script, just like you. Good Job , Detective - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
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