why that?, i post it in NotePad++ and all true
EDIT:
sorry my code is wrong as prestege said
try this
local team = getPlayerTeam ( player )
addEvent( "onVehicleStartEnter", true )
addEventHandler( "onVehicleStartEnter", getRootElement(),
function( player )
if(source==C)then
if (getTeamName( team ) == "yourTeam") then
cancelEvent()
r,b,g = math.random(0, 255), math.random(0, 255), math.random(0, 255)
outputChatBox( "* Only For Team !", player,r,b,g, true )
else
r,b,g = math.random(0, 255), math.random(0, 255), math.random(0, 255)
outputChatBox( "* Welcome Team", player, r,b,g, true )
end
end
end
)