Jokeℝ1472771893 Posted May 15, 2012 Share Posted May 15, 2012 local Skinmarker = createMarker ( 95.599998474121, 931.40002441406, 16.89999961853, "cylinder", 1.5, 33, 33, 33, 255 ) -- umkleide local theTeam = createTeam ( "Armed Force", 42, 77, 0 ) addEventHandler ( "onMarkerHit", Skinmarker, function ( hitElement ) if ( isPedInVehicle ( hitElement ) ) then return end if ( not isFBI ( hitElement ) ) then return end setElementModel ( hitElement, 287 ) setPlayerTeam ( hitElement, theTeam ) giveWeapon ( hitElement, 31, 1000, true ) giveWeapon ( hitElement, 3, 1, true ) giveWeapon ( hitElement, 29, 1000, true ) giveWeapon ( hitElement, 27, 1000, true ) end ) function isFBI ( thePlayer ) if ( not thePlayer ) then return false end local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) return isObjectInACLGroup ("user."..accName, aclGetGroup ( "FBI" ) ) end How to make it onmarkerhit set player team Armed Force? Link to comment
X-SHADOW Posted May 15, 2012 Share Posted May 15, 2012 lol ben_wright setPlayerTeam is alredy in his script see it lol Link to comment
Jokeℝ1472771893 Posted May 15, 2012 Author Share Posted May 15, 2012 But its dont work Link to comment
TAPL Posted May 15, 2012 Share Posted May 15, 2012 You maybe are in vehicle or You aren't in group FBI or you are using it client side Link to comment
Jokeℝ1472771893 Posted May 15, 2012 Author Share Posted May 15, 2012 Oooops I See what is Problem LOL Link to comment
Jokeℝ1472771893 Posted May 15, 2012 Author Share Posted May 15, 2012 You maybe are in vehicle or You aren't in group FBI or you are using it client side Thnx Very Much you help me Link to comment
Jokeℝ1472771893 Posted May 15, 2012 Author Share Posted May 15, 2012 You're welcome. But when i die i leav team Link to comment
TAPL Posted May 15, 2012 Share Posted May 15, 2012 You're welcome. But when i die i leav team you maybe spawn your self without team https://wiki.multitheftauto.com/wiki/SpawnPlayer or you are set the player to nil team using event onPlayerWasted You have to take a look at your resource anyway what GameMode are you using? Link to comment
Jokeℝ1472771893 Posted May 15, 2012 Author Share Posted May 15, 2012 (edited) sorry for posting again Edited May 15, 2012 by Guest 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