L3yr Posted February 9, 2017 Share Posted February 9, 2017 السلام عليكم شباب اريد ان اعرف ايه المشكله او الخطاء هنا اريد ان انشاء فريق تيم مثل المجرمين مثلا وشكرا function createFaislTeam() team = createTeam ("Criminal", 255, 0, 0) -- create team named Criminal with red color setTeamName ( playerTeam, Criminal ) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createCriminalTeam) function joinCriminalTeam(player) local team = getTeamFromName ("Criminal") if (team) then -- if we found it setPlayerTeam (player,Criminalteam) setElementModel (player, 230) outputChatBox ( getPlayerName ( source ) .. " isn't on a team" ) end end addCommandHandler("join_Criminal_team", joinCriminallTeam) Link to comment
Vunili Posted February 9, 2017 Share Posted February 9, 2017 (edited) function createFaislTeam() team = createTeam ("Criminal", 255, 0, 0) -- create team named Criminal with red color end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createFaislTeam) function joinCriminalTeam(player) local team = getTeamFromName ("Criminal") if (team) then -- if we found it setPlayerTeam (player,team) setElementModel (player, 230) outputChatBox ( getPlayerName ( source ) .. " isn't on a team" ) end end addCommandHandler("join_Criminal_team", joinCriminalTeam) Edited February 9, 2017 by ~#[N]exT 1 Link to comment
L3yr Posted February 9, 2017 Author Share Posted February 9, 2017 Just now, ~#[N]exT said: function createFaislTeam() team = createTeam ("Criminal", 255, 0, 0) -- create team named Criminal with red color end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createFaislTeam) function joinCriminalTeam(player) local team = getTeamFromName ("Criminal") if (team) then -- if we found it setPlayerTeam (player,team) setElementModel (player, 230) outputChatBox ( getPlayerName ( source ) .. " isn't on a team" ) end end addCommandHandler("join_Criminal_team", joinCriminalTeam) شكرا اخى :] 1 Link to comment
Vunili Posted February 9, 2017 Share Posted February 9, 2017 14 minutes ago, Eslam Essam said: شكرا اخى :] حياك حبيبي 1 Link to comment
N3xT Posted February 9, 2017 Share Posted February 9, 2017 2 hours ago, ~#[N]exT said: function createFaislTeam() team = createTeam ("Criminal", 255, 0, 0) -- create team named Criminal with red color end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createFaislTeam) function joinCriminalTeam(player) local team = getTeamFromName ("Criminal") if (team) then -- if we found it setPlayerTeam (player,team) setElementModel (player, 230) outputChatBox ( getPlayerName ( source ) .. " isn't on a team" ) end end addCommandHandler("join_Criminal_team", joinCriminalTeam) السورس بمخرج الشات غير معرف 1 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