L3yr Posted February 13, 2017 Share Posted February 13, 2017 team = createTeam ("Criminal", 255, 0, 0) function joinCriminalTeam(player) local team = getTeamFromName ("Criminal") if (team) then setPlayerTeam (player,team) setElementModel (player, 230) getTeamColor (player, team) setBlipColor (player, team) setTeamFriendlyFire ( team, true ) end end addCommandHandler("setme",joinCriminalTeam) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then triggerServerEvent("JoinCriminal",localPlayer) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1]),false) showCursor(false) end end ) 3 minutes ago, Eslam Essam said: team = createTeam ("Criminal", 255, 0, 0) function joinCriminalTeam(player) local team = getTeamFromName ("Criminal") if (team) then setPlayerTeam (player,team) setElementModel (player, 230) getTeamColor (player, team) setBlipColor (player, team) setTeamFriendlyFire ( team, true ) end end addCommandHandler("setme",joinCriminalTeam) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then triggerServerEvent("JoinCriminal",localPlayer) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1]),false) showCursor(false) end end ) فى ملف سرفر عمل التيم Link to comment
iMr.WiFi..! Posted February 13, 2017 Share Posted February 13, 2017 اكوادك صحيحة في الكلنت بس سيرفر فيه اخطاء .. التصحيح : team = createTeam ("Criminal", 255, 0, 0) function joinCriminalTeam(player,cmd) local team = getTeamFromName ("Criminal") if ( cmd == "setme") then if (team) then setPlayerTeam (player,team) setElementModel (player, 230) getTeamColor (player, team) setBlipColor (player, team) setTeamFriendlyFire ( team, true ) end end end addCommandHandler("setme", joinCriminalTeam) Link to comment
L3yr Posted February 13, 2017 Author Share Posted February 13, 2017 13 minutes ago, iMr.WiFi..! said: اكوادك صحيحة في الكلنت بس سيرفر فيه اخطاء .. التصحيح : team = createTeam ("Criminal", 255, 0, 0) function joinCriminalTeam(player,cmd) local team = getTeamFromName ("Criminal") if ( cmd == "setme") then if (team) then setPlayerTeam (player,team) setElementModel (player, 230) getTeamColor (player, team) setBlipColor (player, team) setTeamFriendlyFire ( team, true ) end end end addCommandHandler("setme", joinCriminalTeam) شكرا على الرد ومرورك 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