VenomOG Posted February 17, 2018 Share Posted February 17, 2018 Spoiler function mcc ( commandName ) local luckyBugger = getLocalPlayer() local x, y, z = getElementPosition ( luckyBugger ) team getPlayerTeam ( player thePlayer ) if playerTeam is ("SWAT") then createVehicle ( 432, x, y, z + 10 ) outputChatBox ( "You got SWAT MCC", 255, 0, 0) end addCommandHandler ( "mcc", mcc ) I think i went wrong somewere, just help me out Link to comment
LLCoolJ Posted February 17, 2018 Share Posted February 17, 2018 function mcc (player,command) local team = getPlayerTeam(player) local teamName = getTeamName(team) if teamName == "SWAT" then createVehicle (432,x,y+2,z+1) outputChatBox ( "You got SWAT MCC",player,255,0,0) end end addCommandHandler ("mcc",mcc) do it in server side script 1 Link to comment
VenomOG Posted February 17, 2018 Author Share Posted February 17, 2018 @IRBIS Thanks , checkyour msgs 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