HustraDev Posted March 7, 2015 Share Posted March 7, 2015 Hi, i have littel problem with this code i used to Set team for player but its not working, addEvent("thekeem", true) addEventHandler("thekeem", root, function() local team = getTeamFromName("Iveco Drivers") if team then setplayerteam (source,team) else local noteam = getTeamFromName ("Iveco Drivers") if noteam then cancelEvent end end end ) Link to comment
Moderators IIYAMA Posted March 7, 2015 Moderators Share Posted March 7, 2015 setplayerteam(source,team) setPlayerTeam(source,team) cancelEvent cancelEvent() Even so, cancelEvent has no function in this set-up. Link to comment
HustraDev Posted March 7, 2015 Author Share Posted March 7, 2015 setplayerteam(source,team) setPlayerTeam(source,team) cancelEvent cancelEvent() Even so, cancelEvent has no function in this set-up. Same Problem, Link to comment
Moderators IIYAMA Posted March 7, 2015 Moderators Share Posted March 7, 2015 How did you set-up your triggerServerEvent(??????) ? Link to comment
HustraDev Posted March 7, 2015 Author Share Posted March 7, 2015 How did you set-up your triggerServerEvent(??????) ? there is no problem with trigger i use setElementModel to change player skin and it work, Link to comment
Moderators IIYAMA Posted March 7, 2015 Moderators Share Posted March 7, 2015 setElementModel isn't in the code you posted, pls get serious or I will stop helping you. Link to comment
HustraDev Posted March 7, 2015 Author Share Posted March 7, 2015 setElementModel isn't in the code you posted, pls get serious or I will stop helping you. im serious man i mean i test the trigger by deleting the code and write setElementModel Link to comment
HustraDev Posted March 7, 2015 Author Share Posted March 7, 2015 thanks man i fix it the problem : function setteam() local team = getTeamFromName("Iveco Drivers") if team then setplayerteam (source,team) else local noteam = getTeamFromName ("Iveco Drivers") if noteam then cancelEvent end end end addEvent("thekeem", true) addEventHandler("thekeem", root,setteam) Link to comment
Enargy, Posted March 7, 2015 Share Posted March 7, 2015 setplayerteam(source,team) setPlayerTeam(source,team) cancelEvent cancelEvent() Even so, cancelEvent has no function in this set-up. function setteam() local team = getTeamFromName("Iveco Drivers") if team then setPlayerTeam (source,team) else local noteam = getTeamFromName ("Iveco Drivers") if noteam then cancelEvent() end end end addEvent("thekeem", true) addEventHandler("thekeem", root,setteam) 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