AchrefF Posted March 15, 2017 Share Posted March 15, 2017 السلام عليكم شباب الخير محتاج كود او فنكشنات عمل رتبه فى تيم مثلا انا عامل تيم حرامى او شرطى عوز مثلا الشرطى لو مسك 50 حرامى ياخد رتبه FBI وياخد اللبس بتاعو وهكذه الحرامى لو قتل او سرق او عمل هاكر للبنك ياخد رتبه بعد 50 مره من القتل او اى شىئ دا امثله بس Link to comment
#BrosS Posted March 15, 2017 Share Posted March 15, 2017 ياعمي عندك الزهاايمر ؟؟؟؟؟؟؟ طلبت 4 مواضيع لنفس المشكل وافادوك Link to comment
^iiEcoo'x_) Posted March 15, 2017 Share Posted March 15, 2017 (edited) addEventHandler ("onPlayerWasted",root, function ( _ , attacker ) if ( attacker ) then if not isGuestAccount ( getPlayerAccount ( attacker ) ) then outputChatBox ( " * System :- "..getPlayerName ( attacker ).." Kill The Player "..getPlayerName ( source ).." & Win 1 Point " , root ) setAccountData ( getPlayerAccount ( attacker ) , "L.v.L" , getAccountData ( getPlayerAccount ( attacker ) , "L.v.L" ) + 1 ) end end end ) addEventHandler ("onElementDataChange",root, function ( ) if not isGuestAccount ( getPlayerAccount ( source ) ) then if getAccountData ( getPlayerAccount ( source ) , "L.v.L" ) then if getAccountData ( getPlayerAccount ( source , "L.v.l" ) <= 50 then if ( tostring ( getAccountName ( getPlayerAccount ( source ) ) ) ) then aclGroupAddObject ( aclGetGroup( "FBI" ) , "user."..tostring ( getAccountName ( getPlayerAccount ( source ) ) ) ) end end end end end ) جرب ، Edited March 15, 2017 by #_iMr.[E]coo Link to comment
AchrefF Posted March 15, 2017 Author Share Posted March 15, 2017 20 minutes ago, #BrosS said: ياعمي عندك الزهاايمر ؟؟؟؟؟؟؟ طلبت 4 مواضيع لنفس المشكل وافادوك لا والله مش طلبته قبل كده 11 minutes ago, #_iMr.[E]coo said: addEventHandler ("onPlayerWasted",root, function ( _ , attacker ) if ( attacker ) then if not isGuestAccount ( getPlayerAccount ( attacker ) ) then outputChatBox ( " * System :- "..getPlayerName ( attacker ).." Kill The Player "..getPlayerName ( source ).." & Win 1 Point " , root ) setAccountData ( getPlayerAccount ( attacker ) , "L.v.L" , getAccountData ( getPlayerAccount ( attacker ) , "L.v.L" ) + 1 ) end end end ) addEventHandler ("onElementDataChange",root, function ( ) if not isGuestAccount ( getPlayerAccount ( source ) ) then if getAccountData ( getPlayerAccount ( source ) , "L.v.L" ) then if getAccountData ( getPlayerAccount ( source , "L.v.l" ) <= 50 then if ( tostring ( getAccountName ( getPlayerAccount ( source ) ) ) ) then aclGroupAddObject ( aclGetGroup( "FBI" ) , "user."..tostring ( getAccountName ( getPlayerAccount ( source ) ) ) ) end end end end end ) جرب ، شكرا اخى بجرب وارد عليك Link to comment
^iiEcoo'x_) Posted March 15, 2017 Share Posted March 15, 2017 (edited) 3 minutes ago, AchrefF said: لا والله مش طلبته قبل كده شكرا اخى بجرب وارد عليك ظيفة للقروب الادمن واعطيه صلاحية aclGroupAddObject Edited March 15, 2017 by #_iMr.[E]coo Link to comment
AchrefF Posted March 15, 2017 Author Share Posted March 15, 2017 23 minutes ago, #_iMr.[E]coo said: ظيفة للقروب الادمن واعطيه صلاحية aclGroupAddObject انا عملته صحيح كده اخى ومفيش ايه اخطاء ظهرت ction TheInicio() exports.scoreboard:scoreboardAddColumn("Occupation",true) outputDebugString ( "AssisSIN Job Beta v.1.0 Made by Clipper.-6th Started!!" ) end team = createTeam ("AssisSIN", 69, 0, 0) AssisSIN1 = createBlip (1613.04919, -1560.16187, 14.16809, 20 ,2 ) setBlipVisibleDistance(AssisSIN1 , 300) AssisSIN2 = createBlip (2495.04736, -1982.92151, 13.41422, 20 ,2 ) setBlipVisibleDistance(AssisSIN2 , 300) AssisSIN3 = createBlip (547.52704, -1762.81897, 5.75248, 20 ,2 ) setBlipVisibleDistance(AssisSIN3 , 300) AssisSIN4 = createBlip (2019.58838, 2355.00830, 10.82031, 20 ,2 ) setBlipVisibleDistance(AssisSIN4 , 300) AssisSIN5 = createBlip (1099.26331, 2308.58472, 10.82031, 20 ,2 ) setBlipVisibleDistance(AssisSIN5 , 300) AssisSIN6 = createBlip (-2089.65503, 86.66927, 35.31343, 20 ,2 ) setBlipVisibleDistance(AssisSIN6 , 300) AssisSIN7 = createBlip (-2122.09863, 659.43018, 52.44643, 20 ,2 ) setBlipVisibleDistance(AssisSIN7 , 300) AssisSIN8 = createBlip (-2480.96777, -134.79778, 25.61719,20 ,2 ) setBlipVisibleDistance(AssisSIN8 , 300) function joinPoliceTeam(player) local team = getTeamFromName ("AssisSIN") if (team) then setPlayerTeam (player,team) setElementModel (player, 28) getTeamColor ( AssisSIN ) setBlipColor (AssisSIN, 69,0,0) setTeamFriendlyFire ( team, true ) setElementData ( player, "Occupation", "AssisSIN" ) setPlayerNametagColor ( player, 69,0,0 ) setTeamFriendlyFire ( getTeamFromName ( 'AssisSIN' ),true ); end end addCommandHandler("AssisSIN",joinPoliceTeam) addEvent("JoinAssisSIN",true) addEventHandler("JoinAssisSIN",root, function () if getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= "AssisSIN" then executeCommandHandler("AssisSIN",source) end end ) addEventHandler ("onPlayerWasted",root, function ( _ , attacker ) if ( attacker ) then if not isGuestAccount ( getPlayerAccount ( attacker ) ) then outputChatBox ( " * System :- "..getPlayerName ( attacker ).." Kill The Player "..getPlayerName ( source ).." & Win 1 Point " , root ) setAccountData ( getPlayerAccount ( attacker ) , "L.v.L" , getAccountData ( getPlayerAccount ( attacker ) , "L.v.L" ) + 1 ) end end end ) بس هل انا مركبه صح 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