Gtakiki Posted June 24, 2013 Share Posted June 24, 2013 Teame = createTeam("Criminal", 255, 0, 0) function teamSet ( ) local team = getTeamFromName ( "Criminal" ) if team then setPlayerTeam ( source, team ) setPlayerNametagColor ( source, 255, 0, 0 ) else local teamw = getTeamFromName ( "Criminal" ) if teamw then cancelEvent() end end end addEvent ( "sTeame", true) addEventHandler ( "sTeame", root, teamSet ) function setTeam ( thePlayer ) setPlayerTeam ( thePlayer, theTeam ) end addCommandHandler ( "criminal", setTeam ) http://kepfeltoltes.hu/view/130624/mta- ... es.hu_.png http://kepfeltoltes.hu/view/130624/mta- ... es.hu_.png Link to comment
xXMADEXx Posted June 24, 2013 Share Posted June 24, 2013 Line 20: setPlayerTeam ( thePlayer, Teame ) Link to comment
iMr.3a[Z]eF Posted June 24, 2013 Share Posted June 24, 2013 Teame = createTeam("Criminal", 255, 0, 0) function teamSet ( thePlayer ) local team = getTeamFromName ( "Criminal" ) if team and thePlayer then setPlayerTeam ( thePlayer, team ) setPlayerNametagColor ( thePlayer, 255, 0, 0 ) else cancelEvent() end end addEvent ( "sTeame", true) addEventHandler ( "sTeame", root, teamSet ) function setTeam ( thePlayer ) setPlayerTeam ( thePlayer, team ) end addCommandHandler ( "criminal", setTeam ) Link to comment
xXMADEXx Posted June 24, 2013 Share Posted June 24, 2013 Teame = createTeam("Criminal", 255, 0, 0) function teamSet ( thePlayer ) local team = getTeamFromName ( "Criminal" ) if team and thePlayer then setPlayerTeam ( thePlayer, team ) setPlayerNametagColor ( thePlayer, 255, 0, 0 ) else cancelEvent() end end addEvent ( "sTeame", true) addEventHandler ( "sTeame", root, teamSet ) function setTeam ( thePlayer ) setPlayerTeam ( thePlayer, team ) end addCommandHandler ( "criminal", setTeam ) This code will not work Link to comment
Cruze Posted June 24, 2013 Share Posted June 24, 2013 Little mistake by the above member: Teame = createTeam("Criminal", 255, 0, 0) function teamSet ( thePlayer ) local team = getTeamFromName ( "Criminal" ) if team and thePlayer then setPlayerTeam ( thePlayer, team ) setPlayerNametagColor ( thePlayer, 255, 0, 0 ) else cancelEvent() end end addEvent ( "sTeame", true) addEventHandler ( "sTeame", root, teamSet ) function setTeam ( thePlayer ) setPlayerTeam ( thePlayer, teame ) end addCommandHandler ( "criminal", setTeam ) Link to comment
iMr.3a[Z]eF Posted June 24, 2013 Share Posted June 24, 2013 Teame = createTeam("Criminal", 255, 0, 0) function teamSet ( thePlayer ) local team = getTeamFromName ( "Criminal" ) if team and thePlayer then setPlayerTeam ( thePlayer, team ) setPlayerNametagColor ( thePlayer, 255, 0, 0 ) else cancelEvent() end end addEvent ( "sTeame", true) addEventHandler ( "sTeame", root, teamSet ) function setTeam ( thePlayer ) setPlayerTeam ( thePlayer, team ) end addCommandHandler ( "criminal", setTeam ) This code will not work lol why no't? i forget the team name sorry team = createTeam("Criminal", 255, 0, 0) function teamSet ( thePlayer ) local team = getTeamFromName ( "Criminal" ) if team and thePlayer then setPlayerTeam ( thePlayer, team ) setPlayerNametagColor ( thePlayer, 255, 0, 0 ) else cancelEvent() end end addEvent ( "sTeame", true) addEventHandler ( "sTeame", root, teamSet ) addCommandHandler ( "criminal", teamSet) Link to comment
iMr.3a[Z]eF Posted July 3, 2013 Share Posted July 3, 2013 damn,copied ._. i didnt copied that -_-' Link to comment
iMr.3a[Z]eF Posted July 3, 2013 Share Posted July 3, 2013 do you think he leaked it from you? Link to comment
Moderators IIYAMA Posted July 4, 2013 Moderators Share Posted July 4, 2013 why would you do: cancelEvent() I see no reason to do that for these lines. When the event got executed it is already to late for this function. Link to comment
Cruze Posted July 5, 2013 Share Posted July 5, 2013 Nah he copied it from C*G scripts. Link to comment
iMr.3a[Z]eF Posted July 5, 2013 Share Posted July 5, 2013 why would you do: cancelEvent()I see no reason to do that for these lines. When the event got executed it is already to late for this function. because he made client side and he don't wanna told us about it 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