HustraDev Posted March 7, 2015 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 )
Moderators IIYAMA Posted March 7, 2015 Moderators Posted March 7, 2015 setplayerteam(source,team) setPlayerTeam(source,team) cancelEvent cancelEvent() Even so, cancelEvent has no function in this set-up.
HustraDev Posted March 7, 2015 Author Posted March 7, 2015 setplayerteam(source,team) setPlayerTeam(source,team) cancelEvent cancelEvent() Even so, cancelEvent has no function in this set-up. Same Problem,
Moderators IIYAMA Posted March 7, 2015 Moderators Posted March 7, 2015 How did you set-up your triggerServerEvent(??????) ?
HustraDev Posted March 7, 2015 Author 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,
Moderators IIYAMA Posted March 7, 2015 Moderators Posted March 7, 2015 setElementModel isn't in the code you posted, pls get serious or I will stop helping you.
HustraDev Posted March 7, 2015 Author 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
HustraDev Posted March 7, 2015 Author 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)
Enargy, Posted March 7, 2015 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)
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